aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorYaroslav Tykhiy <ytykhiy@gmail.com>2005-02-28 16:19:11 +0000
committerYaroslav Tykhiy <ytykhiy@gmail.com>2005-02-28 16:19:11 +0000
commit630481bb920673891be2c9988b79f1ba0ccf5324 (patch)
treebb4c5346cb302e229862b64ddf2e86872051cec7 /sys
parent9944ed62ba74b6b6368b8688068aad671ce977e6 (diff)
downloadsrc-630481bb920673891be2c9988b79f1ba0ccf5324.tar.gz
src-630481bb920673891be2c9988b79f1ba0ccf5324.zip
Support running carp(4) over a vlan(4) parent interface.
Encouraged by: glebius
Notes
Notes: svn path=/head/; revision=142798
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_carp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index b8967b189bc4..14a9880b1e26 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -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 *);