/barrelfish-master/lib/lwip/src/core/ipv6/ |
H A D | icmp6.c | 72 iphdr = (struct ip_hdr *) ((u8_t *) p->payload - IP_HLEN); 126 q = pbuf_alloc(PBUF_IP, 8 + IP_HLEN + 8, PBUF_RAM); 135 (q->len >= (8 + IP_HLEN + 8))); 143 SMEMCPY((u8_t *) q->payload + 8, p->payload, IP_HLEN + 8); 164 q = pbuf_alloc(PBUF_IP, 8 + IP_HLEN + 8, PBUF_RAM); 173 (q->len >= (8 + IP_HLEN + 8))); 182 SMEMCPY((u8_t *) q->payload + 8, (u8_t *) p->payload, IP_HLEN + 8);
|
H A D | ip6.c | 208 pbuf_realloc(p, IP_HLEN + ntohs(iphdr->len)); 217 if (pbuf_header(p, -IP_HLEN)) { 268 if (pbuf_header(p, IP_HLEN)) { 285 iphdr->len = htons(p->tot_len - IP_HLEN);
|
/barrelfish-master/lib/lwip/src/core/ipv4/ |
H A D | ip_frag.c | 179 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); 294 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); 347 LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN", 348 sizeof(struct ip_reass_helper) <= IP_HLEN); 494 if ((IPH_HL(fraghdr) * 4) != IP_HLEN) { 553 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); 576 ipr->datagram_len += IP_HLEN; 583 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); 588 IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN)); 597 pbuf_header(r, -IP_HLEN); [all...] |
H A D | icmp.c | 240 IPH_CHKSUM_SET(iphdr, inet_chksum(iphdr, IP_HLEN)); 342 sizeof(struct icmp_echo_hdr) + IP_HLEN + 351 (sizeof(struct icmp_echo_hdr) + IP_HLEN + 369 (u8_t *) p->payload, IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
|
H A D | ip.c | 442 if ((iphdr_hlen > IP_HLEN && (IPH_PROTO(iphdr) != IP_PROTO_IGMP)) { 444 if (iphdr_hlen > IP_HLEN) { 578 u16_t ip_hlen = IP_HLEN; 604 if (pbuf_header(p, IP_HLEN)) { 758 payload = (u8_t *) iphdr + IP_HLEN;
|
/barrelfish-master/lib/lwip2/src/core/ipv4/ |
H A D | ip4_frag.c | 181 SMEMCPY(p->payload, &ipr->iphdr, IP_HLEN); 304 SMEMCPY(&(ipr->iphdr), fraghdr, IP_HLEN); 355 LWIP_ASSERT("sizeof(struct ip_reass_helper) <= IP_HLEN", 356 sizeof(struct ip_reass_helper) <= IP_HLEN); 497 if ((IPH_HL(fraghdr) * 4) != IP_HLEN) { 552 SMEMCPY(&ipr->iphdr, fraghdr, IP_HLEN); 576 ipr->datagram_len += IP_HLEN; 583 SMEMCPY(fraghdr, &ipr->iphdr, IP_HLEN); 590 IPH_CHKSUM_SET(fraghdr, inet_chksum(fraghdr, IP_HLEN)); 601 pbuf_header(r, -IP_HLEN); [all...] |
H A D | icmp.c | 96 if (hlen < IP_HLEN) { 346 q = pbuf_alloc(PBUF_IP, sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE, 354 (q->len >= (sizeof(struct icmp_echo_hdr) + IP_HLEN + ICMP_DEST_UNREACH_DATASIZE))); 371 IP_HLEN + ICMP_DEST_UNREACH_DATASIZE);
|
H A D | ip4.c | 419 if ((iphdr_hlen > p->len) || (iphdr_len > p->tot_len) || (iphdr_hlen < IP_HLEN)) { 420 if (iphdr_hlen < IP_HLEN) { 640 if ((iphdr_hlen > IP_HLEN) && (IPH_PROTO(iphdr) != IP_PROTO_IGMP)) { 642 if (iphdr_hlen > IP_HLEN) { 825 u16_t ip_hlen = IP_HLEN; 855 if (pbuf_header(p, IP_HLEN)) {
|
/barrelfish-master/usr/bench/udp_echo/ |
H A D | udp_ipip_openloop.c | 36 #define IP_HLEN 20 macro 308 ._len = htons(IP_HLEN + IP_HLEN + sizeof(struct udp_hdr) + BUFSIZE), 320 IPH_CHKSUM_SET(&outer_iphdr, inet_chksum(&outer_iphdr, IP_HLEN)); 325 ._len = htons(IP_HLEN + IP_HLEN + sizeof(struct udp_hdr) + BUFSIZE), 337 IPH_CHKSUM_SET(&outer_iphdr2, inet_chksum(&outer_iphdr2, IP_HLEN)); 342 ._len = htons(IP_HLEN + sizeof(struct udp_hdr) + BUFSIZE),
|
/barrelfish-master/include/lwip/ipv6/lwip/ |
H A D | ip.h | 46 #define IP_HLEN 40 macro
|
/barrelfish-master/lib/lwip/src/core/ |
H A D | raw.c | 212 if (pbuf_header(p, IP_HLEN)) { 230 if (pbuf_header(q, -IP_HLEN)) {
|
H A D | tcp.c | 1274 mss_s = outif->mtu - IP_HLEN - TCP_HLEN;
|
/barrelfish-master/include/lwip2/lwip/prot/ |
H A D | ip4.h | 64 #define IP_HLEN 20 macro
|
/barrelfish-master/lib/devif/backends/net/ |
H A D | headers.h | 81 #define IP_HLEN 20 macro
|
/barrelfish-master/lib/lwip2/src/core/ |
H A D | raw.c | 292 IP_IS_V6(ipaddr) ? IP6_HLEN : IP_HLEN); 294 IP_HLEN);
|
H A D | tcp.c | 1957 mss_s = mtu - IP_HLEN - TCP_HLEN;
|
/barrelfish-master/lib/devif/backends/net/ip/ |
H A D | devif_backend_ip.c | 157 que->header.ip._len = htons(valid_length + IP_HLEN); 158 que->header.ip._chksum = inet_chksum(&que->header, IP_HLEN); 244 if (header->ip._chksum == inet_chksum(&header->ip, IP_HLEN)) { 262 *valid_data = IP_HLEN + ETH_HLEN; 263 *valid_length = ntohs(header->ip._len) - IP_HLEN; 355 que->hdr_len = IP_HLEN + sizeof(struct udp_hdr);
|
/barrelfish-master/include/lwip/lwip/ |
H A D | ip.h | 50 #define IP_HLEN 20 macro
|
/barrelfish-master/lib/arranet/ |
H A D | arranet.c | 1382 p->ip._len = htons(short_size + sizeof(struct udp_hdr) + IP_HLEN); 1384 p->ip._chksum = inet_chksum(&p->ip, IP_HLEN); 1450 p->ip._len = htons(sizeof(struct tcp_hdr) + IP_HLEN); 1458 p->ip._chksum = inet_chksum(&p->ip, IP_HLEN); 1547 p->ip._len = htons(sizeof(struct tcp_hdr) + IP_HLEN + size); 1557 p->ip._chksum = inet_chksum(&p->ip, IP_HLEN); 1618 p->ip._len = htons(sizeof(struct tcp_hdr) + IP_HLEN + 4); 1627 p->ip._chksum = inet_chksum(&p->ip, IP_HLEN); 1805 p->ip._len = htons(short_size + sizeof(struct udp_hdr) + IP_HLEN); 1807 p->ip._chksum = inet_chksum(&p->ip, IP_HLEN); [all...] |
/barrelfish-master/lib/lwip2/test/minimal/ |
H A D | main.c | 148 struct udp_hdr *udphdr = p->payload + SIZEOF_ETH_HDR + IP_HLEN;
|
/barrelfish-master/include/ |
H A D | arranet_impl.h | 115 #define IP_HLEN 20 macro
|
/barrelfish-master/lib/lwip2/src/apps/snmp/ |
H A D | snmp_mib2_ip.c | 235 value->u32 = (IP_HLEN + ((IP_REASS_MAX_PBUFS/2) * 236 (PBUF_POOL_BUFSIZE - PBUF_LINK_ENCAPSULATION_HLEN - PBUF_LINK_HLEN - IP_HLEN)));
|
/barrelfish-master/lib/devif/backends/net/udp/ |
H A D | devif_backend_udp.c | 145 offset + valid_data + ETH_HLEN + IP_HLEN;
|
/barrelfish-master/lib/lwip/src/core/snmp/ |
H A D | mib2.c | 3180 *sint_ptr = (IP_HLEN + ((IP_REASS_MAX_PBUFS / 2) * 3182 PBUF_LINK_HLEN - IP_HLEN)));
|