summaryrefslogtreecommitdiffstats
path: root/sys/net/bridgestp.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2012-04-20 09:55:50 +0000
committerthompsa <thompsa@FreeBSD.org>2012-04-20 09:55:50 +0000
commit5ffa03204ccf2735f460fb6731c0c73d0ac11d17 (patch)
tree5e720f1f10937bda6108ab3cf3fe0a0b81caa055 /sys/net/bridgestp.h
parent6152dc39f23cf9b5f8db831ea0d2de2e59e9feea (diff)
downloadFreeBSD-src-5ffa03204ccf2735f460fb6731c0c73d0ac11d17.zip
FreeBSD-src-5ffa03204ccf2735f460fb6731c0c73d0ac11d17.tar.gz
Add linkstate to bridge(4), set the link to up when at least one underlying
interface is up, otherwise the link is down. This, among other things, allows carp to work on a bridge. Prodded by: glebius Tested by: Alexander Lunev
Diffstat (limited to 'sys/net/bridgestp.h')
-rw-r--r--sys/net/bridgestp.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/bridgestp.h b/sys/net/bridgestp.h
index 8cec09c..e76cfe9 100644
--- a/sys/net/bridgestp.h
+++ b/sys/net/bridgestp.h
@@ -369,8 +369,6 @@ struct bstp_state {
extern const uint8_t bstp_etheraddr[];
-extern void (*bstp_linkstate_p)(struct ifnet *ifp, int state);
-
void bstp_attach(struct bstp_state *, struct bstp_cb_ops *);
void bstp_detach(struct bstp_state *);
void bstp_init(struct bstp_state *);
@@ -379,7 +377,7 @@ int bstp_create(struct bstp_state *, struct bstp_port *, struct ifnet *);
int bstp_enable(struct bstp_port *);
void bstp_disable(struct bstp_port *);
void bstp_destroy(struct bstp_port *);
-void bstp_linkstate(struct ifnet *, int);
+void bstp_linkstate(struct bstp_port *);
int bstp_set_htime(struct bstp_state *, int);
int bstp_set_fdelay(struct bstp_state *, int);
int bstp_set_maxage(struct bstp_state *, int);
OpenPOWER on IntegriCloud