[Xorp-cvs] XORP cvs commit: xorp/fea

Pavlin Radoslavov pavlin@icir.org
Thu, 30 Mar 2006 08:32:13 GMT


CVSROOT:	/usr/local/share/doc/apache/cvs
Module name:	xorp
Changes by:	pavlin@xorpc.icir.org	2006-03-30 08:32:13 UTC

XORP CVS repository


Modified files:
	fea           fticonfig_entry_get.hh 
	              fticonfig_entry_get_netlink.cc 
	              fticonfig_entry_observer.hh 
	              fticonfig_entry_observer_netlink.cc 
	              fticonfig_entry_set.hh 
	              fticonfig_entry_set_netlink.cc 
	              fticonfig_table_get.hh 
	              fticonfig_table_get_netlink.cc 
	              fticonfig_table_observer.hh 
	              fticonfig_table_observer_netlink.cc ifconfig_get.hh 
	              ifconfig_get_netlink.cc ifconfig_observer.hh 
	              ifconfig_observer_netlink.cc ifconfig_set.hh 
	              ifconfig_set_netlink.cc netlink_socket.cc 
	              netlink_socket.hh 

Log message:
	Remove the mechanism for having two (Linux-specific) netlink sockets
	NetlinkSocket4 and NetlinkSocket6 for IPv4 and IPv6-related
	communications with the kernel, and use only the (new) neutral
	NetlinkSocket class instead.
	
	The reason there were NetlinkSocket4 and NetlinkSocket6 is
	the following. According to the netlink(7) manual page, netlink
	family NETLINK_ROUTE is suppose to be used to receive and
	send IPv4 routing table updates, while NETLINK_ROUTE6 is suppose
	to be used for IPv6 routing table updates.
	
	The manual page appears to be wrong: only NETLINK_ROUTE should
	be used (for both IPv4 and IPv6). This was also discovered by trial
	and error when the NetlinkSocket[4,6] code was developed and tested,
	and in fact NETLINK_ROUTE6 was never used.
	
	This eliminates the need for two classes NetlinkSocket4 and
	NetlinkSocket6, which simplifies significantly some of the
	netlink-related the code.
	
	[For the record, the netlink(7) manual page has been corrected by
	Hasso Tepper: see Bugzilla entry #463]
	
	Bugzilla URL:   http://www.xorp.org/bugzilla/show_bug.cgi?id=464
	Submitted by:   Hasso Tepper

Revision  Changes                                  Path
1.25      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/fticonfig_entry_get.hh
1.31      +12 -60;  commitid: 15382442b91f77ea6;   xorp/fea/fticonfig_entry_get_netlink.cc
1.16      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/fticonfig_entry_observer.hh
1.12      +21 -39;  commitid: 15382442b91f77ea6;   xorp/fea/fticonfig_entry_observer_netlink.cc
1.22      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/fticonfig_entry_set.hh
1.27      +18 -89;  commitid: 15382442b91f77ea6;   xorp/fea/fticonfig_entry_set_netlink.cc
1.22      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/fticonfig_table_get.hh
1.28      +17 -66;  commitid: 15382442b91f77ea6;   xorp/fea/fticonfig_table_get_netlink.cc
1.17      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/fticonfig_table_observer.hh
1.13      +20 -38;  commitid: 15382442b91f77ea6;   xorp/fea/fticonfig_table_observer_netlink.cc
1.25      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/ifconfig_get.hh
1.18      +34 -66;  commitid: 15382442b91f77ea6;   xorp/fea/ifconfig_get_netlink.cc
1.16      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/ifconfig_observer.hh
1.15      +18 -36;  commitid: 15382442b91f77ea6;   xorp/fea/ifconfig_observer_netlink.cc
1.42      +2 -3;  commitid: 15382442b91f77ea6;     xorp/fea/ifconfig_set.hh
1.26      +36 -107;  commitid: 15382442b91f77ea6;  xorp/fea/ifconfig_set_netlink.cc
1.36      +17 -92;  commitid: 15382442b91f77ea6;   xorp/fea/netlink_socket.cc
1.18      +8 -76;  commitid: 15382442b91f77ea6;    xorp/fea/netlink_socket.hh