summaryrefslogtreecommitdiffstats
path: root/usr.sbin/npppctl
diff options
context:
space:
mode:
authorgoda <goda@openbsd.org>2017-08-11 16:25:59 +0000
committergoda <goda@openbsd.org>2017-08-11 16:25:59 +0000
commite83549bea819e2aa287450bd2f098881308bb00c (patch)
tree97535da1aa49268fbe3b59aa612282d5c1f5c329 /usr.sbin/npppctl
parentsoftreconfig in and out are on by default for ever and machines now have (diff)
downloadwireguard-openbsd-e83549bea819e2aa287450bd2f098881308bb00c.tar.xz
wireguard-openbsd-e83549bea819e2aa287450bd2f098881308bb00c.zip
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,