Lines Matching refs:parms

198 	if (t->parms.iph.daddr == 0 ||  in ipgre_err()
199 ipv4_is_multicast(t->parms.iph.daddr)) in ipgre_err()
202 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipgre_err()
377 tnl_params = &tunnel->parms.iph; in __ipgre_rcv()
463 if (tunnel->parms.o_flags & TUNNEL_SEQ) in __gre_xmit()
468 tunnel->parms.o_flags, proto, tunnel->parms.o_key, in __gre_xmit()
652 tnl_params = &tunnel->parms.iph; in ipgre_xmit()
655 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in ipgre_xmit()
696 tunnel->parms.o_flags &= ~TUNNEL_SEQ; in erspan_xmit()
698 erspan_build_header(skb, ntohl(tunnel->parms.o_key), in erspan_xmit()
703 erspan_build_header_v2(skb, ntohl(tunnel->parms.o_key), in erspan_xmit()
711 tunnel->parms.o_flags &= ~TUNNEL_KEY; in erspan_xmit()
712 __gre_xmit(skb, dev, &tunnel->parms.iph, proto); in erspan_xmit()
734 if (gre_handle_offloads(skb, !!(tunnel->parms.o_flags & TUNNEL_CSUM))) in gre_tap_xmit()
740 __gre_xmit(skb, dev, &tunnel->parms.iph, htons(ETH_P_TEB)); in gre_tap_xmit()
755 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in ipgre_link_update()
767 if (!(tunnel->parms.o_flags & TUNNEL_SEQ)) { in ipgre_link_update()
768 if (!(tunnel->parms.o_flags & TUNNEL_CSUM) || in ipgre_link_update()
805 t->parms.i_flags = p->i_flags; in ipgre_tunnel_ctl()
806 t->parms.o_flags = p->o_flags; in ipgre_tunnel_ctl()
854 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags); in ipgre_header()
857 memcpy(iph, &t->parms.iph, sizeof(struct iphdr)); in ipgre_header()
887 if (ipv4_is_multicast(t->parms.iph.daddr)) { in ipgre_open()
892 t->parms.iph.daddr, in ipgre_open()
893 t->parms.iph.saddr, in ipgre_open()
894 t->parms.o_key, in ipgre_open()
895 RT_TOS(t->parms.iph.tos), in ipgre_open()
896 t->parms.link); in ipgre_open()
904 ip_mc_inc_group(__in_dev_get_rtnl(dev), t->parms.iph.daddr); in ipgre_open()
913 if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) { in ipgre_close()
917 ip_mc_dec_group(in_dev, t->parms.iph.daddr); in ipgre_close()
955 tunnel->tun_hlen = gre_calc_hlen(tunnel->parms.o_flags); in __gre_tunnel_init()
956 tunnel->parms.iph.protocol = IPPROTO_GRE; in __gre_tunnel_init()
959 dev->needed_headroom = tunnel->hlen + sizeof(tunnel->parms.iph); in __gre_tunnel_init()
964 if (!(tunnel->parms.o_flags & TUNNEL_SEQ)) { in __gre_tunnel_init()
969 if (!(tunnel->parms.o_flags & TUNNEL_CSUM) || in __gre_tunnel_init()
985 struct iphdr *iph = &tunnel->parms.iph; in ipgre_tunnel_init()
1130 struct ip_tunnel_parm *parms, in ipgre_netlink_parms() argument
1135 memset(parms, 0, sizeof(*parms)); in ipgre_netlink_parms()
1137 parms->iph.protocol = IPPROTO_GRE; in ipgre_netlink_parms()
1143 parms->link = nla_get_u32(data[IFLA_GRE_LINK]); in ipgre_netlink_parms()
1146 parms->i_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_IFLAGS])); in ipgre_netlink_parms()
1149 parms->o_flags = gre_flags_to_tnl_flags(nla_get_be16(data[IFLA_GRE_OFLAGS])); in ipgre_netlink_parms()
1152 parms->i_key = nla_get_be32(data[IFLA_GRE_IKEY]); in ipgre_netlink_parms()
1155 parms->o_key = nla_get_be32(data[IFLA_GRE_OKEY]); in ipgre_netlink_parms()
1158 parms->iph.saddr = nla_get_in_addr(data[IFLA_GRE_LOCAL]); in ipgre_netlink_parms()
1161 parms->iph.daddr = nla_get_in_addr(data[IFLA_GRE_REMOTE]); in ipgre_netlink_parms()
1164 parms->iph.ttl = nla_get_u8(data[IFLA_GRE_TTL]); in ipgre_netlink_parms()
1167 parms->iph.tos = nla_get_u8(data[IFLA_GRE_TOS]); in ipgre_netlink_parms()
1172 parms->iph.frag_off = htons(IP_DF); in ipgre_netlink_parms()
1183 && (parms->iph.frag_off & htons(IP_DF))) in ipgre_netlink_parms()
1197 struct ip_tunnel_parm *parms, in erspan_netlink_parms() argument
1203 err = ipgre_netlink_parms(dev, data, tb, parms, fwmark); in erspan_netlink_parms()
1302 tunnel->parms.iph.protocol = IPPROTO_GRE; in erspan_tunnel_init()
1409 t->parms.i_flags = p.i_flags; in ipgre_changelink()
1410 t->parms.o_flags = p.o_flags; in ipgre_changelink()
1438 t->parms.i_flags = p.i_flags; in erspan_changelink()
1439 t->parms.o_flags = p.o_flags; in erspan_changelink()
1495 struct ip_tunnel_parm *p = &t->parms; in ipgre_fill_info()