Lines Matching refs:ip
65 #include <netinet/ip.h>
792 struct ip *ip;
798 ip = (struct ip *)mtodo(m, dn_tag_get(m)->iphdr_off);
802 isip6 = (ip->ip_v == 6);
805 ip6 = (struct ip6_hdr *)ip;
833 *((uint8_t *) &tuple[0]) = ip->ip_p;
835 *((uint32_t *) &tuple[5]) = ip->ip_src.s_addr;
836 *((uint32_t *) &tuple[9]) = ip->ip_dst.s_addr;
838 switch (ip->ip_p) {
840 th = (struct tcphdr *)(ip + 1);
846 uh = (struct udphdr *)(ip + 1);