Lines Matching refs:parms
108 if (local == t->parms.iph.saddr && in ipip6_tunnel_lookup()
109 remote == t->parms.iph.daddr && in ipip6_tunnel_lookup()
110 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
111 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
116 if (remote == t->parms.iph.daddr && in ipip6_tunnel_lookup()
117 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
118 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
123 if (local == t->parms.iph.saddr && in ipip6_tunnel_lookup()
124 (!dev || !t->parms.link || ifindex == t->parms.link || in ipip6_tunnel_lookup()
125 sifindex == t->parms.link) && in ipip6_tunnel_lookup()
136 struct ip_tunnel_parm *parms) in __ipip6_bucket() argument
138 __be32 remote = parms->iph.daddr; in __ipip6_bucket()
139 __be32 local = parms->iph.saddr; in __ipip6_bucket()
157 return __ipip6_bucket(sitn, &t->parms); in ipip6_bucket()
207 __dev_addr_set(dev, &t->parms.iph.saddr, 4); in ipip6_tunnel_create()
208 memcpy(dev->broadcast, &t->parms.iph.daddr, 4); in ipip6_tunnel_create()
210 if ((__force u16)t->parms.i_flags & SIT_ISATAP) in ipip6_tunnel_create()
229 struct ip_tunnel_parm *parms, int create) in ipip6_tunnel_locate() argument
231 __be32 remote = parms->iph.daddr; in ipip6_tunnel_locate()
232 __be32 local = parms->iph.saddr; in ipip6_tunnel_locate()
239 for (tp = __ipip6_bucket(sitn, parms); in ipip6_tunnel_locate()
242 if (local == t->parms.iph.saddr && in ipip6_tunnel_locate()
243 remote == t->parms.iph.daddr && in ipip6_tunnel_locate()
244 parms->link == t->parms.link) { in ipip6_tunnel_locate()
254 if (parms->name[0]) { in ipip6_tunnel_locate()
255 if (!dev_valid_name(parms->name)) in ipip6_tunnel_locate()
257 strlcpy(name, parms->name, IFNAMSIZ); in ipip6_tunnel_locate()
270 nt->parms = *parms; in ipip6_tunnel_locate()
274 if (!parms->name[0]) in ipip6_tunnel_locate()
275 strcpy(parms->name, dev->name); in ipip6_tunnel_locate()
574 t->parms.link, iph->protocol); in ipip6_err()
579 ipv4_redirect(skb, dev_net(skb->dev), t->parms.link, in ipip6_err()
590 if (t->parms.iph.daddr == 0) in ipip6_err()
593 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip6_err()
691 if (tunnel->parms.iph.protocol != IPPROTO_IPV6 && in ipip6_rcv()
692 tunnel->parms.iph.protocol != 0) in ipip6_rcv()
771 if (tunnel->parms.iph.protocol != ipproto && in sit_tunnel_rcv()
772 tunnel->parms.iph.protocol != 0) in sit_tunnel_rcv()
865 const struct iphdr *tiph = &tunnel->parms.iph; in ipip6_tunnel_xmit()
867 u8 tos = tunnel->parms.iph.tos; in ipip6_tunnel_xmit()
944 flowi4_init_output(&fl4, tunnel->parms.link, tunnel->fwmark, in ipip6_tunnel_xmit()
991 if (tunnel->parms.iph.daddr) in ipip6_tunnel_xmit()
1058 const struct iphdr *tiph = &tunnel->parms.iph; in sit_tunnel_xmit__()
1112 iph = &tunnel->parms.iph; in ipip6_tunnel_bind_dev()
1121 tunnel->parms.link); in ipip6_tunnel_bind_dev()
1130 if (!tdev && tunnel->parms.link) in ipip6_tunnel_bind_dev()
1131 tdev = __dev_get_by_index(tunnel->net, tunnel->parms.link); in ipip6_tunnel_bind_dev()
1150 t->parms.iph.saddr = p->iph.saddr; in ipip6_tunnel_update()
1151 t->parms.iph.daddr = p->iph.daddr; in ipip6_tunnel_update()
1155 t->parms.iph.ttl = p->iph.ttl; in ipip6_tunnel_update()
1156 t->parms.iph.tos = p->iph.tos; in ipip6_tunnel_update()
1157 t->parms.iph.frag_off = p->iph.frag_off; in ipip6_tunnel_update()
1158 if (t->parms.link != p->link || t->fwmark != fwmark) { in ipip6_tunnel_update()
1159 t->parms.link = p->link; in ipip6_tunnel_update()
1283 memcpy(p, &t->parms, sizeof(*p)); in ipip6_tunnel_get()
1453 strcpy(tunnel->parms.name, dev->name); in ipip6_tunnel_init()
1473 struct iphdr *iph = &tunnel->parms.iph; in ipip6_fb_tunnel_init()
1501 struct ip_tunnel_parm *parms, in ipip6_netlink_parms() argument
1504 memset(parms, 0, sizeof(*parms)); in ipip6_netlink_parms()
1506 parms->iph.version = 4; in ipip6_netlink_parms()
1507 parms->iph.protocol = IPPROTO_IPV6; in ipip6_netlink_parms()
1508 parms->iph.ihl = 5; in ipip6_netlink_parms()
1509 parms->iph.ttl = 64; in ipip6_netlink_parms()
1515 parms->link = nla_get_u32(data[IFLA_IPTUN_LINK]); in ipip6_netlink_parms()
1518 parms->iph.saddr = nla_get_be32(data[IFLA_IPTUN_LOCAL]); in ipip6_netlink_parms()
1521 parms->iph.daddr = nla_get_be32(data[IFLA_IPTUN_REMOTE]); in ipip6_netlink_parms()
1524 parms->iph.ttl = nla_get_u8(data[IFLA_IPTUN_TTL]); in ipip6_netlink_parms()
1525 if (parms->iph.ttl) in ipip6_netlink_parms()
1526 parms->iph.frag_off = htons(IP_DF); in ipip6_netlink_parms()
1530 parms->iph.tos = nla_get_u8(data[IFLA_IPTUN_TOS]); in ipip6_netlink_parms()
1533 parms->iph.frag_off = htons(IP_DF); in ipip6_netlink_parms()
1536 parms->i_flags = nla_get_be16(data[IFLA_IPTUN_FLAGS]); in ipip6_netlink_parms()
1539 parms->iph.protocol = nla_get_u8(data[IFLA_IPTUN_PROTO]); in ipip6_netlink_parms()
1636 ipip6_netlink_parms(data, &nt->parms, &nt->fwmark); in ipip6_newlink()
1638 if (ipip6_tunnel_locate(net, &nt->parms, 0)) in ipip6_newlink()
1757 struct ip_tunnel_parm *parm = &tunnel->parms; in ipip6_fill_info()
1932 strcpy(t->parms.name, sitn->fb_tunnel_dev->name); in sit_init_net()