From e6e971ba1b23bb67b43a909b486cbad5c6e96e06 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 18 Feb 2015 16:54:00 +0100 Subject: socket: Add functions for multicast group join/leave and IPv6 socket creation Add functions missed in previous commit, 069060cad6d9 ("llmnrd: Join IP multicast group on each new interface"). Also add socket_open_ipv6() to creat IPv6 sockets. Not used yet. Signed-off-by: Tobias Klauser --- socket.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'socket.h') diff --git a/socket.h b/socket.h index 192c08f..bb555c8 100644 --- a/socket.h +++ b/socket.h @@ -19,9 +19,14 @@ #ifndef SOCKET_H #define SOCKET_H +#include #include -int socket_open_v4(uint16_t port); +int socket_open_ipv4(uint16_t port); +int socket_open_ipv6(uint16_t port); int socket_open_rtnl(void); +int socket_mcast_group_ipv4(int sock, unsigned int ifindex, bool join); +int socket_mcast_group_ipv6(int sock, unsigned int ifindex, bool join); + #endif /* SOCKET_H */ -- cgit v1.2.3-54-g00ecf