Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix inverted logic.
details: https://anonhg.NetBSD.org/src/rev/6b7b5b23b197
branches: trunk
changeset: 358845:6b7b5b23b197
user: nakayama <nakayama%NetBSD.org@localhost>
date: Fri Jan 19 12:31:27 2018 +0000
description:
Fix inverted logic.
diffstat:
sys/net/if_ethersubr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 7351988e82a6 -r 6b7b5b23b197 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Fri Jan 19 10:54:31 2018 +0000
+++ b/sys/net/if_ethersubr.c Fri Jan 19 12:31:27 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.256 2018/01/15 14:00:34 maxv Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.257 2018/01/19 12:31:27 nakayama Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.256 2018/01/15 14:00:34 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.257 2018/01/19 12:31:27 nakayama Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -756,7 +756,7 @@
case ETHERTYPE_SLOWPROTOCOLS: {
uint8_t subtype;
- KASSERTMSG((m->m_pkthdr.len < sizeof(*eh) + sizeof(subtype)),
+ KASSERTMSG((m->m_pkthdr.len >= sizeof(*eh) + sizeof(subtype)),
"too short slow protocol packet");
m_copydata(m, sizeof(*eh), sizeof(subtype), &subtype);
Home |
Main Index |
Thread Index |
Old Index