* [PATCH] pptp: Accept packet with seq zero
@ 2012-01-12 20:39 Bradley Peterson
2012-01-13 4:06 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Bradley Peterson @ 2012-01-12 20:39 UTC (permalink / raw)
To: xeb; +Cc: Bradley Peterson, netdev, linux-kernel
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(-)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pptp: Accept packet with seq zero
2012-01-12 20:39 [PATCH] pptp: Accept packet with seq zero Bradley Peterson
@ 2012-01-13 4:06 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2012-01-13 4:06 UTC (permalink / raw)
To: despite; +Cc: xeb, netdev, linux-kernel
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.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-01-13 4:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-12 20:39 [PATCH] pptp: Accept packet with seq zero Bradley Peterson
2012-01-13 4:06 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).