diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-18 16:49:51 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-18 16:49:51 +0100 |
commit | 069060cad6d9a21d9ec287a7ae9a22deb87f4abc (patch) | |
tree | 93846e5638c08a6bd3e1f38e79bae78dcbba01df /iface.h | |
parent | 8868bebeee5aad1247bd93a031a7fa30138da13d (diff) |
llmnrd: Join IP multicast group on each new interface
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'iface.h')
-rw-r--r-- | iface.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -21,10 +21,18 @@ #include <sys/socket.h> -size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, - struct sockaddr_storage *addrs, size_t addrs_size); +enum iface_event_type { + IFACE_ADD, + IFACE_DEL, +}; + +typedef void (*iface_event_handler_t)(enum iface_event_type, int af, unsigned int ifindex); +void iface_register_event_handler(iface_event_handler_t event_handler); int iface_start_thread(void); void iface_stop(void); +size_t iface_addr_lookup(unsigned int ifindex, unsigned char family, + struct sockaddr_storage *addrs, size_t addrs_size); + #endif /* IFACE_H */ |