Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/net Pull up revision 1.30 (requested by bouyer in t...
details: https://anonhg.NetBSD.org/src/rev/070bf9767bc8
branches: netbsd-1-6
changeset: 530491:070bf9767bc8
user: grant <grant%NetBSD.org@localhost>
date: Mon Jun 30 03:17:18 2003 +0000
description:
Pull up revision 1.30 (requested by bouyer in ticket #1356):
Make promiscous mode work on vlans: introduce a new link-layer m_flag
M_PROMISC. In ether_input(), flag packets comming from an interface in
promiscous mode which are not for us M_PROMISC instead of droping them.
Drop M_PROMISC packets which are not passed to vlan_input(). M_PROMISC
packets passed to vlan_input() will be looped back to ether_input()
the M_PROMISC flag will be handled appropriately.
Clear M_PROMISC before giving the packet to bridge, as bridge has its
own checks for local MAC addresses.
This also makes bridges on vlan working.
diffstat:
sys/net/if_ether.h | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 8cdb014fea58 -r 070bf9767bc8 sys/net/if_ether.h
--- a/sys/net/if_ether.h Mon Jun 30 03:15:40 2003 +0000
+++ b/sys/net/if_ether.h Mon Jun 30 03:17:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ether.h,v 1.27 2002/03/05 04:13:00 itojun Exp $ */
+/* $NetBSD: if_ether.h,v 1.27.8.1 2003/06/30 03:17:18 grant Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -99,7 +99,8 @@
/*
* Ethernet-specific mbuf flags.
*/
-#define M_HASFCS M_LINK0 /* FCS included at end of frame */
+#define M_HASFCS M_LINK0 /* FCS included at end of frame */
+#define M_PROMISC M_LINK1 /* this packet is not for us */
#ifdef _KERNEL
/*
Home |
Main Index |
Thread Index |
Old Index