diff options
author | goda <goda@openbsd.org> | 2017-08-11 16:25:59 +0000 |
---|---|---|
committer | goda <goda@openbsd.org> | 2017-08-11 16:25:59 +0000 |
commit | e83549bea819e2aa287450bd2f098881308bb00c (patch) | |
tree | 97535da1aa49268fbe3b59aa612282d5c1f5c329 /usr.sbin/npppd | |
parent | softreconfig in and out are on by default for ever and machines now have (diff) | |
download | wireguard-openbsd-e83549bea819e2aa287450bd2f098881308bb00c.tar.xz wireguard-openbsd-e83549bea819e2aa287450bd2f098881308bb00c.zip |
display MRU each sessions in npppctl session command
ok yasuoka@
Diffstat (limited to 'usr.sbin/npppd')
-rw-r--r-- | usr.sbin/npppd/npppd/npppd_ctl.c | 3 | ||||
-rw-r--r-- | usr.sbin/npppd/npppd/npppd_ctl.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/npppd/npppd/npppd_ctl.c b/usr.sbin/npppd/npppd/npppd_ctl.c index 2e83948f56e..d148fc24659 100644 --- a/usr.sbin/npppd/npppd/npppd_ctl.c +++ b/usr.sbin/npppd/npppd/npppd_ctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: npppd_ctl.c,v 1.15 2015/12/05 18:43:36 mmcc Exp $ */ +/* $OpenBSD: npppd_ctl.c,v 1.16 2017/08/11 16:25:59 goda Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -297,6 +297,7 @@ npppd_who_init(struct npppd_who *_this, npppd_ppp *ppp) _this->ibytes = ppp->ibytes; _this->obytes = ppp->obytes; _this->ppp_id = ppp->id; + _this->mru = ppp->peer_mru; #ifdef USE_NPPPD_PIPEX if (ppp->pipex_enabled != 0) { diff --git a/usr.sbin/npppd/npppd/npppd_ctl.h b/usr.sbin/npppd/npppd/npppd_ctl.h index 29a52e1564d..d1b4fbe0295 100644 --- a/usr.sbin/npppd/npppd/npppd_ctl.h +++ b/usr.sbin/npppd/npppd/npppd_ctl.h @@ -1,4 +1,4 @@ -/* $OpenBSD: npppd_ctl.h,v 1.6 2014/03/22 04:30:31 yasuoka Exp $ */ +/* $OpenBSD: npppd_ctl.h,v 1.7 2017/08/11 16:25:59 goda Exp $ */ /*- * Copyright (c) 2009 Internet Initiative Japan Inc. @@ -70,6 +70,7 @@ struct npppd_who { } tunnel_peer; /** Tunnel peer address */ struct in_addr framed_ip_address; /** Framed IP Address */ + uint16_t mru; /** MRU */ uint32_t ipackets; /** Numbers of input packets */ uint32_t opackets; /** Numbers of output packets */ uint32_t ierrors; /** Numbers of input error packets */ |