diff options
author | glebius <glebius@FreeBSD.org> | 2012-04-10 05:42:48 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-04-10 05:42:48 +0000 |
commit | dcb2500d91e964e97d74bab3028da66a98da680f (patch) | |
tree | d86cb38b37f057ffe630a98a3b331a5fe41fc7dc /sys/netinet | |
parent | 5b3638ba8262e351a76d74ba94bffeb153dcbae8 (diff) | |
download | FreeBSD-src-dcb2500d91e964e97d74bab3028da66a98da680f.zip FreeBSD-src-dcb2500d91e964e97d74bab3028da66a98da680f.tar.gz |
CARP should be capable to run on if_bridge(4). Unfortunately,
this commit is not enough to enable CARP operation on
if_bridge(4), because the latter doesn't handle or even
initialize its ifp->if_link_state.
Reported by: Alexander Lunev <sol289 gmail.com>
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_carp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index 4d8f350..e1eeee4 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1384,6 +1384,7 @@ carp_output(struct ifnet *ifp, struct mbuf *m, struct sockaddr *sa) /* Set the source MAC address to the Virtual Router MAC Address. */ switch (ifp->if_type) { case IFT_ETHER: + case IFT_BRIDGE: case IFT_L2VLAN: { struct ether_header *eh; @@ -1604,6 +1605,7 @@ carp_ioctl(struct ifreq *ifr, u_long cmd, struct thread *td) switch (ifp->if_type) { case IFT_ETHER: case IFT_L2VLAN: + case IFT_BRIDGE: case IFT_FDDI: case IFT_ISO88025: break; |