1socket_mchopcount6(3) Library Functions Manual socket_mchopcount6(3)
2
3
4
6 socket_mchopcount6 - set multicast hop count
7
9 #include <socket.h>
10
11 int socket_mchopcount6(int s,char TTL);
12
14 socket_mchopcount6 sets the maximum hop count of outgoing multicast
15 packets on the socket s. Each router decrements the packet hop count
16 by one and discards the packet if it reaches zero. Setting the maximum
17 hop count to 1, for example, will limit the packet propagation to the
18 LAN.
19
20 If something goes wrong, socket_mchopcount6 returns -1, setting errno
21 appropriately.
22
24 socket_mcttl4(3), socket_mcjoin4(3), socket_mcleave4(3)
25
26
27
28 socket_mchopcount6(3)