diff options
author | gdt <gdt> | 2005-12-29 17:04:53 +0100 |
---|---|---|
committer | gdt <gdt> | 2005-12-29 17:04:53 +0100 |
commit | e14b7fca6279fe9dc41c8aa9816b5685952c4b19 (patch) | |
tree | 07a64009dee808041bb4ffb5605f085ae412064a /zebra/kernel_socket.c | |
parent | 2005-12-29 Greg Troxel <gdt@fnord.ir.bbn.com> (diff) | |
download | frr-e14b7fca6279fe9dc41c8aa9816b5685952c4b19.tar.xz frr-e14b7fca6279fe9dc41c8aa9816b5685952c4b19.zip |
remove dead code (from David Young)
Diffstat (limited to '')
-rw-r--r-- | zebra/kernel_socket.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/zebra/kernel_socket.c b/zebra/kernel_socket.c index 3b290e966..c4c1f2c62 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; |