Support running carp(4) over a vlan(4) parent interface.

Encouraged by:	glebius
This commit is contained in:
Yaroslav Tykhiy 2005-02-28 16:19:11 +00:00
parent 9944ed62ba
commit 630481bb92

View File

@ -1900,7 +1900,8 @@ carp_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa,
/* Set the source MAC address to Virtual Router MAC Address */
switch (ifp->if_type) {
case IFT_ETHER: {
case IFT_ETHER:
case IFT_L2VLAN: {
struct ether_header *eh;
eh = mtod(m, struct ether_header *);