diff options
author | brian <brian@FreeBSD.org> | 1999-06-09 16:54:04 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-06-09 16:54:04 +0000 |
commit | 9c856b76928d18953093a30f09943c472d2ffd53 (patch) | |
tree | 418ce5ce129798b29481c14cfd5182fabfc51ad2 /usr.sbin/ppp/mp.c | |
parent | ecc920d2f92aa35dc7619422c2e2edd8a18aa3ea (diff) | |
download | FreeBSD-src-9c856b76928d18953093a30f09943c472d2ffd53.zip FreeBSD-src-9c856b76928d18953093a30f09943c472d2ffd53.tar.gz |
Allow our endpoint discriminator to be enabled, disabled, accepted
and denied. This is necessary for some MP implementations that
get confused if you accept their endpoint discriminator but reject
their MRRU.
Diffstat (limited to 'usr.sbin/ppp/mp.c')
-rw-r--r-- | usr.sbin/ppp/mp.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index 901643e..d7a8485 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: mp.c,v 1.23 1999/06/02 23:06:21 brian Exp $ + * $Id: mp.c,v 1.24 1999/06/03 13:29:32 brian Exp $ */ #include <sys/param.h> @@ -217,6 +217,7 @@ mp_Init(struct mp *mp, struct bundle *bundle) mp->cfg.mrru = 0; mp->cfg.shortseq = NEG_ENABLED|NEG_ACCEPTED; + mp->cfg.negenddisc = NEG_ENABLED|NEG_ACCEPTED; mp->cfg.enddisc.class = 0; *mp->cfg.enddisc.address = '\0'; mp->cfg.enddisc.len = 0; @@ -751,6 +752,8 @@ mp_ShowStatus(struct cmdargs const *arg) prompt_Printf(arg->prompt, "disabled\n"); prompt_Printf(arg->prompt, " Short Seq: %s\n", command_ShowNegval(mp->cfg.shortseq)); + prompt_Printf(arg->prompt, " Discriminator: %s\n", + command_ShowNegval(mp->cfg.negenddisc)); return 0; } |