diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2015-02-18 16:54:00 +0100 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2015-02-18 16:54:00 +0100 |
commit | e6e971ba1b23bb67b43a909b486cbad5c6e96e06 (patch) | |
tree | 4f6efd34cad394646b8a44da38171da96f98d617 /socket.h | |
parent | 069060cad6d9a21d9ec287a7ae9a22deb87f4abc (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'socket.h')
-rw-r--r-- | socket.h | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -19,9 +19,14 @@ #ifndef SOCKET_H #define SOCKET_H +#include <stdbool.h> #include <stdint.h> -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 */ |