diff options
| author | Renato Westphal <renato@opensourcerouting.org> | 2016-11-12 19:05:08 -0200 |
|---|---|---|
| committer | Renato Westphal <renato@opensourcerouting.org> | 2016-11-25 11:46:06 -0200 |
| commit | c5bdb09fd9d18ac0524a14c90f79cfad95afefd7 (patch) | |
| tree | a74b32bb6d4df5fc1075b4d71fe39fc55e2538d4 /lib/sockopt.h | |
| parent | 5736139d4a9192c9ba296d2bddc5bbbd025dfd7f (diff) | |
*: create a helper function to set the IP_MULTICAST_LOOP sockoption
Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
Diffstat (limited to 'lib/sockopt.h')
| -rw-r--r-- | lib/sockopt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sockopt.h b/lib/sockopt.h index d67b510b66..02f0189345 100644 --- a/lib/sockopt.h +++ b/lib/sockopt.h @@ -89,6 +89,8 @@ extern int setsockopt_ipv4_multicast(int sock, int optname, struct in_addr if_addr, unsigned int mcast_addr, ifindex_t ifindex); +extern int setsockopt_ipv4_multicast_loop (int sock, u_char val); + extern int setsockopt_ipv4_tos(int sock, int tos); /* Ask for, and get, ifindex, by whatever method is supported. */ |
