[IPV4]: struct fib_config IPv4 address fields annotated

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Al Viro 2006-09-26 22:15:46 -07:00 committed by David S. Miller
parent 17fb2c6439
commit 6d85c10abe
2 changed files with 5 additions and 5 deletions

View file

@ -30,13 +30,13 @@ struct fib_config {
u8 fc_type; u8 fc_type;
/* 1 byte unused */ /* 1 byte unused */
u32 fc_table; u32 fc_table;
u32 fc_dst; __be32 fc_dst;
u32 fc_src; __be32 fc_src;
u32 fc_gw; __be32 fc_gw;
int fc_oif; int fc_oif;
u32 fc_flags; u32 fc_flags;
u32 fc_priority; u32 fc_priority;
u32 fc_prefsrc; __be32 fc_prefsrc;
struct nlattr *fc_mx; struct nlattr *fc_mx;
struct rtnexthop *fc_mp; struct rtnexthop *fc_mp;
int fc_mx_len; int fc_mx_len;

View file

@ -273,7 +273,7 @@ static int put_rtax(struct nlattr *mx, int len, int type, u32 value)
static int rtentry_to_fib_config(int cmd, struct rtentry *rt, static int rtentry_to_fib_config(int cmd, struct rtentry *rt,
struct fib_config *cfg) struct fib_config *cfg)
{ {
u32 addr; __be32 addr;
int plen; int plen;
memset(cfg, 0, sizeof(*cfg)); memset(cfg, 0, sizeof(*cfg));