diff options
author | Tom Gundersen <teg@jklm.no> | 2013-12-06 15:13:34 +0100 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2013-12-16 17:28:18 +0100 |
commit | 9d0db17836c867ab2b8f460f649a478bf9f291d2 (patch) | |
tree | a3e1aca530481abf1244972b5d0b39c45366e63c /src/libsystemd-rtnl/rtnl-internal.h | |
parent | 3e10a9f410da15a8c8384b2d7fcf29d138c6f327 (diff) |
rtnl: clean up/add asserts
Diffstat (limited to 'src/libsystemd-rtnl/rtnl-internal.h')
-rw-r--r-- | src/libsystemd-rtnl/rtnl-internal.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libsystemd-rtnl/rtnl-internal.h b/src/libsystemd-rtnl/rtnl-internal.h index a1050a07fa..1e40427e58 100644 --- a/src/libsystemd-rtnl/rtnl-internal.h +++ b/src/libsystemd-rtnl/rtnl-internal.h @@ -86,6 +86,11 @@ struct sd_rtnl { int message_new_synthetic_error(int error, uint32_t serial, sd_rtnl_message **ret); uint32_t message_get_serial(sd_rtnl_message *m); int message_seal(sd_rtnl *nl, sd_rtnl_message *m); + +bool message_type_is_link(uint16_t type); +bool message_type_is_addr(uint16_t type); +bool message_type_is_route(uint16_t type); + int socket_write_message(sd_rtnl *nl, sd_rtnl_message *m); int socket_read_message(sd_rtnl *nl, sd_rtnl_message **ret); |