Fix for if_vlan (FreeBSD)
authorchris <chris@openbsd.org>
Wed, 26 Apr 2000 19:05:28 +0000 (19:05 +0000)
committerchris <chris@openbsd.org>
Wed, 26 Apr 2000 19:05:28 +0000 (19:05 +0000)
sys/dev/pci/if_ti.c

index 96adfab..e4d34d2 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_ti.c,v 1.11 2000/02/15 03:54:29 jason Exp $        */
+/*     $OpenBSD: if_ti.c,v 1.12 2000/04/26 19:05:28 chris Exp $        */
 
 /*
  * Copyright (c) 1997, 1998, 1999
@@ -1815,7 +1815,8 @@ void ti_rxeof(sc)
                 * to vlan_input() instead of ether_input().
                 */
                if (have_tag) {
-                       vlan_input_tag(eh, m, vlan_tag);
+                       if (vlan_input_tag(eh, m, vlan_tag) < 0)
+                               ifp->if_data.ifi_noproto++;
                        have_tag = vlan_tag = 0;
                        continue;
                }