From 9bc3fa4216fb2ad043232584b5a5e134e64830ed Mon Sep 17 00:00:00 2001 From: Kozlov Dmitry Date: Tue, 23 Aug 2011 18:02:22 +0400 Subject: ppp: ipv6: multiple prefixes, route option, rdnss option implementation --- accel-pppd/cli/show_sessions.c | 3 ++- accel-pppd/cli/std_cmd.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'accel-pppd/cli') diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index d7a8a82..9019986 100644 --- a/accel-pppd/cli/show_sessions.c +++ b/accel-pppd/cli/show_sessions.c @@ -8,6 +8,7 @@ #include "triton.h" #include "events.h" #include "ppp.h" +#include "ipdb.h" #include "cli.h" #include "utils.h" #include "log.h" @@ -382,7 +383,7 @@ static void print_username(const struct ppp_t *ppp, char *buf) static void print_ip(const struct ppp_t *ppp, char *buf) { - u_inet_ntoa(ppp->peer_ipaddr, buf); + u_inet_ntoa(ppp->ipv4 ? ppp->ipv4->peer_addr : 0, buf); } static void print_type(const struct ppp_t *ppp, char *buf) diff --git a/accel-pppd/cli/std_cmd.c b/accel-pppd/cli/std_cmd.c index 1c8e149..24e5228 100644 --- a/accel-pppd/cli/std_cmd.c +++ b/accel-pppd/cli/std_cmd.c @@ -9,6 +9,7 @@ #include "triton.h" #include "events.h" #include "ppp.h" +#include "ipdb.h" #include "cli.h" #include "utils.h" #include "log.h" @@ -166,7 +167,7 @@ static int terminate_exec2(int key, char * const *f, int f_cnt, void *cli) continue; break; case 1: - if (ppp->peer_ipaddr != ipaddr) + if (ppp->ipv4 && ppp->ipv4->peer_addr != ipaddr) continue; break; case 2: -- cgit v1.2.3