mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-07 13:13:08 +00:00
[lib] Add comments regarding setsockopt_multicast_ipv4 arguments.
2007-07-06 Andrew J. Schorr <ajschorr@alumni.princeton.edu> * sockopt.{c,h}: (setsockopt_multicast_ipv4) Add some comments about the arguments.
This commit is contained in:
parent
0b8c4f1d81
commit
97cabcf760
@ -1,3 +1,8 @@
|
|||||||
|
2007-07-06 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
|
* sockopt.{c,h}: (setsockopt_multicast_ipv4) Add some comments about
|
||||||
|
the arguments.
|
||||||
|
|
||||||
2007-06-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
2007-06-01 Andrew J. Schorr <ajschorr@alumni.princeton.edu>
|
||||||
|
|
||||||
* zebra.h: On linux, we seem to need to include <linux/types.h> before
|
* zebra.h: On linux, we seem to need to include <linux/types.h> before
|
||||||
|
@ -176,9 +176,10 @@ getsockopt_ipv6_ifindex (struct msghdr *msgh)
|
|||||||
int
|
int
|
||||||
setsockopt_multicast_ipv4(int sock,
|
setsockopt_multicast_ipv4(int sock,
|
||||||
int optname,
|
int optname,
|
||||||
struct in_addr if_addr,
|
struct in_addr if_addr /* required */,
|
||||||
unsigned int mcast_addr,
|
unsigned int mcast_addr,
|
||||||
unsigned int ifindex)
|
unsigned int ifindex /* optional: if non-zero, may be
|
||||||
|
used instead of if_addr */)
|
||||||
{
|
{
|
||||||
|
|
||||||
#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
|
#ifdef HAVE_STRUCT_IP_MREQN_IMR_IFINDEX
|
||||||
|
@ -79,9 +79,12 @@ extern int setsockopt_ipv6_multicast_loop (int, int);
|
|||||||
? SOPT_SIZE_CMSG_PKTINFO_IPV6())
|
? SOPT_SIZE_CMSG_PKTINFO_IPV6())
|
||||||
|
|
||||||
extern int setsockopt_multicast_ipv4(int sock, int optname,
|
extern int setsockopt_multicast_ipv4(int sock, int optname,
|
||||||
struct in_addr if_addr,
|
struct in_addr if_addr
|
||||||
|
/* required: interface to join on */,
|
||||||
unsigned int mcast_addr,
|
unsigned int mcast_addr,
|
||||||
unsigned int ifindex);
|
unsigned int ifindex
|
||||||
|
/* optional: if non-zero, may be used
|
||||||
|
instead of if_addr */);
|
||||||
|
|
||||||
/* Ask for, and get, ifindex, by whatever method is supported. */
|
/* Ask for, and get, ifindex, by whatever method is supported. */
|
||||||
extern int setsockopt_ifindex (int, int, int);
|
extern int setsockopt_ifindex (int, int, int);
|
||||||
|
Loading…
Reference in New Issue
Block a user