Lines Matching refs:ip
81 #include <netinet/ip.h>
197 struct ip *ip = NULL; /* Keep compiler happy. */
299 ip = (struct ip *)(eh + 1);
300 th = (struct tcphdr *)(ip + 1);
301 drop_hdrlen = sizeof(*ip);
302 iptos = ip->ip_tos;
303 tlen = ntohs(ip->ip_len) - sizeof(struct ip);
308 th->th_sum = in_pseudo(ip->ip_src.s_addr,
309 ip->ip_dst.s_addr,
315 struct ipovly *ipov = (struct ipovly *)ip;
324 ip->ip_len = htons(len);
326 ip->ip_tos = iptos;
328 ip->ip_v = IPVERSION;
329 ip->ip_hl = sizeof(*ip) >> 2;