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/44325ac3f99c
branches: trunk
changeset: 379126:44325ac3f99c
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 5f47f4aec177 -r 44325ac3f99c 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 @@ pppoe_dispatch_disc_pkt(struct mbuf *m,
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