summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-09 20:02:27 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-09 20:02:27 +0000
commit120e91359392aa18f257cd88e77d762c32eb8a4f (patch)
treee367f821165554a8dced5e8bcba8a9eedfc69778 /lib/vty.c
parentaa04a120d60b4001bb6224a7efd6d49fec7ec622 (diff)
parentcc2dd9280c4456586080d1cf4537d26c02fa9a36 (diff)
downloadquagga-120e91359392aa18f257cd88e77d762c32eb8a4f.tar.bz2
quagga-120e91359392aa18f257cd88e77d762c32eb8a4f.tar.xz
Merge remote branch 'quagga/master' of /git/quagga.euro-ix
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 3bf7eb55..680286c0 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -1713,6 +1713,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);
@@ -1785,6 +1786,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;