|
|
|
|
@ -194,3 +194,38 @@ Index: ospfd/ospf_packet.c
|
|
|
|
|
return 0;
|
|
|
|
|
|
|
|
|
|
/* Generate a digest for the ospf packet - their digest + our digest. */
|
|
|
|
|
|
|
|
|
|
On systems which do not HAVE_IPV6 or where configure was run with
|
|
|
|
|
--disable-ipv6 zebra 0.93b ignores the hostname specified with the -A
|
|
|
|
|
option and only recognizes the port specified with the -P option. This
|
|
|
|
|
happens with FreeBSD as mentioned by Mike Tancsa in his posting
|
|
|
|
|
http://marc.theaimsgroup.com/?l=zebra&m=105118701805977 on the zebra
|
|
|
|
|
mailing list but the issue is not limited to this OS. This patch enables
|
|
|
|
|
the specification of hostname on systems which HAVE_GETADDRINFO
|
|
|
|
|
regardless of the IP version. This fixes the problem on FreeBSD and
|
|
|
|
|
possibly other OSs. Tested on FreeBSD 4.8, RedHat 9 and Solaris 9.
|
|
|
|
|
2003-07-24 thomas@lotterer.net
|
|
|
|
|
|
|
|
|
|
--- lib/vty.c.orig 2002-08-18 16:49:50.000000000 +0200
|
|
|
|
|
+++ lib/vty.c 2003-07-24 21:41:24.000000000 +0200
|
|
|
|
|
@@ -1700,7 +1700,7 @@
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
-#if defined(HAVE_IPV6) && !defined(NRL)
|
|
|
|
|
+#if (defined(HAVE_IPV6) && !defined(NRL)) || defined (HAVE_GETADDRINFO)
|
|
|
|
|
void
|
|
|
|
|
vty_serv_sock_addrinfo (const char *hostname, unsigned short port)
|
|
|
|
|
{
|
|
|
|
|
@@ -1972,7 +1972,11 @@
|
|
|
|
|
vty_serv_sock_addrinfo (hostname, port);
|
|
|
|
|
#endif /* NRL*/
|
|
|
|
|
#else /* ! HAVE_IPV6 */
|
|
|
|
|
+#ifdef HAVE_GETADDRINFO
|
|
|
|
|
+ vty_serv_sock_addrinfo (hostname, port);
|
|
|
|
|
+#else /* ! HAVE_GETADDRINFO */
|
|
|
|
|
vty_serv_sock_family (port, AF_INET);
|
|
|
|
|
+#endif /* HAVE_GETADDRINFO */
|
|
|
|
|
#endif /* HAVE_IPV6 */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|