Patchwork pptp: Accept packet with seq zero

login
register
mail settings
Submitter Bradley Peterson
Date Jan. 12, 2012, 8:39 p.m.
Message ID <1326400756-14021-1-git-send-email-despite@gmail.com>
Download mbox | patch
Permalink /patch/135689/
State Accepted
Delegated to: David Miller
Headers show

Comments

Bradley Peterson - Jan. 12, 2012, 8:39 p.m.
Initialize the PPTP "seq received" value to 0xffffffff, so we don't
ignore packets with seq zero.

Signed-off-by: Bradley Peterson <despite@gmail.com>
---
 drivers/net/ppp/pptp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
David Miller - Jan. 13, 2012, 4:06 a.m.
From: Bradley Peterson <despite@gmail.com>
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 <despite@gmail.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

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: