aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/lcp.h
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2001-10-18 08:47:56 +0000
committerBrian Somers <brian@FreeBSD.org>2001-10-18 08:47:56 +0000
commit2a772845ff7386a9d1b5d57eca90853650ec6f53 (patch)
tree8dd53dd04fff720993159850dfa792a05449813d /usr.sbin/ppp/lcp.h
parentf573a5fc941bcf242b9f84a92bd9a0d86644c036 (diff)
downloadsrc-2a772845ff7386a9d1b5d57eca90853650ec6f53.tar.gz
src-2a772845ff7386a9d1b5d57eca90853650ec6f53.zip
When the peer fails to specify an MRU and a 1500 byte MRU is not
allowed either because of the transport or configuration, send a MRU NAK only once, then allow the negotiations to proceed. rfc1661 says that 1500 should always be allowed and rfc2516 says that 1492 is the maximum for PPPoE. This changes ppp so that it only weakly suggests 1492, then goes with the default (leaving the problem in the hands of the peer WRT how they set their MTU). MFC after: 1 week
Notes
Notes: svn path=/head/; revision=85094
Diffstat (limited to 'usr.sbin/ppp/lcp.h')
-rw-r--r--usr.sbin/ppp/lcp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/ppp/lcp.h b/usr.sbin/ppp/lcp.h
index 3e0e8b223d2a..ee931ab8b518 100644
--- a/usr.sbin/ppp/lcp.h
+++ b/usr.sbin/ppp/lcp.h
@@ -59,6 +59,7 @@ struct lcp {
unsigned his_shortseq : 1; /* Peer would like only 12bit seqs (MP) */
unsigned his_protocomp : 1; /* Does peer do Protocol field compression */
unsigned his_acfcomp : 1; /* Does peer do addr & cntrl fld compression */
+ unsigned mru_req : 1; /* Has the peer requested an MRU */
u_short want_mru; /* Our maximum packet size */
u_short want_mrru; /* Our maximum reassembled packet size (MP) */