Subject: CVS commit: syssrc
To: None <source-changes@netbsd.org>
From: Jun-ichiro itojun Hagino <itojun@netbsd.org>
List: source-changes
Date: 01/13/2001 09:19:34
Module Name: syssrc
Committed By: itojun
Date: Sat Jan 13 07:19:34 UTC 2001
Modified Files:
syssrc/sys/netinet: ip_output.c ip_var.h
Log Message:
allow IP_MULTICAST_IF and IP_ADD/DROP_MEMBERSHIP to specify interface
by interface index. if the interface address specified is in 0.0.0.0/8
it will be considered as interface index in network byteorder.
getsockopt(IP_MULTICAST_IF) preserves old behavior if
setsockopt(IP_MULTICAST_IF) was done with interface address, and
returns interface index if setsockopt(IP_MULTICAST_IF) was done with
interface index (again using the form in 0.0.0.0/8).
Suggested by Dave Thaler, based on RIPv2 MIB spec (RFC1724 section 3.3).
http://mail-index.netbsd.org/tech-net/2001/01/13/0003.html
To generate a diff of this commit:
cvs rdiff -r1.80 -r1.81 syssrc/sys/netinet/ip_output.c
cvs rdiff -r1.43 -r1.44 syssrc/sys/netinet/ip_var.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.