version 1.1.1.1, 2012/02/21 17:26:12
|
version 1.1.1.2, 2012/10/09 09:22:28
|
Line 699 vty_end_config (struct vty *vty)
|
Line 699 vty_end_config (struct vty *vty)
|
case ZEBRA_NODE: |
case ZEBRA_NODE: |
case RIP_NODE: |
case RIP_NODE: |
case RIPNG_NODE: |
case RIPNG_NODE: |
|
case BABEL_NODE: |
case BGP_NODE: |
case BGP_NODE: |
case BGP_VPNV4_NODE: |
case BGP_VPNV4_NODE: |
case BGP_IPV4_NODE: |
case BGP_IPV4_NODE: |
Line 1107 vty_stop_input (struct vty *vty)
|
Line 1108 vty_stop_input (struct vty *vty)
|
case ZEBRA_NODE: |
case ZEBRA_NODE: |
case RIP_NODE: |
case RIP_NODE: |
case RIPNG_NODE: |
case RIPNG_NODE: |
|
case BABEL_NODE: |
case BGP_NODE: |
case BGP_NODE: |
case RMAP_NODE: |
case RMAP_NODE: |
case OSPF_NODE: |
case OSPF_NODE: |
Line 1685 static int
|
Line 1687 static int
|
vty_accept (struct thread *thread) |
vty_accept (struct thread *thread) |
{ |
{ |
int vty_sock; |
int vty_sock; |
struct vty *vty; |
|
union sockunion su; |
union sockunion su; |
int ret; |
int ret; |
unsigned int on; |
unsigned int on; |
Line 1770 vty_accept (struct thread *thread)
|
Line 1771 vty_accept (struct thread *thread)
|
if (bufp) |
if (bufp) |
XFREE (MTYPE_TMP, bufp); |
XFREE (MTYPE_TMP, bufp); |
|
|
vty = vty_create (vty_sock, &su); | vty_create (vty_sock, &su); |
|
|
return 0; |
return 0; |
} |
} |
Line 1816 vty_serv_sock_addrinfo (const char *hostname, unsigned
|
Line 1817 vty_serv_sock_addrinfo (const char *hostname, unsigned
|
if (sock < 0) |
if (sock < 0) |
continue; |
continue; |
|
|
|
sockopt_v6only (ainfo->ai_family, sock); |
sockopt_reuseaddr (sock); |
sockopt_reuseaddr (sock); |
sockopt_reuseport (sock); |
sockopt_reuseport (sock); |
|
|
Line 1839 vty_serv_sock_addrinfo (const char *hostname, unsigned
|
Line 1841 vty_serv_sock_addrinfo (const char *hostname, unsigned
|
|
|
freeaddrinfo (ainfo_save); |
freeaddrinfo (ainfo_save); |
} |
} |
#endif /* HAVE_IPV6 && ! NRL */ | #else /* HAVE_IPV6 && ! NRL */ |
|
|
/* Make vty server socket. */ |
/* Make vty server socket. */ |
static void |
static void |
Line 1905 vty_serv_sock_family (const char* addr, unsigned short
|
Line 1907 vty_serv_sock_family (const char* addr, unsigned short
|
/* Add vty server event. */ |
/* Add vty server event. */ |
vty_event (VTY_SERV, accept_sock, NULL); |
vty_event (VTY_SERV, accept_sock, NULL); |
} |
} |
|
#endif /* HAVE_IPV6 && ! NRL */ |
|
|
#ifdef VTYSH |
#ifdef VTYSH |
/* For sockaddr_un. */ |
/* For sockaddr_un. */ |