Lines Matching refs:ip
17 #include <net/ip.h>
43 ip_packet_match(const struct iphdr *ip,
52 (ip->saddr & ipinfo->smsk.s_addr) != ipinfo->src.s_addr) ||
54 (ip->daddr & ipinfo->dmsk.s_addr) != ipinfo->dst.s_addr))
69 NF_INVF(ipinfo, IPT_INV_PROTO, ip->protocol != ipinfo->proto))
82 ip_checkentry(const struct ipt_ip *ip)
84 if (ip->flags & ~IPT_F_MASK)
86 if (ip->invflags & ~IPT_INV_MASK)
113 memcmp(&e->ip, &uncond, sizeof(uncond)) == 0;
230 const struct iphdr *ip;
243 ip = ip_hdr(skb);
252 acpar.fragoff = ntohs(ip->frag_off) & IP_OFFSET;
283 if (!ip_packet_match(ip, indev, outdev,
284 &e->ip, acpar.fragoff)) {
330 !(e->ip.flags & IPT_F_GOTO)) {
348 ip = ip_hdr(skb);
466 const struct ipt_ip *ip = par->entryinfo;
472 ip->proto, ip->invflags & IPT_INV_PROTO);
511 e->ip.proto, e->ip.invflags & IPT_INV_PROTO);
533 mtpar.entryinfo = &e->ip;
607 if (!ip_checkentry(&e->ip))
1258 const struct ipt_ip *ip,
1308 if (!ip_checkentry(&e->ip))
1320 ret = compat_find_calc_match(ematch, &e->ip, &off);