net: use the macros defined for the members of flowi
Use the macros defined for the members of flowi to clean the code up. Signed-off-by: Changli Gao <xiaosuo@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
dd68ad2235
commit
5811662b15
@@ -169,14 +169,12 @@ static inline int ip_route_connect(struct rtable **rp, __be32 dst,
|
||||
{
|
||||
struct flowi fl = { .oif = oif,
|
||||
.mark = sk->sk_mark,
|
||||
.nl_u = { .ip4_u = { .daddr = dst,
|
||||
.saddr = src,
|
||||
.tos = tos } },
|
||||
.fl4_dst = dst,
|
||||
.fl4_src = src,
|
||||
.fl4_tos = tos,
|
||||
.proto = protocol,
|
||||
.uli_u = { .ports =
|
||||
{ .sport = sport,
|
||||
.dport = dport } } };
|
||||
|
||||
.fl_ip_sport = sport,
|
||||
.fl_ip_dport = dport };
|
||||
int err;
|
||||
struct net *net = sock_net(sk);
|
||||
|
||||
|
Reference in New Issue
Block a user