Lines Matching refs:iphdr
1288 struct ip iphdr;
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.ip_off) & ip4_ah_offsetmask);
1302 (algo->update)(&algos, (caddr_t)&iphdr, sizeof(struct ip));
1400 hdrtype = (iphdr.ip_p) & 0xff;