diff options
author | Tom Gundersen <teg@jklm.no> | 2014-12-02 01:35:11 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2014-12-02 10:19:53 +0100 |
commit | 20dff6c4ff4f6e1b88c841e523ce9cff0e150fdf (patch) | |
tree | 721cbe307e563096cbd74bb969aae4c050d51ecd /src/libsystemd/sd-rtnl/rtnl-util.c | |
parent | e559b38493e6e0bc0214af2bce5aa940a8a15006 (diff) |
sd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}
Diffstat (limited to 'src/libsystemd/sd-rtnl/rtnl-util.c')
-rw-r--r-- | src/libsystemd/sd-rtnl/rtnl-util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-util.c b/src/libsystemd/sd-rtnl/rtnl-util.c index 4521742b8e..194a267b04 100644 --- a/src/libsystemd/sd-rtnl/rtnl-util.c +++ b/src/libsystemd/sd-rtnl/rtnl-util.c @@ -122,6 +122,17 @@ int rtnl_message_new_synthetic_error(int error, uint32_t serial, sd_rtnl_message return 0; } +bool rtnl_message_type_is_neigh(uint16_t type) { + switch (type) { + case RTM_NEWNEIGH: + case RTM_GETNEIGH: + case RTM_DELNEIGH: + return true; + default: + return false; + } +} + bool rtnl_message_type_is_route(uint16_t type) { switch (type) { case RTM_NEWROUTE: |