diff options
-rw-r--r-- | zebra/ChangeLog | 2 | ||||
-rw-r--r-- | zebra/kernel_socket.c | 18 |
2 files changed, 2 insertions, 18 deletions
diff --git a/zebra/ChangeLog b/zebra/ChangeLog index b0f09511..89e5fca3 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,5 +1,7 @@ 2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com> + * kernel_socket.c: remove dead code (from David Young). + * rt_socket.c (kernel_rtm_ipv4): Use AF_INET rather than AF_UNSPEC for mask. From David Young. diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 3b290e96..c4c1f2c6 100644 --- a/zebra/kernel_socket.c +++ b/zebra/kernel_socket.c @@ -766,10 +766,6 @@ rtm_write (int message, int ret; caddr_t pnt; struct interface *ifp; - struct sockaddr_in tmp_gate; -#ifdef HAVE_IPV6 - struct sockaddr_in6 tmp_gate6; -#endif /* HAVE_IPV6 */ /* Sequencial number of routing message. */ static int msg_seq = 0; @@ -781,20 +777,6 @@ rtm_write (int message, char buf[512]; } msg; - memset (&tmp_gate, 0, sizeof (struct sockaddr_in)); - tmp_gate.sin_family = AF_INET; -#ifdef HAVE_SIN_LEN - tmp_gate.sin_len = sizeof (struct sockaddr_in); -#endif /* HAVE_SIN_LEN */ - -#ifdef HAVE_IPV6 - memset (&tmp_gate6, 0, sizeof (struct sockaddr_in6)); - tmp_gate6.sin6_family = AF_INET6; -#ifdef SIN6_LEN - tmp_gate6.sin6_len = sizeof (struct sockaddr_in6); -#endif /* SIN6_LEN */ -#endif /* HAVE_IPV6 */ - if (routing_sock < 0) return ZEBRA_ERR_EPERM; |