i just realized that linux should be able to handle silly machines
that blindly apply vj compression even when it isn't going to be a
win. so, here's a small patch that deals with that. unfortunately, i
can't really test it that well as that's an event that i rarely
encounter. all i can say is that it looks obviously right to me.
--- linux/drivers/net/ppp.c.save Tue Feb 2 11:12:07 1999
+++ linux/drivers/net/ppp.c Tue Feb 16 00:19:20 1999
@@ -2062,7 +2062,11 @@
"ppp: error in VJ decompression\n");
return 0;
}
- skb_put(skb, new_count + PPP_HDRLEN - skb->len);
+ new_count += PPP_HDRLEN;
+ if (new_count > skb->len)
+ skb_put(skb, new_count - skb->len);
+ else
+ skb_trim(skb, new_count);
return rcv_proto_ip(ppp, skb);
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/