[PATCH] pptp: Accept packet with seq zero

Subsystems: networking drivers, the rest

STALE5324d

2 messages, 2 authors, 2012-01-13 · open the first message on its own page

[PATCH] pptp: Accept packet with seq zero

From: Bradley Peterson <hidden>
Date: 2012-01-12 20:39:50

Initialize the PPTP "seq received" value to 0xffffffff, so we don't
ignore packets with seq zero.

Signed-off-by: Bradley Peterson <redacted>
---
 drivers/net/ppp/pptp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ppp/pptp.c b/drivers/net/ppp/pptp.c
index c1c9293..df884dd 100644
--- a/drivers/net/ppp/pptp.c
+++ b/drivers/net/ppp/pptp.c
@@ -585,8 +585,8 @@ static int pptp_create(struct net *net, struct socket *sock)
 	po = pppox_sk(sk);
 	opt = &po->proto.pptp;
 
-	opt->seq_sent = 0; opt->seq_recv = 0;
-	opt->ack_recv = 0; opt->ack_sent = 0;
+	opt->seq_sent = 0; opt->seq_recv = 0xffffffff;
+	opt->ack_recv = 0; opt->ack_sent = 0xffffffff;
 
 	error = 0;
 out:
-- 
1.7.4.4

Re: [PATCH] pptp: Accept packet with seq zero

From: David Miller <davem@davemloft.net>
Date: 2012-01-13 04:06:28

From: Bradley Peterson <redacted>
Date: Thu, 12 Jan 2012 14:39:16 -0600
Initialize the PPTP "seq received" value to 0xffffffff, so we don't
ignore packets with seq zero.

Signed-off-by: Bradley Peterson <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help