summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ppp.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2004-11-27 20:29:00 +0000
committerarchie <archie@FreeBSD.org>2004-11-27 20:29:00 +0000
commit574523a3a9e33d4971e5de7e23b6e7650977438c (patch)
tree170cf095e11096b7962a8e71c97546489d22921f /sys/netgraph/ng_ppp.c
parent5b8c82febad03ae2d4576de3c213c7c037e9e677 (diff)
downloadFreeBSD-src-574523a3a9e33d4971e5de7e23b6e7650977438c.zip
FreeBSD-src-574523a3a9e33d4971e5de7e23b6e7650977438c.tar.gz
Disable protocol field compression on the inner PPP frame when also doing
normal PPP compression, as a workaround for certain (arguably) broken Linux PPP implementations that can't handle this particular case. MFC after: 1 week
Diffstat (limited to 'sys/netgraph/ng_ppp.c')
-rw-r--r--sys/netgraph/ng_ppp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c
index 6a0a8de..94930f7 100644
--- a/sys/netgraph/ng_ppp.c
+++ b/sys/netgraph/ng_ppp.c
@@ -748,7 +748,7 @@ ng_ppp_rcvdata(hook_p hook, item_p item)
case HOOK_INDEX_VJC_VJIP:
if (priv->conf.enableCompression
&& priv->hooks[HOOK_INDEX_COMPRESS] != NULL) {
- if ((m = ng_ppp_addproto(m, proto, 1)) == NULL) {
+ if ((m = ng_ppp_addproto(m, proto, 0)) == NULL) {
NGI_M(item) = NULL;
NG_FREE_ITEM(item);
return (ENOBUFS);
OpenPOWER on IntegriCloud