net: Put flowi_* prefix on AF independent members of struct flowi
[linux-3.10.git] / net / netfilter / xt_TEE.c
index 5128a6c..cb14ae2 100644 (file)
@@ -68,12 +68,13 @@ tee_tg_route4(struct sk_buff *skb, const struct xt_tee_tginfo *info)
        if (info->priv) {
                if (info->priv->oif == -1)
                        return false;
-               fl.oif = info->priv->oif;
+               fl.flowi_oif = info->priv->oif;
        }
        fl.fl4_dst = info->gw.ip;
        fl.fl4_tos = RT_TOS(iph->tos);
        fl.fl4_scope = RT_SCOPE_UNIVERSE;
-       if (ip_route_output_key(net, &rt, &fl) != 0)
+       rt = ip_route_output_key(net, &fl);
+       if (IS_ERR(rt))
                return false;
 
        skb_dst_drop(skb);
@@ -148,7 +149,7 @@ tee_tg_route6(struct sk_buff *skb, const struct xt_tee_tginfo *info)
        if (info->priv) {
                if (info->priv->oif == -1)
                        return false;
-               fl.oif = info->priv->oif;
+               fl.flowi_oif = info->priv->oif;
        }
        fl.fl6_dst = info->gw.in6;
        fl.fl6_flowlabel = ((iph->flow_lbl[0] & 0xF) << 16) |