diff options
author | Tom Gundersen <teg@jklm.no> | 2013-12-06 16:26:17 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-16 17:28:18 +0100 |
commit | 3e10a9f410da15a8c8384b2d7fcf29d138c6f327 (patch) | |
tree | 57b5fc14d9783ca1c7ec0175e729c0de83931203 /src/libsystemd-rtnl/rtnl-message.c | |
parent | aec6d91fb76ee55bb1f200cc4489c89072e656d5 (diff) |
rtnl: add support for receiving route messages
Diffstat (limited to 'src/libsystemd-rtnl/rtnl-message.c')
-rw-r--r-- | src/libsystemd-rtnl/rtnl-message.c | 6 |
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; |