git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git://openvswitch.org/openvswitch
[sliver-openvswitch.git]
/
lib
/
route-table.c
diff --git
a/lib/route-table.c
b/lib/route-table.c
index
d572e8c
..
1afc01d
100644
(file)
--- a/
lib/route-table.c
+++ b/
lib/route-table.c
@@
-270,7
+270,7
@@
route_table_parse(struct ofpbuf *buf, struct route_table_msg *change)
const struct nlmsghdr *nlmsg;
nlmsg = buf->data;
const struct nlmsghdr *nlmsg;
nlmsg = buf->data;
- rtm =
(const struct rtmsg *) ((const char *) buf->data + NLMSG_HDRLEN
);
+ rtm =
ofpbuf_at(buf, NLMSG_HDRLEN, sizeof *rtm
);
if (rtm->rtm_family != AF_INET) {
VLOG_DBG_RL(&rl, "received non AF_INET rtnetlink route message");
if (rtm->rtm_family != AF_INET) {
VLOG_DBG_RL(&rl, "received non AF_INET rtnetlink route message");