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 strlcpy(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()
297 RT_TOS(iph->tos), tunnel->parms.link, 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()
376 if ((!(tpi->flags&TUNNEL_CSUM) && (tunnel->parms.i_flags&TUNNEL_CSUM)) || in ip_tunnel_rcv()
377 ((tpi->flags&TUNNEL_CSUM) && !(tunnel->parms.i_flags&TUNNEL_CSUM))) { in ip_tunnel_rcv()
383 if (tunnel->parms.i_flags&TUNNEL_SEQ) { in ip_tunnel_rcv()
522 daddr = md ? dst : tunnel->parms.iph.daddr; in tnl_update_pmtu()
653 connected = (tunnel->parms.iph.daddr != 0); in ip_tunnel_xmit()
729 tunnel->parms.o_key, RT_TOS(tos), tunnel->parms.link, in ip_tunnel_xmit()
832 t->parms.iph.saddr = p->iph.saddr; in ip_tunnel_update()
833 t->parms.iph.daddr = p->iph.daddr; in ip_tunnel_update()
834 t->parms.i_key = p->i_key; in ip_tunnel_update()
835 t->parms.o_key = p->o_key; in ip_tunnel_update()
842 t->parms.iph.ttl = p->iph.ttl; in ip_tunnel_update()
843 t->parms.iph.tos = p->iph.tos; in ip_tunnel_update()
844 t->parms.iph.frag_off = p->iph.frag_off; in ip_tunnel_update()
846 if (t->parms.link != p->link || t->fwmark != fwmark) { in ip_tunnel_update()
849 t->parms.link = p->link; in ip_tunnel_update()
873 memcpy(p, &t->parms, sizeof(*p)); in ip_tunnel_ctl()
1041 return tunnel->parms.link; in ip_tunnel_get_iflink()
1049 struct ip_tunnel_parm parms; in ip_tunnel_init_net() local
1065 memset(&parms, 0, sizeof(parms)); in ip_tunnel_init_net()
1067 strlcpy(parms.name, devname, IFNAMSIZ); in ip_tunnel_init_net()
1070 itn->fb_tunnel_dev = __ip_tunnel_create(net, ops, &parms); in ip_tunnel_init_net()
1149 nt->parms = *p; in ip_tunnel_newlink()
1223 struct iphdr *iph = &tunnel->parms.iph; in ip_tunnel_init()
1247 strcpy(tunnel->parms.name, dev->name); in ip_tunnel_init()