diff options
Diffstat (limited to 'bgpd')
-rw-r--r-- | bgpd/Makefile.am | 2 | ||||
-rw-r--r-- | bgpd/bgp_network.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bgpd/Makefile.am b/bgpd/Makefile.am index 0fe82ae0..80e93284 100644 --- a/bgpd/Makefile.am +++ b/bgpd/Makefile.am @@ -22,7 +22,7 @@ noinst_HEADERS = \ bgp_advertise.h bgp_snmp.h bgp_vty.h bgpd_SOURCES = bgp_main.c -bgpd_LDADD = libbgp.a ../lib/libzebra.la @LIBCAP@ +bgpd_LDADD = libbgp.a ../lib/libzebra.la @LIBCAP@ @LIBM@ examplesdir = $(exampledir) dist_examples_DATA = bgpd.conf.sample bgpd.conf.sample2 diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c index 61661c0d..8040e47d 100644 --- a/bgpd/bgp_network.c +++ b/bgpd/bgp_network.c @@ -159,9 +159,9 @@ bgp_bind_address (int sock, struct in_addr *addr) memset (&local, 0, sizeof (struct sockaddr_in)); local.sin_family = AF_INET; -#ifdef HAVE_SIN_LEN +#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN local.sin_len = sizeof(struct sockaddr_in); -#endif /* HAVE_SIN_LEN */ +#endif /* HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */ memcpy (&local.sin_addr, addr, sizeof (struct in_addr)); if ( bgpd_privs.change (ZPRIVS_RAISE) ) @@ -379,9 +379,9 @@ bgp_socket (struct bgp *bgp, unsigned short port) sin.sin_family = AF_INET; sin.sin_port = htons (port); socklen = sizeof (struct sockaddr_in); -#ifdef HAVE_SIN_LEN +#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN sin.sin_len = socklen; -#endif /* HAVE_SIN_LEN */ +#endif /* HAVE_STRUCT_SOCKADDR_IN_SIN_LEN */ if ( bgpd_privs.change (ZPRIVS_RAISE) ) zlog_err ("bgp_socket: could not raise privs"); |