Searched refs:ip_vhl (Results 1 - 16 of 16) sorted by relevance

/darwin-on-arm/xnu/bsd/netinet/
H A Dip.h83 u_char ip_vhl; /* version << 4 | header length >> 2 */ member in struct:ip
H A Dip_icmp.c209 oiplen = IP_VHL_HL(oip->ip_vhl) << 2;
303 nip->ip_vhl = IP_VHL_BORING;
448 IP_VHL_HL(icp->icmp_ip.ip_vhl) < (sizeof(struct ip) >> 2)) {
586 IP_VHL_HL(icp->icmp_ip.ip_vhl) < (sizeof(struct ip) >> 2)) {
651 int optlen = (IP_VHL_HL(ip->ip_vhl) << 2) - sizeof(struct ip);
788 ip->ip_vhl = IP_VHL_BORING;
822 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1103 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1109 if (IP_VHL_V(ip->ip_vhl) != 4)
H A Dip_icmp.h158 #define ICMP_ADVLEN(p) (8 + (IP_VHL_HL((p)->icmp_ip.ip_vhl) << 2) + 8)
H A Dip_input.c749 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
769 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
795 if (IP_VHL_V(ip->ip_vhl) != IPVERSION) {
800 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
923 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1314 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1469 int hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1653 if (next + (IP_VHL_HL(ip->ip_vhl) << 2) > IP_MAXPACKET) {
1711 m->m_len += (IP_VHL_HL(ip->ip_vhl) << 2);
1712 m->m_data -= (IP_VHL_HL(ip->ip_vhl) <<
[all...]
H A Dip_output.c429 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
511 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, hlen >> 2);
520 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1040 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1234 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1642 u_short offset = (IP_VHL_HL(ip->ip_vhl) << 2) +14 ; /* IP+Enet header length */
1838 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
1878 mhip->ip_vhl = IP_MAKE_VHL(IPVERSION, mhlen >> 2);
2012 offset = IP_VHL_HL(ip->ip_vhl) << 2 ;
2127 hlen = IP_VHL_HL(ip->ip_vhl) <<
[all...]
H A Dkpi_ipfilter.c224 vers = IP_VHL_V(ip->ip_vhl);
243 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Draw_ip.c407 if (((IP_VHL_HL(ip->ip_vhl) != (sizeof (*ip) >> 2))
410 || (ip->ip_len < (IP_VHL_HL(ip->ip_vhl) << 2))) {
H A Dtcp_subr.c508 ip->ip_vhl = IP_VHL_BORING;
597 isipv6 = IP_VHL_V(((struct ip *)ipgen)->ip_vhl) == 6;
1744 bcopy(((caddr_t)ip + (IP_VHL_HL(ip->ip_vhl) << 2)),
/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_output.c244 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
569 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Desp_output.c376 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
807 udp->uh_ulen = htons(ntohs(ip->ip_len) - (IP_VHL_HL(ip->ip_vhl) << 2));
H A Dipcomp_input.c123 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Dipcomp_output.c257 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Dipsec.c978 v = _IP_VHL_V(ip->ip_vhl);
1043 off = _IP_VHL_HL(ip->ip_vhl) << 2;
2239 hlen = _IP_VHL_HL(ip->ip_vhl) << 2;
2288 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, sizeof(struct ip) >> 2);
2381 ip->ip_vhl = IP_MAKE_VHL(IPVERSION, sizeof(*ip) >> 2);
3064 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
3860 hlen = _IP_VHL_HL(ip->ip_vhl) << 2;
3960 hlen = _IP_VHL_HL(oip->ip_vhl) << 2;
H A Dah_input.c176 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Desp_input.c214 hlen = IP_VHL_HL(ip->ip_vhl) << 2;
H A Dah_core.c1293 hlen = IP_VHL_HL(iphdr.ip_vhl) << 2;

Completed in 117 milliseconds