diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2017-02-08 09:36:09 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2017-02-08 09:36:09 +0100 |
commit | 884cb12992c823b7b7d57f2b4887117afc7899bc (patch) | |
tree | 0984a9cea5f97bb54ae8eaf159ff533a4a4b7412 /iface.h | |
parent | 66c552de33469f3b2619ed398436addfe843adea (diff) |
iface: Merge duplicate code
Call iface_recv() from iface_rtnl_enumerate() instead of open-coding it.
Reorder code a bit to avoid duplication.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'iface.h')
-rw-r--r-- | iface.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -32,7 +32,7 @@ typedef void (*iface_event_handler_t)(enum iface_event_type, unsigned char af, void iface_init(int sock, const char *iface, bool ipv6, iface_event_handler_t event_handler); -void iface_recv(int sock); +int iface_recv(int sock); size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, struct sockaddr_storage *addrs, size_t addrs_size); |