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
@@ -175,7 +175,7 @@ static int dn_fib_rule_compare(struct fib_rule *rule, struct fib_rule_hdr *frh,
|
||||
|
||||
unsigned dnet_addr_type(__le16 addr)
|
||||
{
|
||||
struct flowi fl = { .nl_u = { .dn_u = { .daddr = addr } } };
|
||||
struct flowi fl = { .fld_dst = addr };
|
||||
struct dn_fib_res res;
|
||||
unsigned ret = RTN_UNICAST;
|
||||
struct dn_fib_table *tb = dn_fib_get_table(RT_TABLE_LOCAL, 0);
|
||||
|
Reference in New Issue
Block a user