Lines Matching defs:t

70    kill network. IP hop limit plays role of "t->recursion" in this case,
144 struct ip_tunnel *t;
155 t = ip_tunnel_lookup(itn, skb->dev->ifindex, tpi->flags,
158 if (!t)
203 if (t->parms.iph.daddr == 0 ||
204 ipv4_is_multicast(t->parms.iph.daddr))
207 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED)
210 if (time_before(jiffies, t->err_time + IPTUNNEL_ERR_TIMEO))
211 t->err_count++;
213 t->err_count = 1;
214 t->err_time = jiffies;
843 struct ip_tunnel *t = netdev_priv(dev);
845 ip_tunnel_flags_copy(t->parms.i_flags, p->i_flags);
846 ip_tunnel_flags_copy(t->parms.o_flags, p->o_flags);
873 ping -t 255 224.66.66.66
891 struct ip_tunnel *t = netdev_priv(dev);
895 iph = skb_push(skb, t->hlen + sizeof(*iph));
897 greh->flags = gre_tnl_flags_to_gre_flags(t->parms.o_flags);
900 memcpy(iph, &t->parms.iph, sizeof(struct iphdr));
908 return t->hlen + sizeof(*iph);
910 return -(t->hlen + sizeof(*iph));
928 struct ip_tunnel *t = netdev_priv(dev);
930 if (ipv4_is_multicast(t->parms.iph.daddr)) {
932 .flowi4_oif = t->parms.link,
933 .flowi4_tos = inet_dscp_to_dsfield(ip4h_dscp(&t->parms.iph)),
936 .saddr = t->parms.iph.saddr,
937 .daddr = t->parms.iph.daddr,
938 .fl4_gre_key = t->parms.o_key,
942 rt = ip_route_output_key(t->net, &fl4);
949 t->mlink = dev->ifindex;
950 ip_mc_inc_group(__in_dev_get_rtnl(dev), t->parms.iph.daddr);
957 struct ip_tunnel *t = netdev_priv(dev);
959 if (ipv4_is_multicast(t->parms.iph.daddr) && t->mlink) {
961 in_dev = inetdev_by_index(t->net, t->mlink);
963 ip_mc_dec_group(in_dev, t->parms.iph.daddr);
1177 struct ip_tunnel *t = netdev_priv(dev);
1216 if (t->ignore_df)
1222 t->collect_md = true;
1231 t->ignore_df = !!nla_get_u8(data[IFLA_GRE_IGNORE_DF]);
1246 struct ip_tunnel *t = netdev_priv(dev);
1256 t->erspan_ver = nla_get_u8(data[IFLA_GRE_ERSPAN_VER]);
1258 if (t->erspan_ver > 2)
1262 if (t->erspan_ver == 1) {
1264 t->index = nla_get_u32(data[IFLA_GRE_ERSPAN_INDEX]);
1265 if (t->index & ~INDEX_MASK)
1268 } else if (t->erspan_ver == 2) {
1270 t->dir = nla_get_u8(data[IFLA_GRE_ERSPAN_DIR]);
1271 if (t->dir & ~(DIR_MASK >> DIR_OFFSET))
1275 t->hwid = nla_get_u16(data[IFLA_GRE_ERSPAN_HWID]);
1276 if (t->hwid & ~(HWID_MASK >> HWID_OFFSET))
1388 struct ip_tunnel *t = netdev_priv(dev);
1389 int err = ip_tunnel_encap_setup(t, &ipencap);
1444 struct ip_tunnel *t = netdev_priv(dev);
1446 __u32 fwmark = t->fwmark;
1461 ip_tunnel_flags_copy(t->parms.i_flags, p.i_flags);
1462 ip_tunnel_flags_copy(t->parms.o_flags, p.o_flags);
1473 struct ip_tunnel *t = netdev_priv(dev);
1475 __u32 fwmark = t->fwmark;
1490 ip_tunnel_flags_copy(t->parms.i_flags, p.i_flags);
1491 ip_tunnel_flags_copy(t->parms.o_flags, p.o_flags);
1546 struct ip_tunnel *t = netdev_priv(dev);
1547 struct ip_tunnel_parm_kern *p = &t->parms;
1565 nla_put_u32(skb, IFLA_GRE_FWMARK, t->fwmark))
1569 t->encap.type) ||
1571 t->encap.sport) ||
1573 t->encap.dport) ||
1575 t->encap.flags))
1578 if (nla_put_u8(skb, IFLA_GRE_IGNORE_DF, t->ignore_df))
1581 if (t->collect_md) {
1594 struct ip_tunnel *t = netdev_priv(dev);
1596 if (t->erspan_ver <= 2) {
1597 if (t->erspan_ver != 0 && !t->collect_md)
1598 __set_bit(IP_TUNNEL_KEY_BIT, t->parms.o_flags);
1600 if (nla_put_u8(skb, IFLA_GRE_ERSPAN_VER, t->erspan_ver))
1603 if (t->erspan_ver == 1) {
1604 if (nla_put_u32(skb, IFLA_GRE_ERSPAN_INDEX, t->index))
1606 } else if (t->erspan_ver == 2) {
1607 if (nla_put_u8(skb, IFLA_GRE_ERSPAN_DIR, t->dir))
1609 if (nla_put_u16(skb, IFLA_GRE_ERSPAN_HWID, t->hwid))
1622 struct ip_tunnel *t = netdev_priv(dev);
1630 t->erspan_ver = 1;
1709 struct ip_tunnel *t;
1721 t = netdev_priv(dev);
1722 t->collect_md = true;
1806 pr_info("%s: can't add protocol\n", __func__);