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
This commit is contained in:
Archie Cobbs 2004-11-27 20:29:00 +00:00
parent c8443a1dc0
commit 2adb8d6ab0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=138138

View File

@ -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);