summaryrefslogtreecommitdiff
path: root/zebra
diff options
context:
space:
mode:
authorgdt <gdt>2005-12-29 16:04:53 +0000
committergdt <gdt>2005-12-29 16:04:53 +0000
commite14b7fca6279fe9dc41c8aa9816b5685952c4b19 (patch)
tree07a64009dee808041bb4ffb5605f085ae412064a /zebra
parentf80a016fbd5ba51dc08412d7fd0794b51223c978 (diff)
remove dead code (from David Young)
Diffstat (limited to 'zebra')
-rw-r--r--zebra/ChangeLog2
-rw-r--r--zebra/kernel_socket.c18
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;