Source-Changes-HG archive

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

[src/trunk]: src/sys/net vlan_input: add a missing EVL_VLANOFTAG in the case ...



details:   https://anonhg.NetBSD.org/src/rev/82aa723a6881
branches:  trunk
changeset: 579549:82aa723a6881
user:      yamt <yamt%NetBSD.org@localhost>
date:      Thu Mar 17 10:33:28 2005 +0000

description:
vlan_input: add a missing EVL_VLANOFTAG in the case of hw offloading.

diffstat:

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

diffs (27 lines):

diff -r e945ea23d440 -r 82aa723a6881 sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Thu Mar 17 10:18:22 2005 +0000
+++ b/sys/net/if_vlan.c Thu Mar 17 10:33:28 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.44 2005/02/26 22:45:09 perry Exp $       */
+/*     $NetBSD: if_vlan.c,v 1.45 2005/03/17 10:33:28 yamt Exp $        */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -85,7 +85,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.44 2005/02/26 22:45:09 perry Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vlan.c,v 1.45 2005/03/17 10:33:28 yamt Exp $");
 
 #include "opt_inet.h"
 #include "bpfilter.h"
@@ -848,7 +848,7 @@
        mtag = m_tag_find(m, PACKET_TAG_VLAN, NULL);
        if (mtag != NULL) {
                /* m contains a normal ethernet frame, the tag is in mtag */
-               tag = *(u_int *)(mtag + 1);
+               tag = EVL_VLANOFTAG(*(u_int *)(mtag + 1));
                m_tag_delete(m, mtag);
        } else {
                switch (ifp->if_type) {



Home | Main Index | Thread Index | Old Index