Lines Matching refs:parms

97 		if (local != t->parms.iph.saddr ||  in ip_tunnel_lookup()
98 remote != t->parms.iph.daddr || in ip_tunnel_lookup()
102 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
105 if (t->parms.link == link) in ip_tunnel_lookup()
112 if (remote != t->parms.iph.daddr || in ip_tunnel_lookup()
113 t->parms.iph.saddr != 0 || in ip_tunnel_lookup()
117 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
120 if (t->parms.link == link) in ip_tunnel_lookup()
130 if ((local != t->parms.iph.saddr || t->parms.iph.daddr != 0) && in ip_tunnel_lookup()
131 (local != t->parms.iph.daddr || !ipv4_is_multicast(local))) in ip_tunnel_lookup()
137 if (!ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_lookup()
140 if (t->parms.link == link) in ip_tunnel_lookup()
147 if ((!(flags & TUNNEL_NO_KEY) && t->parms.i_key != key) || in ip_tunnel_lookup()
148 t->parms.iph.saddr != 0 || in ip_tunnel_lookup()
149 t->parms.iph.daddr != 0 || in ip_tunnel_lookup()
153 if (t->parms.link == link) in ip_tunnel_lookup()
175 struct ip_tunnel_parm *parms) in ip_bucket() argument
179 __be32 i_key = parms->i_key; in ip_bucket()
181 if (parms->iph.daddr && !ipv4_is_multicast(parms->iph.daddr)) in ip_bucket()
182 remote = parms->iph.daddr; in ip_bucket()
186 if (!(parms->i_flags & TUNNEL_KEY) && (parms->i_flags & VTI_ISVTI)) in ip_bucket()
195 struct hlist_head *head = ip_bucket(itn, &t->parms); in ip_tunnel_add()
210 struct ip_tunnel_parm *parms, in ip_tunnel_find() argument
213 __be32 remote = parms->iph.daddr; in ip_tunnel_find()
214 __be32 local = parms->iph.saddr; in ip_tunnel_find()
215 __be32 key = parms->i_key; in ip_tunnel_find()
216 __be16 flags = parms->i_flags; in ip_tunnel_find()
217 int link = parms->link; in ip_tunnel_find()
219 struct hlist_head *head = ip_bucket(itn, parms); in ip_tunnel_find()
222 if (local == t->parms.iph.saddr && in ip_tunnel_find()
223 remote == t->parms.iph.daddr && in ip_tunnel_find()
224 link == t->parms.link && in ip_tunnel_find()
226 ip_tunnel_key_match(&t->parms, flags, key)) in ip_tunnel_find()
234 struct ip_tunnel_parm *parms) in __ip_tunnel_create() argument
242 if (parms->name[0]) { in __ip_tunnel_create()
243 if (!dev_valid_name(parms->name)) in __ip_tunnel_create()
245 strscpy(name, parms->name, IFNAMSIZ); in __ip_tunnel_create()
264 tunnel->parms = *parms; in __ip_tunnel_create()
288 iph = &tunnel->parms.iph; in ip_tunnel_bind_dev()
296 iph->saddr, tunnel->parms.o_key, in ip_tunnel_bind_dev()
298 tunnel->parms.link, tunnel->fwmark, 0, 0); in ip_tunnel_bind_dev()
311 if (!tdev && tunnel->parms.link) in ip_tunnel_bind_dev()
312 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ip_tunnel_bind_dev()
330 struct ip_tunnel_parm *parms) in ip_tunnel_create() argument
338 dev = __ip_tunnel_create(net, itn->rtnl_link_ops, parms); in ip_tunnel_create()
390 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || in ip_tunnel_rcv()
391 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { in ip_tunnel_rcv()
397 if (tunnel->parms.i_flags&TUNNEL_SEQ) { in ip_tunnel_rcv()
536 daddr = md ? dst : tunnel->parms.iph.daddr; in tnl_update_pmtu()
687 connected = (tunnel->parms.iph.daddr != 0); in ip_tunnel_xmit()
763 tunnel->parms.o_key, RT_TOS(tos), in ip_tunnel_xmit()
764 dev_net(dev), tunnel->parms.link, in ip_tunnel_xmit()
867 t->parms.iph.saddr = p->iph.saddr; in ip_tunnel_update()
868 t->parms.iph.daddr = p->iph.daddr; in ip_tunnel_update()
869 t->parms.i_key = p->i_key; in ip_tunnel_update()
870 t->parms.o_key = p->o_key; in ip_tunnel_update()
877 t->parms.iph.ttl = p->iph.ttl; in ip_tunnel_update()
878 t->parms.iph.tos = p->iph.tos; in ip_tunnel_update()
879 t->parms.iph.frag_off = p->iph.frag_off; in ip_tunnel_update()
881 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
884 t->parms.link = p->link; in ip_tunnel_update()
908 memcpy(p, &t->parms, sizeof(*p)); in ip_tunnel_ctl()
1076 return tunnel->parms.link; in ip_tunnel_get_iflink()
1084 struct ip_tunnel_parm parms; in ip_tunnel_init_net() local
1100 memset(&parms, 0, sizeof(parms)); in ip_tunnel_init_net()
1102 strscpy(parms.name, devname, IFNAMSIZ); in ip_tunnel_init_net()
1105 itn->fb_tunnel_dev = __ip_tunnel_create(net, ops, &parms); in ip_tunnel_init_net()
1184 nt->parms = *p; in ip_tunnel_newlink()
1258 struct iphdr *iph = &tunnel->parms.iph; in ip_tunnel_init()
1282 strcpy(tunnel->parms.name, dev->name); in ip_tunnel_init()