diff options
author | jfv <jfv@FreeBSD.org> | 2008-08-28 22:05:19 +0000 |
---|---|---|
committer | jfv <jfv@FreeBSD.org> | 2008-08-28 22:05:19 +0000 |
commit | e4ffb4bcce93ec96d96a47298d3ac371133bf089 (patch) | |
tree | 0455bd41bee7a2d4fe4230c4939643572d23d77c /sys/net/if.h | |
parent | ced937913865e9e584a26b5ab698a53ac8a2a98c (diff) | |
download | FreeBSD-src-e4ffb4bcce93ec96d96a47298d3ac371133bf089.zip FreeBSD-src-e4ffb4bcce93ec96d96a47298d3ac371133bf089.tar.gz |
Fix to bug kern/126850. Only dispatch event hander if the
interface had a parent (was attached).
Reviewed by: EvilSam
MFC after: 1 week
Diffstat (limited to 'sys/net/if.h')
-rw-r--r-- | sys/net/if.h | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/sys/net/if.h b/sys/net/if.h index 216c5b4..7712796 100644 --- a/sys/net/if.h +++ b/sys/net/if.h @@ -199,22 +199,23 @@ struct if_data { * more detailed or differenciated than IFCAP_*. * Hwassist features are defined CSUM_* in sys/mbuf.h */ -#define IFCAP_RXCSUM 0x0001 /* can offload checksum on RX */ -#define IFCAP_TXCSUM 0x0002 /* can offload checksum on TX */ -#define IFCAP_NETCONS 0x0004 /* can be a network console */ -#define IFCAP_VLAN_MTU 0x0008 /* VLAN-compatible MTU */ -#define IFCAP_VLAN_HWTAGGING 0x0010 /* hardware VLAN tag support */ -#define IFCAP_JUMBO_MTU 0x0020 /* 9000 byte MTU supported */ -#define IFCAP_POLLING 0x0040 /* driver supports polling */ -#define IFCAP_VLAN_HWCSUM 0x0080 /* can do IFCAP_HWCSUM on VLANs */ -#define IFCAP_TSO4 0x0100 /* can do TCP Segmentation Offload */ -#define IFCAP_TSO6 0x0200 /* can do TCP6 Segmentation Offload */ -#define IFCAP_LRO 0x0400 /* can do Large Receive Offload */ -#define IFCAP_WOL_UCAST 0x0800 /* wake on any unicast frame */ -#define IFCAP_WOL_MCAST 0x1000 /* wake on any multicast frame */ -#define IFCAP_WOL_MAGIC 0x2000 /* wake on any Magic Packet */ -#define IFCAP_TOE4 0x4000 /* interface can offload TCP */ -#define IFCAP_TOE6 0x8000 /* interface can offload TCP6 */ +#define IFCAP_RXCSUM 0x00001 /* can offload checksum on RX */ +#define IFCAP_TXCSUM 0x00002 /* can offload checksum on TX */ +#define IFCAP_NETCONS 0x00004 /* can be a network console */ +#define IFCAP_VLAN_MTU 0x00008 /* VLAN-compatible MTU */ +#define IFCAP_VLAN_HWTAGGING 0x00010 /* hardware VLAN tag support */ +#define IFCAP_JUMBO_MTU 0x00020 /* 9000 byte MTU supported */ +#define IFCAP_POLLING 0x00040 /* driver supports polling */ +#define IFCAP_VLAN_HWCSUM 0x00080 /* can do IFCAP_HWCSUM on VLANs */ +#define IFCAP_TSO4 0x00100 /* can do TCP Segmentation Offload */ +#define IFCAP_TSO6 0x00200 /* can do TCP6 Segmentation Offload */ +#define IFCAP_LRO 0x00400 /* can do Large Receive Offload */ +#define IFCAP_WOL_UCAST 0x00800 /* wake on any unicast frame */ +#define IFCAP_WOL_MCAST 0x01000 /* wake on any multicast frame */ +#define IFCAP_WOL_MAGIC 0x02000 /* wake on any Magic Packet */ +#define IFCAP_TOE4 0x04000 /* interface can offload TCP */ +#define IFCAP_TOE6 0x08000 /* interface can offload TCP6 */ +#define IFCAP_VLAN_HWFILTER 0x10000 /* interface hw can filter vlan tag */ #define IFCAP_HWCSUM (IFCAP_RXCSUM | IFCAP_TXCSUM) #define IFCAP_TSO (IFCAP_TSO4 | IFCAP_TSO6) |