ppp: allow disabling multilink protocol ID compression
authorstephen hemminger <shemminger@vyatta.com>
Mon, 20 Dec 2010 17:58:33 +0000 (17:58 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 28 Dec 2010 21:53:39 +0000 (13:53 -0800)
commitd39cd5e99a0ad88aba6793fb5e5f34e29cda6e6f
treefa737e64cea249ffb703de1e7c717f7dd924e372
parentc4711786986af0cce654f493426ee0a1055e4b17
ppp: allow disabling multilink protocol ID compression

Linux would not connect to other router running old version Cisco IOS (12.0).
This is most likely a bug in that version of IOS, since it is fixed
in later versions. As a workaround this patch allows a module parameter
to be set to disable compressing the protocol ID.

See: https://bugzilla.vyatta.com/show_bug.cgi?id=3979

RFC 1990 allows an implementation to formulate MP fragments as if protocol
compression had been negotiated.  This allows us to always send compressed
protocol IDs.  But some implementations don't accept MP fragments with
compressed protocol IDs.  This parameter allows us to interoperate with
them.  The default value of the configurable parameter is the same as the
current behavior:  protocol compression is enabled.  If protocol compression
is disabled we will not send compressed protocol IDs.

This is based on an earlier patch by Bob Gilligan (using a sysctl).
Module parameter is writable to allow for enabling even if ppp
is already loaded for other uses.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ppp_generic.c