summaryrefslogtreecommitdiff
path: root/iface.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2017-02-08 09:36:09 +0100
committerTobias Klauser <tklauser@distanz.ch>2017-02-08 09:36:09 +0100
commit884cb12992c823b7b7d57f2b4887117afc7899bc (patch)
tree0984a9cea5f97bb54ae8eaf159ff533a4a4b7412 /iface.h
parent66c552de33469f3b2619ed398436addfe843adea (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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/iface.h b/iface.h
index 2203e92..a8eb92c 100644
--- a/iface.h
+++ b/iface.h
@@ -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);