summaryrefslogtreecommitdiff
path: root/bgpd
diff options
context:
space:
mode:
authorChris Caputo <ccaputo@alt.net>2009-06-23 05:34:29 +0000
committerPaul Jakma <paul@quagga.net>2009-06-23 14:21:40 +0100
commit2b35ae41c2c5d39801c943fa740c72fc15613141 (patch)
treeb72600ce7970f5a62a344fd7fed3f5e53779b7a2 /bgpd
parentb60668d092f1778395b6c10b406059b8cbf235b8 (diff)
Fixes to RFC2385/MD5 BGP
* bgpd/bgp_network.c: Fix MD5 listen in IPv4 version of bgp_socket() by adding listen socket to listen_sockets list so that MD5 passwords can get set. * lib/sockopt.c: (sockopt_tcp_signature) Fix bogus "% Error while applying TCP-Sig to session(s)" / "can't set TCP_MD5SIG option" startup error messages by not returning error when there isn't one.
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_network.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bgpd/bgp_network.c b/bgpd/bgp_network.c
index 6d16c6ec..99f71138 100644
--- a/bgpd/bgp_network.c
+++ b/bgpd/bgp_network.c
@@ -517,6 +517,7 @@ bgp_socket (struct bgp *bgp, unsigned short port, char *address)
return ret;
}
+ listnode_add (bm->listen_sockets, (void *)sock);
thread_add_read (bm->master, bgp_accept, bgp, sock);
return sock;