/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/ |
H A D | inet_chksum.h | 45 /** Swap the bytes in an u16_t: much like lwip_htons() for little-endian */ 47 #define SWAP_BYTES_IN_WORD(w) ((u16_t)(((w) & 0xff) << 8) | (u16_t)(((w) & 0xff00) >> 8)) 57 as u16_t */ 106 u16_t inet_chksum(const void *dataptr, u16_t len); 107 u16_t inet_chksum_pbuf(struct pbuf *p); 109 u16_t lwip_chksum_copy(void *dst, const void *src, u16_t len); 113 u16_t inet_chksum_pseud [all...] |
H A D | pbuf.h | 187 u16_t dma_len; 189 u16_t link_len; 249 u16_t tot_len; 252 u16_t len; 266 u16_t malloc_len; 270 u16_t flags; 272 u16_t type_internal; /* pbuf_type */ 386 struct pbuf *pbuf_alloc(pbuf_layer l, u16_t length, pbuf_type type); 387 struct pbuf *pbuf_alloc_for_rx(pbuf_layer layer, u16_t length); 390 struct pbuf *pbuf_alloced_custom(pbuf_layer l, u16_t lengt [all...] |
H A D | udp.h | 79 const ip_addr_t *addr, u16_t port); 92 u16_t local_port, remote_port; 107 u16_t chksum_len_rx, chksum_len_tx; 132 u16_t port); 134 u16_t port); 139 const ip_addr_t *dst_ip, u16_t dst_port, 142 const ip_addr_t *dst_ip, u16_t dst_port, 145 const ip_addr_t *dst_ip, u16_t dst_port); 150 const ip_addr_t *dst_ip, u16_t dst_port, 152 u16_t chksu [all...] |
H A D | tftpc.h | 134 u16_t us_blknum; /* block number */ 140 u16_t us_errnum; /* error number */ 146 u16_t us_opcode; /* Opcode value */ 150 u16_t us_blknum; /* Block Number */ 188 u16_t us_tftpservport, 223 u16_t us_tftpservport, 265 u16_t us_tftpservport,
|
H A D | ip4_addr.h | 169 (u16_t)((ipaddr) != NULL ? ip4_addr1_16(ipaddr) : 0), \ 170 (u16_t)((ipaddr) != NULL ? ip4_addr2_16(ipaddr) : 0), \ 171 (u16_t)((ipaddr) != NULL ? ip4_addr3_16(ipaddr) : 0), \ 172 (u16_t)((ipaddr) != NULL ? ip4_addr4_16(ipaddr) : 0)) 199 /* These are cast to u16_t, with the intent that they are often arguments 201 #define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr)) 202 #define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr)) 203 #define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr)) 204 #define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr)) 205 #define ip4_addr1_16_val(ipaddr) ((u16_t)ip4_addr1_va [all...] |
H A D | def.h | 63 /* Endianess-optimized shifting of two u8_t to create one u16_t */ 79 #define lwip_htons(x) ((u16_t)(x)) 81 u16_t lwip_htons(u16_t x); 99 #define lwip_ntohs(x) ((u16_t)(x)) 101 u16_t lwip_ntohs(u16_t x); 118 #define PP_HTONS(x) ((u16_t)(x)) 119 #define PP_NTOHS(x) ((u16_t)(x))
|
H A D | dhcp6.h | 22 u16_t duid_len; /* length */ 35 u16_t iaid_len; 46 u16_t dh6_ia_type; 47 u16_t dh6_ia_len; 66 u16_t opt_type; 67 u16_t opt_len; 80 u16_t buff_len; 99 u16_t request_timeout;
|
H A D | netbuf.h | 70 u16_t port; 72 u16_t hatype; 73 u16_t reserve; /* padded */ 85 u16_t toport_chksum; 95 void *netbuf_alloc (struct netbuf *buf, u16_t size, u8_t netconn_type); 98 const void *dataptr, u16_t size); 103 void **dataptr, u16_t *len);
|
H A D | tcp.h | 98 u16_t len); 152 #define TCPWND16(x) ((u16_t)LWIP_MIN((x), 0xFFFF)) 307 u16_t local_port; \ 404 u16_t remote_port; 405 u16_t pad1; 431 u16_t mss; /* maximum segment size, the real value used to do segmentation */ 432 u16_t rcv_mss; /* mss from peer side */ 434 u16_t pad4; 448 u16_t pad5; 484 u16_t unsent_oversiz [all...] |
H A D | dhcp.h | 70 typedef u16_t dhcp_num_t; 196 u16_t lease_used; /* #ticks with period DHCP_COARSE_TIMER_SECS since last received DHCP ack */ 197 u16_t request_timeout; /* #ticks with period DHCP_FINE_TIMER_SECS for request timeout */ 198 u16_t re_time; /* #ticks with period DHCP_COARSE_TIMER_SECS until next renew/rebind try */ 209 u16_t t0_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for lease time */ 210 u16_t t1_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for renewal time */ 211 u16_t t2_timeout; /* #ticks with period DHCP_COARSE_TIMER_SECS for rebind time */ 225 u16_t options_out_len; /* outgoing msg options length */
|
H A D | mld6.h | 71 u16_t timer; 132 u16_t timer; 134 u16_t rexmt_timer; 146 u16_t timer;
|
H A D | ip6_addr.h | 84 #define IP6_ADDR_BLOCK1(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[0]) >> 16) & 0xffff)) 86 #define IP6_ADDR_BLOCK2(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[0])) & 0xffff)) 88 #define IP6_ADDR_BLOCK3(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[1]) >> 16) & 0xffff)) 90 #define IP6_ADDR_BLOCK4(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[1])) & 0xffff)) 92 #define IP6_ADDR_BLOCK5(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[2]) >> 16) & 0xffff)) 94 #define IP6_ADDR_BLOCK6(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[2])) & 0xffff)) 96 #define IP6_ADDR_BLOCK7(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[3]) >> 16) & 0xffff)) 98 #define IP6_ADDR_BLOCK8(ip6addr) ((u16_t)((lwip_htonl((ip6addr)->addr[3])) & 0xffff)) 407 (u16_t)((ipaddr) != NULL ? IP6_ADDR_BLOCK1(ipaddr) : 0), \ 408 (u16_t)((ipadd [all...] |
H A D | api.h | 352 u16_t remote_port; 354 u16_t pending_error; 393 struct netconn *netconn_new_with_proto_and_callback(enum netconn_type t, u16_t proto, netconn_callback callback); 411 u16_t *port, u8_t local); 414 void netconn_trygetaddr(struct netconn *conn, ip_addr_t *addr, u16_t *port); 423 err_t netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port, u8_t ifindex); 425 err_t netconn_bind(struct netconn *conn, const ip_addr_t *addr, u16_t port); 428 err_t netconn_connect(struct netconn *conn, const ip_addr_t *addr, u16_t port); 437 const ip_addr_t *addr, u16_t port);
|
H A D | netif.h | 344 typedef u16_t uniqid_t; 350 u16_t pkt_sz; 371 typedef err_t (*netif_get_peer_count_fn)(struct netif *netif, u16_t *count); 372 typedef err_t (*netif_set_rank_fn)(struct netif *netif, u16_t rank); 540 u16_t chksum_flags; 543 u16_t mtu; /**< Maximum transfer unit (in bytes). */ 546 u16_t mtu6; 554 u16_t link_layer_type; /**< Indicates whether the link layer type is ethernet or wifi. */ 596 u16_t loop_cnt_current; /**< Indicates the pbuf count. */ 726 err_t netif_set_mtu(struct netif *netif, u16_t netif_mt [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/third_party/lwip_sack/include/lwip/prot/ |
H A D | tcp.h | 57 PACK_STRUCT_FIELD(u16_t src); 58 PACK_STRUCT_FIELD(u16_t dest); 61 PACK_STRUCT_FIELD(u16_t _hdrlen_rsvd_flags); 62 PACK_STRUCT_FIELD(u16_t wnd); 63 PACK_STRUCT_FIELD(u16_t chksum); 64 PACK_STRUCT_FIELD(u16_t urgp); 83 #define TCPH_HDRLEN(phdr) ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) >> 12)) 84 #define TCPH_FLAGS(phdr) ((u16_t)(lwip_ntohs((phdr)->_hdrlen_rsvd_flags) & TCP_FLAGS)) 89 (phdr)->_hdrlen_rsvd_flags = (u16_t)(((phdr)->_hdrlen_rsvd_flags & PP_HTONS((u16_t)(~(u16_ [all...] |
H A D | dns.h | 108 PACK_STRUCT_FIELD(u16_t id); 111 PACK_STRUCT_FIELD(u16_t numquestions); 112 PACK_STRUCT_FIELD(u16_t numanswers); 113 PACK_STRUCT_FIELD(u16_t numauthrr); 114 PACK_STRUCT_FIELD(u16_t numextrarr); 125 PACK_STRUCT_FIELD(u16_t type); 126 PACK_STRUCT_FIELD(u16_t cls); 138 PACK_STRUCT_FIELD(u16_t type); 139 PACK_STRUCT_FIELD(u16_t cls); 141 PACK_STRUCT_FIELD(u16_t le [all...] |
H A D | udp.h | 54 PACK_STRUCT_FIELD(u16_t src); 55 PACK_STRUCT_FIELD(u16_t dest); /* src/dest UDP ports */ 56 PACK_STRUCT_FIELD(u16_t len); 57 PACK_STRUCT_FIELD(u16_t chksum);
|
H A D | nd6.h | 56 PACK_STRUCT_FIELD(u16_t chksum); 74 PACK_STRUCT_FIELD(u16_t chksum); 96 PACK_STRUCT_FIELD(u16_t chksum); 134 PACK_STRUCT_FIELD(u16_t chksum); 137 PACK_STRUCT_FIELD(u16_t router_lifetime); 155 PACK_STRUCT_FIELD(u16_t chksum); 240 PACK_STRUCT_FIELD(u16_t reserved); 284 PACK_STRUCT_FIELD(u16_t reserved);
|
H A D | etharp.h | 60 PACK_STRUCT_FIELD(u16_t addrw[2]); 73 PACK_STRUCT_FIELD(u16_t hwtype); 74 PACK_STRUCT_FIELD(u16_t proto); 77 PACK_STRUCT_FIELD(u16_t opcode);
|
H A D | icmp6.h | 151 PACK_STRUCT_FIELD(u16_t chksum); 167 PACK_STRUCT_FIELD(u16_t chksum); 168 PACK_STRUCT_FIELD(u16_t id); 169 PACK_STRUCT_FIELD(u16_t seqno);
|
H A D | icmp.h | 64 * is split to two u16_t like ICMP echo needs it. 72 PACK_STRUCT_FIELD(u16_t chksum); 73 PACK_STRUCT_FIELD(u16_t id); 74 PACK_STRUCT_FIELD(u16_t seqno); 81 /* Compatibility defines, old versions used to combine type and code to an u16_t */
|
H A D | mld6.h | 55 PACK_STRUCT_FIELD(u16_t chksum); 56 PACK_STRUCT_FIELD(u16_t max_resp_delay); 57 PACK_STRUCT_FIELD(u16_t reserved);
|
H A D | ip4.h | 96 PACK_STRUCT_FIELD(u16_t _len); 98 PACK_STRUCT_FIELD(u16_t _id); 100 PACK_STRUCT_FIELD(u16_t _offset); 106 PACK_STRUCT_FIELD(u16_t _chksum);
|
H A D | ethernet.h | 82 PACK_STRUCT_FIELD(u16_t type); 99 PACK_STRUCT_FIELD(u16_t prio_vid); 100 PACK_STRUCT_FIELD(u16_t tpid);
|
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/ |
H A D | hi_net_api.h | 39 typedef unsigned short u16_t;
typedef 252 #define ip4_addr1_16(ipaddr) ((u16_t)ip4_addr1(ipaddr))
253 #define ip4_addr2_16(ipaddr) ((u16_t)ip4_addr2(ipaddr))
254 #define ip4_addr3_16(ipaddr) ((u16_t)ip4_addr3(ipaddr))
255 #define ip4_addr4_16(ipaddr) ((u16_t)ip4_addr4(ipaddr))
262 #define LWIP_PLATFORM_HTONS(_n) ((u16_t)((((_n) & 0xff) << 8) | (((_n) >> 8) & 0xff)))
323 typedef u16_t sa_family_t;
327 typedef u16_t in_port_t;
549 * @param ip_num [IN] Type #u16_t Total number of clients assigned.CNcomment:分配的客户端总数目CNend
557 err_t netifapi_dhcps_start(struct netif *netif, char *start_ip, u16_t ip_nu [all...] |