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

/darwin-on-arm/xnu/bsd/netinet/
H A Dip.h86 u_int ip_hl:4, /* header length */
91 ip_hl:4; /* header length */
H A Dip_icmp.h155 #define ICMP_ADVLEN(p) (8 + ((p)->icmp_ip.ip_hl << 2) + 8)
156 /* N.B.: must separately check that ip_hl >= 5 */
H A Dip_compat.h104 #define IPMINLEN(i, h) ((i)->ip_len >= ((i)->ip_hl * 4 + sizeof(struct h)))
561 __u8 ip_hl:4;
564 __u8 ip_hl:4;
H A Dip_mroute.c1083 if (ip->ip_hl < (IP_HDR_LEN + TUNNEL_LEN) >> 2 ||
1152 int hlen = ip->ip_hl << 2;
1388 int hlen = ip->ip_hl << 2;
1484 int hlen = ip->ip_hl << 2;
1563 ip->ip_sum = in_cksum(mb_copy, ip->ip_hl << 2);
1586 int hlen = ip->ip_hl << 2;
1899 struct udphdr *udp = (struct udphdr *)(((char *)ip) + (ip->ip_hl << 2));
H A Dip_divert.c369 if (((ip->ip_hl != (sizeof (*ip) >> 2)) && inp->inp_options) ||
H A Dip_output.c1236 hlen = ip->ip_hl << 2;
1840 hlen = ip->ip_hl << 2;
2129 hlen = ip->ip_hl << 2;
H A Din_dhcp.c186 pkt->ip.ip_hl = sizeof(struct ip) >> 2;
H A Dip_fw2.c374 #define L3HDR(T, ip) ((T *)((u_int32_t *)(ip) + (ip)->ip_hl))
874 int x = (ip->ip_hl << 2) - sizeof (struct ip);
1222 ntohs(ip->ip_id), ip_len - (ip->ip_hl << 2),
2022 hlen = ip->ip_hl << 2;
H A Dtcp_lro.c770 ip_proto_dispatch_in_wrapper(m, ip_hdr->ip_hl << 2, ip_hdr->ip_p);
H A Dudp_usrreq.c898 bcopy(((caddr_t)ip + (ip->ip_hl << 2)), &uh, sizeof (uh));
/darwin-on-arm/xnu/osfmk/kdp/
H A Dkdp_udp.h117 #define ip_hl ip_vhltl.ip_x.ip_xhl macro
H A Dkdp_udp.c511 ip->ip_hl = sizeof (struct ip) >> 2;
514 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl));
581 ip->ip_hl = sizeof (struct ip) >> 2;
584 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl));
885 if (ip->ip_hl > (sizeof (struct ip) >> 2)) {
1459 ip->ip_hl = sizeof (struct ip) >> 2;
1462 ip->ip_sum = htons(~ip_sum((unsigned char *)ip, ip->ip_hl));
/darwin-on-arm/xnu/bsd/net/
H A Dpf_norm.c508 int hlen = ip->ip_hl << 2;
510 u_int16_t ip_len = ntohs(ip->ip_len) - ip->ip_hl * 4;
560 FR_IP_OFF(frep) + ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl *
565 frep->fr_ip->ip_hl * 4 - off;
583 if (aftercut < ntohs(frea->fr_ip->ip_len) - frea->fr_ip->ip_hl
623 off += ntohs(frep->fr_ip->ip_len) - frep->fr_ip->ip_hl * 4;
639 if ((frent->fr_ip->ip_hl << 2) + off > IP_MAXPACKET) {
671 hlen = ip->ip_hl << 2;
702 int ip_len = ntohs(h->ip_len) - (h->ip_hl << 2);
806 *m0 = m_copym(m, 0, h->ip_hl <<
[all...]
H A Dif_pflog.c340 ip->ip_sum = in_cksum(m, ip->ip_hl << 2);
H A Dpf.c2493 h->ip_hl = sizeof (*h) >> 2;
6648 off2 = ipoff2 + (h2.ip_hl << 2);
7731 u_short offset = ((ip->ip_hl) << 2) + 14;
7765 ip->ip_sum = in_cksum(m0, ip->ip_hl << 2);
8136 off = h->ip_hl << 2;
8413 if (action == PF_PASS && h->ip_hl > 5 &&
8420 (unsigned int) h->ip_hl));
H A Dif_bridge.c4911 hlen = ip->ip_hl << 2;
5031 hlen = ip->ip_hl << 2;
/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_output.c246 hlen = ip->ip_hl << 2;
571 hlen = ip->ip_hl << 2;
H A Dipcomp_input.c125 hlen = ip->ip_hl << 2;
H A Dipcomp_output.c259 hlen = ip->ip_hl << 2;
H A Dipsec.c1045 off = ip.ip_hl << 2;
2241 hlen = ip->ip_hl << 2;
2290 ip->ip_hl = sizeof(struct ip) >> 2;
2383 ip->ip_hl = sizeof(*ip) >> 2;
2564 ip->ip_hl = sizeof(struct ip) >> 2;
3066 hlen = ip->ip_hl << 2;
3862 hlen = ip->ip_hl << 2;
3962 hlen = oip->ip_hl << 2;
H A Desp_output.c378 hlen = ip->ip_hl << 2;
H A Dah_input.c178 hlen = ip->ip_hl << 2;
H A Desp_input.c216 hlen = ip->ip_hl << 2;
H A Dah_core.c1295 hlen = iphdr.ip_hl << 2;

Completed in 132 milliseconds