summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_ppp.c
diff options
context:
space:
mode:
authorarchie <archie@FreeBSD.org>2002-02-13 00:58:49 +0000
committerarchie <archie@FreeBSD.org>2002-02-13 00:58:49 +0000
commit7f5502e9867db5888419e253aa0d3ebe110733f6 (patch)
treea88d1731de6433cf35b8faa32be63f130b045384 /sys/netgraph/ng_ppp.c
parent2cc6336eb4049aad8c492e8f48ab4e58b1e6d683 (diff)
downloadFreeBSD-src-7f5502e9867db5888419e253aa0d3ebe110733f6.zip
FreeBSD-src-7f5502e9867db5888419e253aa0d3ebe110733f6.tar.gz
Fix another bug in handling of multi-link sequence numbers.
MFC after: 1 week
Diffstat (limited to 'sys/netgraph/ng_ppp.c')
-rw-r--r--sys/netgraph/ng_ppp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netgraph/ng_ppp.c b/sys/netgraph/ng_ppp.c
index 5cc71ba..3bd569d 100644
--- a/sys/netgraph/ng_ppp.c
+++ b/sys/netgraph/ng_ppp.c
@@ -118,9 +118,10 @@ MALLOC_DEFINE(M_NETGRAPH_PPP, "netgraph_ppp", "netgraph ppp node");
MP_LONG_SEQ_DIFF((x), (y)))
/* Increment receive sequence number */
-#define MP_NEXT_RECV_SEQ(priv,seq) \
- (((seq) + 1) & ((priv)->conf.recvShortSeq ? \
- MP_SHORT_SEQ_MASK : MP_LONG_SEQ_MASK))
+#define MP_NEXT_RECV_SEQ(priv,seq) \
+ ((priv)->conf.recvShortSeq ? \
+ MP_SHORT_EXTEND((seq) + 1) : \
+ MP_LONG_EXTEND((seq) + 1))
/* Don't fragment transmitted packets smaller than this */
#define MP_MIN_FRAG_LEN 6
OpenPOWER on IntegriCloud