diff options
author | jhb <jhb@FreeBSD.org> | 2010-08-06 15:09:21 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2010-08-06 15:09:21 +0000 |
commit | 7909344bdf3f86ce88f5a00d727704861218adc9 (patch) | |
tree | 11983ee2e4b7413b7f213d4bf31d6ee03d26fe01 /contrib/bsnmp/snmp_mibII | |
parent | 1e529a8eb9b20ba8d3270b4f13b348620eaa00a1 (diff) | |
download | FreeBSD-src-7909344bdf3f86ce88f5a00d727704861218adc9.zip FreeBSD-src-7909344bdf3f86ce88f5a00d727704861218adc9.tar.gz |
Ethernet vlan(4) interfaces have valid Ethernet link layer addresses but
use a different interface type (IFT_L2VLAN vs IFT_ETHER). Treat IFT_L2VLAN
interfaces like IFT_ETHER interfaces when handling link layer addresses.
Reviewed by: syrinx (bsnmpd)
MFC after: 1 week
Diffstat (limited to 'contrib/bsnmp/snmp_mibII')
-rw-r--r-- | contrib/bsnmp/snmp_mibII/mibII.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bsnmp/snmp_mibII/mibII.c b/contrib/bsnmp/snmp_mibII/mibII.c index 8714695..ad56d7c 100644 --- a/contrib/bsnmp/snmp_mibII/mibII.c +++ b/contrib/bsnmp/snmp_mibII/mibII.c @@ -843,6 +843,7 @@ check_llbcast(struct mibif *ifp) case IFT_ETHER: case IFT_FDDI: case IFT_ISO88025: + case IFI_L2VLAN: if (mib_find_rcvaddr(ifp->index, ether_bcast, 6) == NULL && (rcv = mib_rcvaddr_create(ifp, ether_bcast, 6)) != NULL) rcv->flags |= MIBRCVADDR_BCAST; |