Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223759
b: refs/heads/master
c: d39cd5e
h: refs/heads/master
i:
  223757: d652e95
  223755: 79b443a
  223751: b60702a
  223743: 63afd0d
v: v3
  • Loading branch information
stephen hemminger authored and David S. Miller committed Dec 28, 2010
1 parent 4ec9489 commit 6a6b251
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4711786986af0cce654f493426ee0a1055e4b17
refs/heads/master: d39cd5e99a0ad88aba6793fb5e5f34e29cda6e6f
9 changes: 7 additions & 2 deletions trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1285,6 +1285,11 @@ ppp_push(struct ppp *ppp)
}

#ifdef CONFIG_PPP_MULTILINK
static bool mp_protocol_compress __read_mostly = true;
module_param(mp_protocol_compress, bool, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(mp_protocol_compress,
"compress protocol id in multilink fragments");

/*
* Divide a packet to be transmitted into fragments and
* send them out the individual links.
Expand Down Expand Up @@ -1347,10 +1352,10 @@ static int ppp_mp_explode(struct ppp *ppp, struct sk_buff *skb)
if (nfree == 0 || nfree < navail / 2)
return 0; /* can't take now, leave it in xmit_pending */

/* Do protocol field compression (XXX this should be optional) */
/* Do protocol field compression */
p = skb->data;
len = skb->len;
if (*p == 0) {
if (*p == 0 && mp_protocol_compress) {
++p;
--len;
}
Expand Down

0 comments on commit 6a6b251

Please sign in to comment.