Searched refs:IP_HLEN (Results 1 - 24 of 24) sorted by relevance

/barrelfish-master/lib/lwip/src/core/ipv6/
H A Dicmp6.c72 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 Dip6.c208 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 Dip_frag.c179 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 Dicmp.c240 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 Dip.c442 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 Dip4_frag.c181 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 Dicmp.c96 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 Dip4.c419 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 Dudp_ipip_openloop.c36 #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 Dip.h46 #define IP_HLEN 40 macro
/barrelfish-master/lib/lwip/src/core/
H A Draw.c212 if (pbuf_header(p, IP_HLEN)) {
230 if (pbuf_header(q, -IP_HLEN)) {
H A Dtcp.c1274 mss_s = outif->mtu - IP_HLEN - TCP_HLEN;
/barrelfish-master/include/lwip2/lwip/prot/
H A Dip4.h64 #define IP_HLEN 20 macro
/barrelfish-master/lib/devif/backends/net/
H A Dheaders.h81 #define IP_HLEN 20 macro
/barrelfish-master/lib/lwip2/src/core/
H A Draw.c292 IP_IS_V6(ipaddr) ? IP6_HLEN : IP_HLEN);
294 IP_HLEN);
H A Dtcp.c1957 mss_s = mtu - IP_HLEN - TCP_HLEN;
/barrelfish-master/lib/devif/backends/net/ip/
H A Ddevif_backend_ip.c157 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 Dip.h50 #define IP_HLEN 20 macro
/barrelfish-master/lib/arranet/
H A Darranet.c1382 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 Dmain.c148 struct udp_hdr *udphdr = p->payload + SIZEOF_ETH_HDR + IP_HLEN;
/barrelfish-master/include/
H A Darranet_impl.h115 #define IP_HLEN 20 macro
/barrelfish-master/lib/lwip2/src/apps/snmp/
H A Dsnmp_mib2_ip.c235 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 Ddevif_backend_udp.c145 offset + valid_data + ETH_HLEN + IP_HLEN;
/barrelfish-master/lib/lwip/src/core/snmp/
H A Dmib2.c3180 *sint_ptr = (IP_HLEN + ((IP_REASS_MAX_PBUFS / 2) *
3182 PBUF_LINK_HLEN - IP_HLEN)));

Completed in 203 milliseconds