Searched refs:IP_HLEN (Results 1 – 8 of 8) sorted by relevance
/third_party/lwip/src/core/ipv4/ |
D | ip4_frag.c | 185 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); in ip_reass_free_complete_datagram() 328 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); in ip_reass_enqueue_new_datagram() 388 sizeof(struct ip_reass_helper) <= IP_HLEN); in ip_reass_chain_frag_into_datagram_and_validate() 539 if (IPH_HL_BYTES(fraghdr) != IP_HLEN) { in ip4_reass() 600 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); in ip4_reass() 611 if ((datagram_len < offset) || (datagram_len > (0xFFFF - IP_HLEN))) { in ip4_reass() 641 u16_t datagram_len = (u16_t)(ipr->datagram_len + IP_HLEN); in ip4_reass() 648 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); in ip4_reass() 655 IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN)); in ip4_reass() 666 pbuf_remove_header(r, IP_HLEN); in ip4_reass() [all …]
|
D | ip4.c | 511 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) { 512 if (iphdr_hlen < IP_HLEN) { 705 if ((iphdr_hlen > IP_HLEN) && (IPH_PROTO(iphdr) != IP_PROTO_IGMP)) { 707 if (iphdr_hlen > IP_HLEN) { 899 u16_t ip_hlen = IP_HLEN; 906 if (optlen > (IP_HLEN_MAX - IP_HLEN)) { 936 if (pbuf_add_header(p, IP_HLEN)) { 1008 if (p->len < IP_HLEN) {
|
D | icmp.c | 96 if (hlen < IP_HLEN) { in icmp_input() 354 response_pkt_len = IP_HLEN + ICMP_DEST_UNREACH_DATASIZE; in icmp_send_response()
|
/third_party/lwip/src/include/lwip/prot/ |
D | ip4.h | 64 #define IP_HLEN 20 macro
|
/third_party/lwip/test/unit/tcp/ |
D | tcp_helper.c | 74 IPH_VHL_SET(iphdr, 4, IP_HLEN / 4); in tcp_create_segment_wnd() 77 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN)); in tcp_create_segment_wnd()
|
/third_party/lwip/src/core/ |
D | raw.c | 460 IP_IS_V6(dst_ip) ? IP6_HLEN : IP_HLEN); in raw_sendto_if_src() 462 IP_HLEN); in raw_sendto_if_src()
|
D | tcp.c | 2464 offset = IP_HLEN + TCP_HLEN;
|
/third_party/lwip/src/apps/snmp/ |
D | snmp_mib2_ip.c | 235 value->u32 = (IP_HLEN + ((IP_REASS_MAX_PBUFS / 2) * in ip_AddrTable_get_cell_value_core() 236 … (PBUF_POOL_BUFSIZE - PBUF_LINK_ENCAPSULATION_HLEN - PBUF_LINK_HLEN - IP_HLEN))); in ip_AddrTable_get_cell_value_core()
|