summaryrefslogtreecommitdiffstats
path: root/lib/route
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2014-03-20 17:24:12 (GMT)
committerThomas Haller <thaller@redhat.com>2014-03-21 11:23:09 (GMT)
commitc0a5b393086e052d45f0f43ae1ec3b65b6de0d97 (patch)
tree316cd3942c292445146c15e115ca6b8f3440a767 /lib/route
parent67a704676c9ccc153f87aa86cd0a444f42608162 (diff)
downloadlibnl-c0a5b393086e052d45f0f43ae1ec3b65b6de0d97.zip
libnl-c0a5b393086e052d45f0f43ae1ec3b65b6de0d97.tar.gz
libnl-c0a5b393086e052d45f0f43ae1ec3b65b6de0d97.tar.bz2
u32: add const to rtnl_u32_add_key_in*_addr()
Cc: Thomas Haller <thaller@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/route')
-rw-r--r--lib/route/cls/u32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/route/cls/u32.c b/lib/route/cls/u32.c
index d303d4b..52ab263 100644
--- a/lib/route/cls/u32.c
+++ b/lib/route/cls/u32.c
@@ -645,14 +645,14 @@ int rtnl_u32_add_key_uint32(struct rtnl_cls *cls, uint32_t val, uint32_t mask,
off & ~3, offmask);
}
-int rtnl_u32_add_key_in_addr(struct rtnl_cls *cls, struct in_addr *addr,
+int rtnl_u32_add_key_in_addr(struct rtnl_cls *cls, const struct in_addr *addr,
uint8_t bitmask, int off, int offmask)
{
uint32_t mask = 0xFFFFFFFF << (32 - bitmask);
return rtnl_u32_add_key(cls, addr->s_addr, htonl(mask), off, offmask);
}
-int rtnl_u32_add_key_in6_addr(struct rtnl_cls *cls, struct in6_addr *addr,
+int rtnl_u32_add_key_in6_addr(struct rtnl_cls *cls, const struct in6_addr *addr,
uint8_t bitmask, int off, int offmask)
{
int i, err;