diff options
author | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-07-06 19:00:24 +0200 |
---|---|---|
committer | Andrew J. Schorr <ajschorr@alumni.princeton.edu> | 2007-07-06 19:00:24 +0200 |
commit | 97cabcf760b8343512b5646e60cc228b8dc1350a (patch) | |
tree | 4aab9c935540e5eafb6f8fba8c4163e305cb809c /lib/sockopt.h | |
parent | [zebra] rib loop check for RIB_ENTRY_REMOVED checks wrong var (diff) | |
download | frr-97cabcf760b8343512b5646e60cc228b8dc1350a.tar.xz frr-97cabcf760b8343512b5646e60cc228b8dc1350a.zip |
[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.
Diffstat (limited to 'lib/sockopt.h')
-rw-r--r-- | lib/sockopt.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sockopt.h b/lib/sockopt.h index d88bfa6d6..65ba34f1b 100644 --- a/lib/sockopt.h +++ b/lib/sockopt.h @@ -79,9 +79,12 @@ extern int setsockopt_ipv6_multicast_loop (int, int); ? SOPT_SIZE_CMSG_PKTINFO_IPV6()) 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 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. */ extern int setsockopt_ifindex (int, int, int); |