summaryrefslogtreecommitdiffstats
path: root/zebra/kernel_socket.c
diff options
context:
space:
mode:
authorpaul <paul>2005-11-11 10:52:40 +0100
committerpaul <paul>2005-11-11 10:52:40 +0100
commit0994c3a59c114e4e2427f2c02cb2f12881854e36 (patch)
tree8f2230655273a995a554ffa51e2daad325c08df3 /zebra/kernel_socket.c
parent2005-11-10 Paul Jakma <paul.jakma@sun.com> (diff)
downloadfrr-0994c3a59c114e4e2427f2c02cb2f12881854e36.tar.xz
frr-0994c3a59c114e4e2427f2c02cb2f12881854e36.zip
[zebra] Fix warning and small connected-label changes merge error.
2005-11-11 Paul Jakma <paul.jakma@sun.com> * kernel_socket.c: (ifm_read) arithmetic on void pointer warning. (ifam_read) Fix error from connected-with-label merge, something crept in from the pending Solaris kernel_socket.c patch which shouldn't have.
Diffstat (limited to 'zebra/kernel_socket.c')
-rw-r--r--zebra/kernel_socket.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c
index c264437d1..b1b143ee6 100644
--- a/zebra/kernel_socket.c
+++ b/zebra/kernel_socket.c
@@ -250,7 +250,7 @@ ifm_read (struct if_msghdr *ifm)
{
struct interface *ifp = NULL;
struct sockaddr_dl *sdl = NULL;
- void *cp;
+ caddr_t *cp;
unsigned int i;
/* paranoia: sanity check structure */
@@ -488,8 +488,7 @@ ifam_read (struct ifa_msghdr *ifam)
if (ifam->ifam_type == RTM_NEWADDR)
connected_add_ipv4 (ifp, 0, &addr.sin.sin_addr,
ip_masklen (mask.sin.sin_addr),
- &brd.sin.sin_addr,
- (isalias ? ifname : NULL) );
+ &brd.sin.sin_addr, NULL);
else
connected_delete_ipv4 (ifp, 0, &addr.sin.sin_addr,
ip_masklen (mask.sin.sin_addr),
@@ -506,8 +505,7 @@ ifam_read (struct ifa_msghdr *ifam)
connected_add_ipv6 (ifp,
&addr.sin6.sin6_addr,
ip6_masklen (mask.sin6.sin6_addr),
- &brd.sin6.sin6_addr,
- (isalias ? ifname : NULL) );
+ &brd.sin6.sin6_addr, NULL);
else
connected_delete_ipv6 (ifp,
&addr.sin6.sin6_addr,