diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2016-05-11 17:55:37 +0200 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2016-05-14 09:05:36 +0300 |
commit | d06572417e1e500d7bd56859335d2f7dd0f3fd8f (patch) | |
tree | 8185d22dbfd0afc870aee572d06be82573c62ea3 /accel-pppd/ppp | |
parent | d682a0aa8a142b0213a352b0057572fd1a3b76a4 (diff) | |
download | accel-ppp-d06572417e1e500d7bd56859335d2f7dd0f3fd8f.tar.gz accel-ppp-d06572417e1e500d7bd56859335d2f7dd0f3fd8f.zip |
lcp: fix Protocol-Field-Compression setting
The kernel flag used for setting PFC is SC_COMP_PROT (SC_COMP_AC is for
Address-and-Control-Field-Compression).
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd/ppp')
-rw-r--r-- | accel-pppd/ppp/lcp_opt_pcomp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/accel-pppd/ppp/lcp_opt_pcomp.c b/accel-pppd/ppp/lcp_opt_pcomp.c index 97560ccf..6bc04d25 100644 --- a/accel-pppd/ppp/lcp_opt_pcomp.c +++ b/accel-pppd/ppp/lcp_opt_pcomp.c @@ -115,9 +115,9 @@ static int pcomp_recv_conf_ack(struct ppp_lcp_t *lcp, struct lcp_option_t *opt, if (net->ppp_ioctl(lcp->ppp->chan_fd, PPPIOCGFLAGS, &flags)) goto err; - flags &= ~SC_COMP_AC; + flags &= ~SC_COMP_PROT; if (pcomp_opt->pcomp & 1) - flags |= SC_COMP_AC; + flags |= SC_COMP_PROT; if (net->ppp_ioctl(lcp->ppp->chan_fd, PPPIOCSFLAGS, &flags)) goto err; |