Searched refs:iphdr (Results 1 - 3 of 3) sorted by relevance

/darwin-on-arm/xnu/bsd/netinet/
H A Din_gif.c111 struct ip iphdr; /* capsule IP header, host byte ordered */ local
164 bzero(&iphdr, sizeof(iphdr));
165 iphdr.ip_src = sin_src->sin_addr;
168 iphdr.ip_dst = sin_dst->sin_addr;
173 iphdr.ip_p = proto;
175 iphdr.ip_ttl = ip_gif_ttl;
176 iphdr.ip_len = m->m_pkthdr.len + sizeof(struct ip);
178 ip_ecn_ingress(ECN_ALLOWED, &iphdr.ip_tos, &tos);
180 ip_ecn_ingress(ECN_NOCARE, &iphdr
[all...]
/darwin-on-arm/xnu/bsd/netinet6/
H A Dah_core.c1288 struct ip iphdr; local
1291 m_copydata(m, off, sizeof(iphdr), (caddr_t)&iphdr);
1293 hlen = IP_VHL_HL(iphdr.ip_vhl) << 2;
1295 hlen = iphdr.ip_hl << 2;
1297 iphdr.ip_ttl = 0;
1298 iphdr.ip_sum = htons(0);
1300 iphdr.ip_tos = 0;
1301 iphdr.ip_off = htons(ntohs(iphdr
[all...]
/darwin-on-arm/xnu/bsd/net/
H A Dpf.c5321 struct ip *iphdr = mtod(m, struct ip *); local
5322 NTOHS(iphdr->ip_len);
5323 NTOHS(iphdr->ip_off);

Completed in 33 milliseconds