From d06572417e1e500d7bd56859335d2f7dd0f3fd8f Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 11 May 2016 17:55:37 +0200 Subject: 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 --- accel-pppd/ppp/lcp_opt_pcomp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/accel-pppd/ppp/lcp_opt_pcomp.c b/accel-pppd/ppp/lcp_opt_pcomp.c index 97560cc..6bc04d2 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; -- cgit v1.2.3