diff options
author | David S. Miller <davem@davemloft.net> | 2011-03-12 00:29:39 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-03-12 18:08:44 -0500 |
commit | 1d28f42c1bd4bb2363d88df74d0128b4da135b4a (patch) | |
tree | cb2e652fe79a2bc307e871bc2d3fa51cc8051e45 /net/ipv4/xfrm4_policy.c | |
parent | ca116922afa8cc5ad46b00c0a637b1cde5ca478a (diff) |
net: Put flowi_* prefix on AF independent members of struct flowi
I intend to turn struct flowi into a union of AF specific flowi
structs. There will be a common structure that each variant includes
first, much like struct sock_common.
This is the first step to move in that direction.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/xfrm4_policy.c')
-rw-r--r-- | net/ipv4/xfrm4_policy.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/ipv4/xfrm4_policy.c b/net/ipv4/xfrm4_policy.c index c70c42e7e77b..4294f121a749 100644 --- a/net/ipv4/xfrm4_policy.c +++ b/net/ipv4/xfrm4_policy.c | |||
@@ -73,9 +73,9 @@ static int xfrm4_fill_dst(struct xfrm_dst *xdst, struct net_device *dev, | |||
73 | rt->rt_key_dst = fl->fl4_dst; | 73 | rt->rt_key_dst = fl->fl4_dst; |
74 | rt->rt_key_src = fl->fl4_src; | 74 | rt->rt_key_src = fl->fl4_src; |
75 | rt->rt_tos = fl->fl4_tos; | 75 | rt->rt_tos = fl->fl4_tos; |
76 | rt->rt_iif = fl->iif; | 76 | rt->rt_iif = fl->flowi_iif; |
77 | rt->rt_oif = fl->oif; | 77 | rt->rt_oif = fl->flowi_oif; |
78 | rt->rt_mark = fl->mark; | 78 | rt->rt_mark = fl->flowi_mark; |
79 | 79 | ||
80 | xdst->u.dst.dev = dev; | 80 | xdst->u.dst.dev = dev; |
81 | dev_hold(dev); | 81 | dev_hold(dev); |
@@ -104,7 +104,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse) | |||
104 | u8 *xprth = skb_network_header(skb) + iph->ihl * 4; | 104 | u8 *xprth = skb_network_header(skb) + iph->ihl * 4; |
105 | 105 | ||
106 | memset(fl, 0, sizeof(struct flowi)); | 106 | memset(fl, 0, sizeof(struct flowi)); |
107 | fl->mark = skb->mark; | 107 | fl->flowi_mark = skb->mark; |
108 | 108 | ||
109 | if (!(iph->frag_off & htons(IP_MF | IP_OFFSET))) { | 109 | if (!(iph->frag_off & htons(IP_MF | IP_OFFSET))) { |
110 | switch (iph->protocol) { | 110 | switch (iph->protocol) { |
@@ -173,7 +173,7 @@ _decode_session4(struct sk_buff *skb, struct flowi *fl, int reverse) | |||
173 | break; | 173 | break; |
174 | } | 174 | } |
175 | } | 175 | } |
176 | fl->proto = iph->protocol; | 176 | fl->flowi_proto = iph->protocol; |
177 | fl->fl4_dst = reverse ? iph->saddr : iph->daddr; | 177 | fl->fl4_dst = reverse ? iph->saddr : iph->daddr; |
178 | fl->fl4_src = reverse ? iph->daddr : iph->saddr; | 178 | fl->fl4_src = reverse ? iph->daddr : iph->saddr; |
179 | fl->fl4_tos = iph->tos; | 179 | fl->fl4_tos = iph->tos; |