summaryrefslogtreecommitdiff
path: root/usr.sbin/npppctl
diff options
context:
space:
mode:
authorKazuya Goda <goda@cvs.openbsd.org>2017-08-11 16:26:00 +0000
committerKazuya Goda <goda@cvs.openbsd.org>2017-08-11 16:26:00 +0000
commitd7396281c73c0f5cca41425733e77be22185c919 (patch)
tree607ebf3511dd10bfeb322dc88a0a52329f9d075b /usr.sbin/npppctl
parent4a2a7d40e56e903a335083ecd084d41e5a7b2175 (diff)
display MRU each sessions in npppctl session command
ok yasuoka@
Diffstat (limited to 'usr.sbin/npppctl')
-rw-r--r--usr.sbin/npppctl/npppctl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/npppctl/npppctl.c b/usr.sbin/npppctl/npppctl.c
index 47edd69a801..45c2a50185d 100644
--- a/usr.sbin/npppctl/npppctl.c
+++ b/usr.sbin/npppctl/npppctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: npppctl.c,v 1.7 2017/01/21 11:32:04 guenther Exp $ */
+/* $OpenBSD: npppctl.c,v 1.8 2017/08/11 16:25:59 goda Exp $ */
/*
* Copyright (c) 2012 Internet Initiative Japan Inc.
@@ -296,6 +296,7 @@ fprint_who_all(int i, struct npppd_who *w, FILE *out)
" Realm Name : %s\n"
" Concentrated Interface : %s\n"
" Assigned IPv4 Address : %s\n"
+ " MRU : %u\n"
" Tunnel Protocol : %s\n"
" Tunnel From : %s\n"
" Start Time : %s\n"
@@ -307,7 +308,7 @@ fprint_who_all(int i, struct npppd_who *w, FILE *out)
" Output Packets : %lu\n"
" Output Errors : %lu (%.1f%%)\n",
w->ppp_id, w->ppp_id, w->username, w->rlmname, w->ifname,
- inet_ntoa(w->framed_ip_address), w->tunnel_proto,
+ inet_ntoa(w->framed_ip_address), (u_int)w->mru, w->tunnel_proto,
peerstr((struct sockaddr *)&w->tunnel_peer, peer_buf,
sizeof(peer_buf)), time_buf,
(unsigned long)w->duration_sec,