aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/route.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2011-03-12 03:00:33 -0500
committerDavid S. Miller <davem@davemloft.net>2011-03-12 18:08:54 -0500
commit9cce96df5b76691712dba22e83ff5efe900361e1 (patch)
treeeecf99e64c6866af944e1e1644d87737392b2da2 /include/net/route.h
parentf42454d632753d71ea1a2df09be7bbda32b6372d (diff)
net: Put fl4_* macros to struct flowi4 and use them again.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/route.h')
-rw-r--r--include/net/route.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/include/net/route.h b/include/net/route.h
index 80b0353f4f41..30d6cae3841a 100644
--- a/include/net/route.h
+++ b/include/net/route.h
@@ -157,8 +157,8 @@ static inline struct rtable *ip_route_output_ports(struct net *net, struct sock
157 .saddr = saddr, 157 .saddr = saddr,
158 .flowi4_tos = tos, 158 .flowi4_tos = tos,
159 .flowi4_proto = proto, 159 .flowi4_proto = proto,
160 .uli.ports.dport = dport, 160 .fl4_dport = dport,
161 .uli.ports.sport = sport, 161 .fl4_sport = sport,
162 }; 162 };
163 if (sk) 163 if (sk)
164 security_sk_classify_flow(sk, flowi4_to_flowi(&fl4)); 164 security_sk_classify_flow(sk, flowi4_to_flowi(&fl4));
@@ -175,7 +175,7 @@ static inline struct rtable *ip_route_output_gre(struct net *net,
175 .saddr = saddr, 175 .saddr = saddr,
176 .flowi4_tos = tos, 176 .flowi4_tos = tos,
177 .flowi4_proto = IPPROTO_GRE, 177 .flowi4_proto = IPPROTO_GRE,
178 .uli.gre_key = gre_key, 178 .fl4_gre_key = gre_key,
179 }; 179 };
180 return ip_route_output_key(net, &fl4); 180 return ip_route_output_key(net, &fl4);
181} 181}
@@ -235,8 +235,8 @@ static inline struct rtable *ip_route_connect(__be32 dst, __be32 src, u32 tos,
235 .saddr = src, 235 .saddr = src,
236 .flowi4_tos = tos, 236 .flowi4_tos = tos,
237 .flowi4_proto = protocol, 237 .flowi4_proto = protocol,
238 .uli.ports.sport = sport, 238 .fl4_sport = sport,
239 .uli.ports.dport = dport, 239 .fl4_dport = dport,
240 }; 240 };
241 struct net *net = sock_net(sk); 241 struct net *net = sock_net(sk);
242 struct rtable *rt; 242 struct rtable *rt;
@@ -273,8 +273,8 @@ static inline struct rtable *ip_route_newports(struct rtable *rt,
273 .saddr = rt->rt_key_src, 273 .saddr = rt->rt_key_src,
274 .flowi4_tos = rt->rt_tos, 274 .flowi4_tos = rt->rt_tos,
275 .flowi4_proto = protocol, 275 .flowi4_proto = protocol,
276 .uli.ports.sport = sport, 276 .fl4_sport = sport,
277 .uli.ports.dport = dport 277 .fl4_dport = dport
278 }; 278 };
279 if (inet_sk(sk)->transparent) 279 if (inet_sk(sk)->transparent)
280 fl4.flowi4_flags |= FLOWI_FLAG_ANYSRC; 280 fl4.flowi4_flags |= FLOWI_FLAG_ANYSRC;