Module Name: src Committed By: martin Date: Mon Oct 25 18:16:07 UTC 2021
Modified Files: src/sys/net [netbsd-8]: if_ethersubr.c Log Message: Pull up following revision(s) (requested by ryo in ticket #1704): sys/net/if_ethersubr.c: revision 1.302 frame's vlan tag must be ntohs()'ed. VLAN 0 Priority tag was misrecognized on non vlan-hwtagging interfaces. To generate a diff of this commit: cvs rdiff -u -r1.242.6.7 -r1.242.6.8 src/sys/net/if_ethersubr.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_ethersubr.c diff -u src/sys/net/if_ethersubr.c:1.242.6.7 src/sys/net/if_ethersubr.c:1.242.6.8 --- src/sys/net/if_ethersubr.c:1.242.6.7 Tue Oct 8 18:12:44 2019 +++ src/sys/net/if_ethersubr.c Mon Oct 25 18:16:07 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: if_ethersubr.c,v 1.242.6.7 2019/10/08 18:12:44 martin Exp $ */ +/* $NetBSD: if_ethersubr.c,v 1.242.6.8 2021/10/25 18:16:07 martin 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.242.6.7 2019/10/08 18:12:44 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.242.6.8 2021/10/25 18:16:07 martin Exp $"); #ifdef _KERNEL_OPT #include "opt_inet.h" @@ -707,7 +707,7 @@ ether_input(struct ifnet *ifp, struct mb * type, and if IP or IPV6, let them deal with it. */ if (m->m_len <= sizeof(*evl) - && EVL_VLANOFTAG(evl->evl_tag) == 0) { + && EVL_VLANOFTAG((ntohs(evl->evl_tag)) == 0) { etype = ntohs(evl->evl_proto); ehlen = sizeof(*evl); if ((m->m_flags & M_PROMISC) == 0