diff options
author | brian <brian@FreeBSD.org> | 1999-12-30 13:27:15 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-12-30 13:27:15 +0000 |
commit | d229c8a13c2216189320fb983ddf4e7b04f026f0 (patch) | |
tree | f950fcf7aebcf5bdc191fd5cd417bf47da629e66 /usr.sbin | |
parent | 1f35ac704665128c161bfcf29edfe93dd494f924 (diff) | |
download | FreeBSD-src-d229c8a13c2216189320fb983ddf4e7b04f026f0.zip FreeBSD-src-d229c8a13c2216189320fb983ddf4e7b04f026f0.tar.gz |
Increase M_MAXLEN from 2048 - sizeof struct mbuf to
4096 - sizeof struct mbuf, and set MAX_MRU and MAX_MTU
back to 2048.
2048 is big enough as an MTU/MRU, but we need to be able
to allocate larger mbufs after reassembling IP fragments.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/hdlc.h | 4 | ||||
-rw-r--r-- | usr.sbin/ppp/mbuf.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.h b/usr.sbin/ppp/hdlc.h index a370469..25398a4 100644 --- a/usr.sbin/ppp/hdlc.h +++ b/usr.sbin/ppp/hdlc.h @@ -36,11 +36,11 @@ #define GOODFCS 0xf0b8 /* Good FCS value */ #define DEF_MRU 1500 -#define MAX_MRU M_MAXLEN +#define MAX_MRU 2048 #define MIN_MRU 296 #define DEF_MTU 0 /* whatever peer says */ -#define MAX_MTU M_MAXLEN +#define MAX_MTU 2048 #define MIN_MTU 296 struct physical; diff --git a/usr.sbin/ppp/mbuf.h b/usr.sbin/ppp/mbuf.h index b8a2f06..20921cc 100644 --- a/usr.sbin/ppp/mbuf.h +++ b/usr.sbin/ppp/mbuf.h @@ -83,7 +83,7 @@ struct mqueue { #define MB_UNKNOWN 38 #define MB_MAX MB_UNKNOWN -#define M_MAXLEN (2048 - sizeof(struct mbuf)) +#define M_MAXLEN (4096 - sizeof(struct mbuf)) struct cmdargs; |