Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net Fix typo, and add a comment about MPLS.
details: https://anonhg.NetBSD.org/src/rev/ef57e7c6cde5
branches: trunk
changeset: 359479:ef57e7c6cde5
user: maxv <maxv%NetBSD.org@localhost>
date: Mon Feb 12 12:17:38 2018 +0000
description:
Fix typo, and add a comment about MPLS.
diffstat:
sys/net/if_ethersubr.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r d594e31cc43e -r ef57e7c6cde5 sys/net/if_ethersubr.c
--- a/sys/net/if_ethersubr.c Mon Feb 12 11:14:15 2018 +0000
+++ b/sys/net/if_ethersubr.c Mon Feb 12 12:17:38 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ethersubr.c,v 1.257 2018/01/19 12:31:27 nakayama Exp $ */
+/* $NetBSD: if_ethersubr.c,v 1.258 2018/02/12 12:17:38 maxv 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.257 2018/01/19 12:31:27 nakayama Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.258 2018/02/12 12:17:38 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -260,7 +260,7 @@
void *tha = ar_tha(ah);
if (tha == NULL) {
- /* fake with ARPHDR_IEEE1394 */
+ /* fake with ARPHRD_IEEE1394 */
m_freem(m);
return 0;
}
@@ -606,7 +606,8 @@
}
/*
- * Determine if the packet is within its size limits.
+ * Determine if the packet is within its size limits. For MPLS the
+ * header length is variable, so we skip the check.
*/
if (etype != ETHERTYPE_MPLS && m->m_pkthdr.len >
ETHER_MAX_FRAME(ifp, etype, m->m_flags & M_HASFCS)) {
Home |
Main Index |
Thread Index |
Old Index