Home
last modified time | relevance | path

Searched refs:IP_HLEN (Results 1 – 16 of 16) sorted by relevance

/third_party/lwip/src/core/ipv4/
Dip4_frag.c185 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 …]
Dip4.c511 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) {
Dicmp.c96 if (hlen < IP_HLEN) { in icmp_input()
354 response_pkt_len = IP_HLEN + ICMP_DEST_UNREACH_DATASIZE; in icmp_send_response()
/third_party/lwip/
D0090-frag-fix-coredump-when-get-netif.patch23 iph_cksum_set(p, IP_HLEN, 1);
25 iph_cksum_set(p, IP_HLEN, 0);
D0074-gazelle-offloads-are-registered-to-lwip.patch72 iph_cksum_set(p, IP_HLEN, 1);
74 iph_cksum_set(p, IP_HLEN, 0);
81 iph_cksum_set(p, IP_HLEN, 1);
83 iph_cksum_set(p, IP_HLEN, 0);
D0023-refactor-event-and-checksum-offload-support.patch198 + iph_cksum_set(p, IP_HLEN, 1);
200 + iph_cksum_set(p, IP_HLEN, 0);
201 IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
204 + IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN));
216 + iph_cksum_set(p, IP_HLEN, 1);
218 + iph_cksum_set(p, IP_HLEN, 0);
219 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));
223 + IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN));
D0042-expand-recv-win.patch30 #define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
D0080-enable-ipv6.patch228 + p->ol_flags |= ((len == IP_HLEN) ? RTE_MBUF_F_TX_IPV4 : RTE_MBUF_F_TX_IPV6);
362 #define IP_HLEN 20
380 -#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
D0053-cleancode-improve-lwipopts.h-readability.patch1982 -#define IP_HLEN 20
1991 -#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
2085 +#define IP_HLEN 20
2123 +#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
D0075-adapt-read-write-for-rtc-mode.patch444 #define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
D0002-adapt-lstack.patch5048 +#define IP_HLEN 20
5054 +#define TCP_MSS (FRAME_MTU - IP_HLEN - TCP_HLEN)
/third_party/lwip/src/include/lwip/prot/
Dip4.h64 #define IP_HLEN 20 macro
/third_party/lwip/test/unit/tcp/
Dtcp_helper.c74 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/
Draw.c460 IP_IS_V6(dst_ip) ? IP6_HLEN : IP_HLEN); in raw_sendto_if_src()
462 IP_HLEN); in raw_sendto_if_src()
Dtcp.c2464 offset = IP_HLEN + TCP_HLEN;
/third_party/lwip/src/apps/snmp/
Dsnmp_mib2_ip.c235 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()