Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Accept a frame like a PADT just containing PPPoE header



details:   https://anonhg.NetBSD.org/src/rev/d1452a1eda32
branches:  trunk
changeset: 983265:d1452a1eda32
user:      yamaguchi <yamaguchi%NetBSD.org@localhost>
date:      Thu May 13 01:01:10 2021 +0000

description:
Accept a frame like a PADT just containing PPPoE header

diffstat:

 sys/net/if_pppoe.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4c0750b06ea9 -r d1452a1eda32 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c        Wed May 12 23:48:41 2021 +0000
+++ b/sys/net/if_pppoe.c        Thu May 13 01:01:10 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.170 2021/04/22 10:26:24 yamaguchi Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.171 2021/05/13 01:01:10 yamaguchi Exp $ */
 
 /*
  * Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.170 2021/04/22 10:26:24 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.171 2021/05/13 01:01:10 yamaguchi Exp $");
 
 #ifdef _KERNEL_OPT
 #include "pppoe.h"
@@ -659,7 +659,7 @@
        eh = mtod(m, struct ether_header *);
        off += sizeof(*eh);
 
-       if (m->m_pkthdr.len - off <= PPPOE_HEADERLEN) {
+       if (m->m_pkthdr.len - off < PPPOE_HEADERLEN) {
                goto done;
        }
 



Home | Main Index | Thread Index | Old Index