diff options
author | Kozlov Dmitry <dima@server> | 2011-08-23 18:02:22 +0400 |
---|---|---|
committer | Kozlov Dmitry <dima@server> | 2011-08-23 18:02:22 +0400 |
commit | 9bc3fa4216fb2ad043232584b5a5e134e64830ed (patch) | |
tree | 910b5a0809a272d8525ff1ed2c1265b7f7d53c3d /accel-pppd/cli/show_sessions.c | |
parent | e281cbf20eb2e8f36ef5037e138fdf3798f1897d (diff) | |
download | accel-ppp-9bc3fa4216fb2ad043232584b5a5e134e64830ed.tar.gz accel-ppp-9bc3fa4216fb2ad043232584b5a5e134e64830ed.zip |
ppp: ipv6: multiple prefixes, route option, rdnss option implementation
Diffstat (limited to 'accel-pppd/cli/show_sessions.c')
-rw-r--r-- | accel-pppd/cli/show_sessions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/accel-pppd/cli/show_sessions.c b/accel-pppd/cli/show_sessions.c index d7a8a824..90199864 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) |