diff options
| author | paul <paul> | 2005-11-12 22:55:10 +0000 | 
|---|---|---|
| committer | paul <paul> | 2005-11-12 22:55:10 +0000 | 
| commit | 6fe70d1b35c189cb1e488b2c26551ba7baac6148 (patch) | |
| tree | c2fc75ff90d6ad2d8a05f1f8a6414a913be53a8d /zebra/rt_socket.c | |
| parent | db29ae5fcaee1d2de371415e351afe6c3df19874 (diff) | |
[solaris] Extra debug and cross-checks for kernel_socket, two Sol9 fixes.
2005-11-12 Alexander Gall <gall@switch.ch>
	* See [quagga-dev 1815]
	* kernel_socket.c: (rtm_write) Use SAROUNDUP when HAVE_SIN_LEN
	  is not available.
	* rt_socket.c: (kernel_rtm_ipv6(_multipath)) set family to
	  AF_INET6 on ipv6 routes.
2005-11-12 Paul Jakma <paul.jakma@sun.com>
	* kernel_socket.c: Add RTA_NAME_GET macro to extract name from
	  sockaddr_dl. Add some more RTF_ flags.
	* (ifan_read) Add some debug messages.
	* (ifm_read) Add more debug messages. More robust cross-checks
	  of index against name.
	  Fall back to by-name lookup if the index lookup fails, future
	  proofing more than anything else.
	  (ifam_read_mesg) Read RTA_IFP. Add debug messages.
	  (ifam_read) More debug. If there's an RTA_IFP and it isn't
	  the name of the interface, save it as the label.
	  (rtm_read_mesg) Read RTA_IFP.
	  (rtm_read) allow name to be retrieved.
	  (rtmsg_debug) expand on the debug message.
Diffstat (limited to 'zebra/rt_socket.c')
| -rw-r--r-- | zebra/rt_socket.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/zebra/rt_socket.c b/zebra/rt_socket.c index f447d8ca..fa2f172c 100644 --- a/zebra/rt_socket.c +++ b/zebra/rt_socket.c @@ -290,7 +290,7 @@ kernel_rtm_ipv6 (int message, struct prefix_ipv6 *dest,    else      {        masklen2ip6 (dest->prefixlen, &sin_mask.sin6_addr); -      sin_mask.sin6_family = AF_UNSPEC; +      sin_mask.sin6_family = AF_INET6;  #ifdef SIN6_LEN        sin_mask.sin6_len = sin6_masklen (sin_mask.sin6_addr);  #endif /* SIN6_LEN */ @@ -400,7 +400,7 @@ kernel_rtm_ipv6_multipath (int cmd, struct prefix *p, struct rib *rib,        else  	{  	  masklen2ip6 (p->prefixlen, &sin_mask.sin6_addr); -	  sin_mask.sin6_family = AF_UNSPEC; +	  sin_mask.sin6_family = AF_INET6;  #ifdef SIN6_LEN  	  sin_mask.sin6_len = sin6_masklen (sin_mask.sin6_addr);  #endif /* SIN6_LEN */ | 
