diff options
Diffstat (limited to 'lib/vty.c')
-rw-r--r-- | lib/vty.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1694,6 +1694,7 @@ vty_accept (struct thread *thread) int accept_sock; struct prefix *p = NULL; struct access_list *acl = NULL; + char *bufp; accept_sock = THREAD_FD (thread); @@ -1766,6 +1767,11 @@ vty_accept (struct thread *thread) zlog (NULL, LOG_INFO, "can't set sockopt to vty_sock : %s", safe_strerror (errno)); + zlog (NULL, LOG_INFO, "Vty connection from %s", + (bufp = sockunion_su2str (&su))); + if (bufp) + XFREE (MTYPE_TMP, bufp); + vty = vty_create (vty_sock, &su); return 0; @@ -1812,6 +1818,7 @@ vty_serv_sock_addrinfo (const char *hostname, unsigned short port) if (sock < 0) continue; + sockopt_v6only (ainfo->ai_family, sock); sockopt_reuseaddr (sock); sockopt_reuseport (sock); |