Searched defs:ip (Results 1 - 25 of 35) sorted by relevance

12

/net/netfilter/
H A Dxt_ecn.c13 #include <linux/ip.h>
14 #include <net/ip.h>
90 const struct ipt_ip *ip = par->entryinfo; local
99 (ip->proto != IPPROTO_TCP || ip->invflags & IPT_INV_PROTO)) {
132 const struct ip6t_ip6 *ip = par->entryinfo; local
141 (ip->proto != IPPROTO_TCP || ip->invflags & IP6T_INV_PROTO)) {
H A Dxt_cluster.c12 #include <linux/ip.h>
21 return (__force u32)ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u3.ip;
30 xt_cluster_hash_ipv4(u_int32_t ip, const struct xt_cluster_match_info *info) argument
32 return jhash_1word(ip, info->hash_seed);
36 xt_cluster_hash_ipv6(const void *ip, const struct xt_cluster_match_info *info) argument
38 return jhash2(ip, NF_CT_TUPLE_L3SIZE / sizeof(__u32), info->hash_seed);
H A Dxt_multiport.c116 const struct ipt_ip *ip = par->entryinfo; local
119 return check(ip->proto, ip->invflags, multiinfo->flags,
125 const struct ip6t_ip6 *ip = par->entryinfo; local
128 return check(ip->proto, ip->invflags, multiinfo->flags,
H A Dnf_conntrack_irc.c16 #include <linux/ip.h>
67 * ip returns parsed ip of dcc command
72 static int parse_dcc(char *data, const char *data_end, __be32 *ip, argument
91 *ip = cpu_to_be32(simple_strtoul(data, &data, 10));
93 /* skip blanks between ip and port */
183 pr_debug("DCC bound ip/port: %pI4:%u\n",
188 if (tuple->src.u3.ip != dcc_ip &&
189 tuple->dst.u3.ip != dcc_ip) {
191 &tuple->src.u3.ip,
[all...]
H A Dxt_HMARK.c19 #include <net/ip.h>
258 struct iphdr *ip, _ip; local
261 ip = (struct iphdr *) (skb->data + nhoff);
262 if (ip->protocol == IPPROTO_ICMP) {
264 if (get_inner_hdr(skb, ip->ihl * 4, &nhoff)) {
265 ip = skb_header_pointer(skb, nhoff, sizeof(_ip), &_ip);
266 if (ip == NULL)
271 t->src = ip->saddr & info->src_mask.ip;
272 t->dst = ip
[all...]
H A Dxt_osf.c25 #include <linux/ip.h>
32 #include <net/ip.h>
161 const struct iphdr *ip = ip_hdr(skb); local
165 return ip->ttl == f_ttl;
168 else if (ip->ttl <= f_ttl)
175 if (inet_ifa_match(ip->saddr, ifa)) {
176 ret = (ip->ttl == f_ttl);
186 return ip->ttl == f_ttl;
193 const struct iphdr *ip = ip_hdr(skb); local
216 totlen = ntohs(ip
[all...]
/net/bridge/netfilter/
H A Debt_among.c11 #include <linux/ip.h>
19 const char *mac, __be32 ip)
34 if (ip) {
38 if (p->ip == 0 || p->ip == ip)
45 if (p->ip == 0)
18 ebt_mac_wormhash_contains(const struct ebt_mac_wormhash *wh, const char *mac, __be32 ip) argument
/net/atm/
H A Dmpoa_proc.c246 unsigned char ip[4]; local
254 ip, ip+1, ip+2, ip+3) == 4) {
255 ipaddr = *(__be32 *)ip;
260 ip, ip+1, ip+2, ip
[all...]
H A Dclip.c23 #include <linux/ip.h> /* for net/route.h */
51 static int to_atmarpd(enum atmarp_ctrl_type type, int itf, __be32 ip) argument
66 ctrl->ip = ip;
267 __be32 *ip = (__be32 *) neigh->primary_key; local
270 to_atmarpd(act_need, PRIV(neigh->dev)->number, *ip);
441 static int clip_setentry(struct atm_vcc *vcc, __be32 ip) argument
454 if (!ip) {
463 rt = ip_route_output(&init_net, ip, 0, 1, 0);
466 neigh = __neigh_lookup(&arp_tbl, &ip, r
[all...]
/net/bridge/
H A Dbr_mdb.c8 #include <net/ip.h>
355 struct br_ip ip; local
371 ip.proto = entry->addr.proto;
372 if (ip.proto == htons(ETH_P_IP))
373 ip.u.ip4 = entry->addr.u.ip4;
376 ip.u.ip6 = entry->addr.u.ip6;
380 ret = br_mdb_add_group(br, p, &ip, entry->state);
411 struct br_ip ip; local
420 ip.proto = entry->addr.proto;
421 if (ip
[all...]
/net/ipv4/netfilter/
H A Dnf_nat_h323.c26 unsigned int addroff, __be32 ip, __be16 port)
31 __be32 ip; member in struct:__anon50
37 buf.ip = ip;
77 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip,
78 addr->ip, port);
89 addr->ip, port);
106 if (addr.ip == ct->tuplehash[dir].tuple.src.u3.ip &&
114 (ntohl(addr.ip)
24 set_addr(struct sk_buff *skb, unsigned int protoff, unsigned char **data, int dataoff, unsigned int addroff, __be32 ip, __be16 port) argument
[all...]
H A Dnf_nat_l3proto_ipv4.c14 #include <linux/ip.h>
21 #include <net/ip.h>
42 fl4->daddr = t->dst.u3.ip;
54 fl4->saddr = t->src.u3.ip;
68 return ntohl(t->src.u3.ip) >= ntohl(range->min_addr.ip) &&
69 ntohl(t->src.u3.ip) <= ntohl(range->max_addr.ip);
75 return secure_ipv4_port_ephemeral(t->src.u3.ip, t->dst.u3.ip, dpor
193 struct iphdr ip; member in struct:__anon51
[all...]
H A Dipt_CLUSTERIP.c19 #include <linux/ip.h>
32 #include <net/ip.h>
157 clusterip_config_init(const struct ipt_clusterip_tgt_info *i, __be32 ip, argument
167 c->clusterip = ip;
181 sprintf(buffer, "%pI4", &ip);
365 if (e->ip.dmsk.s_addr != htonl(0xffffffff) ||
366 e->ip.dst.s_addr == 0) {
373 config = clusterip_config_find_get(e->ip.dst.s_addr, 1);
377 &e->ip.dst.s_addr);
382 if (e->ip
[all...]
/net/netfilter/ipset/
H A Dip_set_bitmap_ip.c10 /* Kernel module implementing an IP set type: the bitmap:ip type */
13 #include <linux/ip.h>
33 IP_SET_MODULE_DESC("bitmap:ip", REVISION_MIN, REVISION_MAX);
34 MODULE_ALIAS("ip_set_bitmap:ip");
60 ip_to_id(const struct bitmap_ip *m, u32 ip) argument
62 return ((ip & ip_set_hostmask(m->netmask)) - m->first_ip)/m->hosts;
117 u32 ip; local
119 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC));
120 if (ip < map->first_ip || ip > ma
134 u32 ip, ip_to; local
[all...]
H A Dip_set_hash_ip.c8 /* Kernel module implementing an IP set type: the hash:ip type */
12 #include <linux/ip.h>
16 #include <net/ip.h>
31 IP_SET_MODULE_DESC("hash:ip", REVISION_MIN, REVISION_MAX);
32 MODULE_ALIAS("ip_set_hash:ip");
43 __be32 ip; member in struct:hash_ip4_elem
47 __be32 ip; member in struct:hash_ip4t_elem
52 __be32 ip; member in struct:hash_ip4c_elem
57 __be32 ip; member in struct:hash_ip4ct_elem
69 return e1->ip
103 __be32 ip; local
122 u32 ip, ip_to, hosts; local
185 union nf_inet_addr ip; member in struct:hash_ip6_elem
189 union nf_inet_addr ip; member in struct:hash_ip6t_elem
194 union nf_inet_addr ip; member in struct:hash_ip6c_elem
199 union nf_inet_addr ip; member in struct:hash_ip6ct_elem
215 hash_ip6_netmask(union nf_inet_addr *ip, u8 prefix) argument
[all...]
H A Dip_set_hash_ipport.c8 /* Kernel module implementing an IP set type: the hash:ip,port type */
12 #include <linux/ip.h>
16 #include <net/ip.h>
33 IP_SET_MODULE_DESC("hash:ip,port", REVISION_MIN, REVISION_MAX);
34 MODULE_ALIAS("ip_set_hash:ip,port");
43 __be32 ip; member in struct:hash_ipport4_elem
50 __be32 ip; member in struct:hash_ipport4t_elem
58 __be32 ip; member in struct:hash_ipport4c_elem
66 __be32 ip; member in struct:hash_ipport4ct_elem
81 return ip1->ip
140 u32 ip, ip_to, p = 0, port, port_to; local
228 union nf_inet_addr ip; member in struct:hash_ipport6_elem
235 union nf_inet_addr ip; member in struct:hash_ipport6t_elem
243 union nf_inet_addr ip; member in struct:hash_ipport6c_elem
251 union nf_inet_addr ip; member in struct:hash_ipport6ct_elem
[all...]
H A Dip_set_hash_ipportip.c8 /* Kernel module implementing an IP set type: the hash:ip,port,ip type */
12 #include <linux/ip.h>
16 #include <net/ip.h>
33 IP_SET_MODULE_DESC("hash:ip,port,ip", REVISION_MIN, REVISION_MAX);
34 MODULE_ALIAS("ip_set_hash:ip,port,ip");
43 __be32 ip; member in struct:hash_ipportip4_elem
51 __be32 ip; member in struct:hash_ipportip4t_elem
60 __be32 ip; member in struct:hash_ipportip4c_elem
69 __be32 ip; member in struct:hash_ipportip4ct_elem
145 u32 ip, ip_to, p = 0, port, port_to; local
237 union nf_inet_addr ip; member in struct:hash_ipportip6_elem
245 union nf_inet_addr ip; member in struct:hash_ipportip6t_elem
254 union nf_inet_addr ip; member in struct:hash_ipportip6c_elem
263 union nf_inet_addr ip; member in struct:hash_ipportip6ct_elem
[all...]
H A Dip_set_bitmap_ipmac.c11 /* Kernel module implementing an IP set type: the bitmap:ip,mac type */
14 #include <linux/ip.h>
33 IP_SET_MODULE_DESC("bitmap:ip,mac", REVISION_MIN, REVISION_MAX);
34 MODULE_ALIAS("ip_set_bitmap:ip,mac");
70 ip_to_id(const struct bitmap_ipmac *m, u32 ip) argument
72 return ip - m->first_ip;
220 u32 ip; local
226 ip = ntohl(ip4addr(skb, opt->flags & IPSET_DIM_ONE_SRC));
227 if (ip < map->first_ip || ip > ma
249 u32 ip; local
[all...]
H A Dip_set_hash_ipportnet.c8 /* Kernel module implementing an IP set type: the hash:ip,port,net type */
12 #include <linux/ip.h>
16 #include <net/ip.h>
35 IP_SET_MODULE_DESC("hash:ip,port,net", REVISION_MIN, REVISION_MAX);
36 MODULE_ALIAS("ip_set_hash:ip,port,net");
53 __be32 ip; member in struct:hash_ipportnet4_elem
62 __be32 ip; member in struct:hash_ipportnet4t_elem
72 __be32 ip; member in struct:hash_ipportnet4c_elem
82 __be32 ip; member in struct:hash_ipportnet4ct_elem
99 return ip1->ip
199 u32 ip, ip_to, p = 0, port, port_to; local
334 union nf_inet_addr ip; member in struct:hash_ipportnet6_elem
343 union nf_inet_addr ip; member in struct:hash_ipportnet6t_elem
353 union nf_inet_addr ip; member in struct:hash_ipportnet6c_elem
363 union nf_inet_addr ip; member in struct:hash_ipportnet6ct_elem
[all...]
H A Dip_set_hash_net.c12 #include <linux/ip.h>
16 #include <net/ip.h>
43 __be32 ip; member in struct:hash_net4_elem
50 __be32 ip; member in struct:hash_net4t_elem
58 __be32 ip; member in struct:hash_net4c_elem
66 __be32 ip; member in struct:hash_net4ct_elem
81 return ip1->ip == ip2->ip &&
106 elem->ip &= ip_set_netmask(cidr);
115 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) ||
169 u32 ip = 0, ip_to, last; local
234 union nf_inet_addr ip; member in struct:hash_net6_elem
241 union nf_inet_addr ip; member in struct:hash_net6t_elem
249 union nf_inet_addr ip; member in struct:hash_net6c_elem
257 union nf_inet_addr ip; member in struct:hash_net6ct_elem
[all...]
H A Dip_set_hash_netport.c12 #include <linux/ip.h>
16 #include <net/ip.h>
52 __be32 ip; member in struct:hash_netport4_elem
60 __be32 ip; member in struct:hash_netport4t_elem
69 __be32 ip; member in struct:hash_netport4c_elem
78 __be32 ip; member in struct:hash_netport4ct_elem
94 return ip1->ip == ip2->ip &&
121 elem->ip &= ip_set_netmask(cidr);
131 if (nla_put_ipaddr4(skb, IPSET_ATTR_IP, data->ip) ||
190 u32 port, port_to, p = 0, ip = 0, ip_to, last; local
293 union nf_inet_addr ip; member in struct:hash_netport6_elem
301 union nf_inet_addr ip; member in struct:hash_netport6t_elem
310 union nf_inet_addr ip; member in struct:hash_netport6c_elem
319 union nf_inet_addr ip; member in struct:hash_netport6ct_elem
[all...]
H A Dip_set_hash_netiface.c12 #include <linux/ip.h>
17 #include <net/ip.h>
140 __be32 ip; member in struct:hash_netiface4_elem_hashed
149 __be32 ip; member in struct:hash_netiface4_elem
158 __be32 ip; member in struct:hash_netiface4t_elem
168 __be32 ip; member in struct:hash_netiface4c_elem
178 __be32 ip; member in struct:hash_netiface4ct_elem
195 return ip1->ip == ip2->ip &&
223 elem->ip
323 u32 ip = 0, ip_to, last; local
405 union nf_inet_addr ip; member in struct:hash_netiface6_elem_hashed
413 union nf_inet_addr ip; member in struct:hash_netiface6_elem
422 union nf_inet_addr ip; member in struct:hash_netiface6t_elem
432 union nf_inet_addr ip; member in struct:hash_netiface6c_elem
442 union nf_inet_addr ip; member in struct:hash_netiface6ct_elem
[all...]
/net/openvswitch/
H A Dflow.h60 } ip; member in struct:sw_flow_key
/net/batman-adv/
H A Ddistributed-arp-table.c230 * @ip: search key
235 batadv_dat_entry_hash_find(struct batadv_priv *bat_priv, __be32 ip) argument
245 index = batadv_hash_dat(&ip, hash->size);
250 if (dat_entry->ip != ip)
267 * @ip: ipv4 to add/edit
270 static void batadv_dat_entry_add(struct batadv_priv *bat_priv, __be32 ip, argument
276 dat_entry = batadv_dat_entry_hash_find(bat_priv, ip);
283 "Entry updated: %pI4 %pM\n", &dat_entry->ip,
292 dat_entry->ip
566 batadv_dat_send_data(struct batadv_priv *bat_priv, struct sk_buff *skb, __be32 ip, int packet_subtype) argument
[all...]
/net/sunrpc/
H A Dsvc.c70 int *ip = (int *)kp->arg; local
82 *ip = SVC_POOL_AUTO;
84 *ip = SVC_POOL_GLOBAL;
86 *ip = SVC_POOL_PERCPU;
88 *ip = SVC_POOL_PERNODE;
100 int *ip = (int *)kp->arg; local
102 switch (*ip)
113 return sprintf(buf, "%d", *ip);

Completed in 269 milliseconds

12