diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-09-27 05:15:46 (GMT) |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-29 00:54:17 (GMT) |
commit | 6d85c10abe840e98cbac673202fe7cc9ada2180c (patch) | |
tree | 6f8c6c18c58dfea095cc6f9e0f3e19b3e0303d0c | |
parent | 17fb2c64394a2d5106540d69fc83c183ee7c206e (diff) | |
download | linux-fsl-qoriq-6d85c10abe840e98cbac673202fe7cc9ada2180c.tar.xz |
[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>
-rw-r--r-- | include/net/ip_fib.h | 8 | ||||
-rw-r--r-- | net/ipv4/fib_frontend.c | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/include/net/ip_fib.h b/include/net/ip_fib.h index ece746f..cacf4c5 100644 --- a/include/net/ip_fib.h +++ b/include/net/ip_fib.h @@ -30,13 +30,13 @@ struct fib_config { u8 fc_type; /* 1 byte unused */ u32 fc_table; - u32 fc_dst; - u32 fc_src; - u32 fc_gw; + __be32 fc_dst; + __be32 fc_src; + __be32 fc_gw; int fc_oif; u32 fc_flags; u32 fc_priority; - u32 fc_prefsrc; + __be32 fc_prefsrc; struct nlattr *fc_mx; struct rtnexthop *fc_mp; int fc_mx_len; diff --git a/net/ipv4/fib_frontend.c b/net/ipv4/fib_frontend.c index 319aaaf..7f52179 100644 --- a/net/ipv4/fib_frontend.c +++ b/net/ipv4/fib_frontend.c @@ -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, struct fib_config *cfg) { - u32 addr; + __be32 addr; int plen; memset(cfg, 0, sizeof(*cfg)); |