heasley: I've used this for a while to track usage.
int accept_sock;
struct prefix *p = NULL;
struct access_list *acl = NULL;
+ char *bufp;
accept_sock = THREAD_FD (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;