summaryrefslogtreecommitdiffstats
path: root/pimd/pim_sock.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetwroks.com>2016-07-28 02:13:16 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-12-22 02:26:04 +0100
commit728cd663005142392693bdefdef489e4991949de (patch)
treed132c7bf3b0e5008f698f27357863c88adde8851 /pimd/pim_sock.h
parentpimd: Revamp send of join/prune to actually set bits right. (diff)
downloadfrr-728cd663005142392693bdefdef489e4991949de.tar.xz
frr-728cd663005142392693bdefdef489e4991949de.zip
pimd: Create pim_socket_bind
Allow a socket to be bound to a specified interface. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_sock.h')
-rw-r--r--pimd/pim_sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_sock.h b/pimd/pim_sock.h
index 556049d9b..51ad88e24 100644
--- a/pimd/pim_sock.h
+++ b/pimd/pim_sock.h
@@ -37,6 +37,7 @@
#define PIM_SOCK_ERR_NAME (-10) /* Socket name (getsockname) */
#define PIM_SOCK_ERR_BIND (-11) /* Can't bind to interface */
+int pim_socket_bind (int fd, struct interface *ifp);
int pim_socket_raw(int protocol);
int pim_socket_mcast(int protocol, struct in_addr ifaddr, int ifindex, u_char loop);
int pim_socket_join(int fd, struct in_addr group,