summaryrefslogtreecommitdiff
path: root/src/libsystemd-rtnl
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2013-12-06 16:26:17 +0100
committerTom Gundersen <teg@jklm.no>2013-12-16 17:28:18 +0100
commit3e10a9f410da15a8c8384b2d7fcf29d138c6f327 (patch)
tree57b5fc14d9783ca1c7ec0175e729c0de83931203 /src/libsystemd-rtnl
parentaec6d91fb76ee55bb1f200cc4489c89072e656d5 (diff)
rtnl: add support for receiving route messages
Diffstat (limited to 'src/libsystemd-rtnl')
-rw-r--r--src/libsystemd-rtnl/rtnl-message.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libsystemd-rtnl/rtnl-message.c b/src/libsystemd-rtnl/rtnl-message.c
index 8d62df965a..65cc5010f4 100644
--- a/src/libsystemd-rtnl/rtnl-message.c
+++ b/src/libsystemd-rtnl/rtnl-message.c
@@ -653,6 +653,12 @@ int socket_read_message(sd_rtnl *nl, sd_rtnl_message **ret) {
if (m->hdr->nlmsg_len < NLMSG_LENGTH(sizeof(struct ifaddrmsg)))
k = -EIO;
break;
+ case RTM_NEWROUTE:
+ case RTM_DELROUTE:
+ case RTM_GETROUTE:
+ if (m->hdr->nlmsg_len < NLMSG_LENGTH(sizeof(struct rtmsg)))
+ k = -EIO;
+ break;
case NLMSG_NOOP:
k = 0;
break;