Lines Matching refs:ip
53 #include <netinet/ip.h>
214 struct ip *ip;
220 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off);
224 isip6 = (ip->ip_v == 6);
227 ip6 = (struct ip6_hdr *)ip;
256 *((uint8_t *) &tuple[0]) = ip->ip_p;
258 *((uint32_t *) &tuple[5]) = ip->ip_src.s_addr;
259 *((uint32_t *) &tuple[9]) = ip->ip_dst.s_addr;
261 switch (ip->ip_p) {
263 th = (struct tcphdr *)(ip + 1);
269 uh = (struct udphdr *)(ip + 1);