ieee8023ad_lacp.h (169739) | ieee8023ad_lacp.h (169741) |
---|---|
1/* $NetBSD: ieee8023ad_impl.h,v 1.2 2005/12/10 23:21:39 elad Exp $ */ 2 3/*- 4 * Copyright (c)2005 YAMAMOTO Takashi, 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * | 1/* $NetBSD: ieee8023ad_impl.h,v 1.2 2005/12/10 23:21:39 elad Exp $ */ 2 3/*- 4 * Copyright (c)2005 YAMAMOTO Takashi, 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 11 unchanged lines hidden (view full) --- 20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * |
28 * $FreeBSD: head/sys/net/ieee8023ad_lacp.h 169739 2007-05-19 07:47:04Z thompsa $ | 28 * $FreeBSD: head/sys/net/ieee8023ad_lacp.h 169741 2007-05-19 09:37:04Z thompsa $ |
29 */ 30 31/* 32 * IEEE802.3ad LACP 33 * 34 * implementation details. 35 */ 36 --- 223 unchanged lines hidden (view full) --- 260/* 261int tlv_check(const void *, size_t, const struct tlvhdr *, 262 const struct tlv_template *, boolean_t); 263*/ 264 265#define LACP_STATE_EQ(s1, s2, mask) \ 266 ((((s1) ^ (s2)) & (mask)) == 0) 267 | 29 */ 30 31/* 32 * IEEE802.3ad LACP 33 * 34 * implementation details. 35 */ 36 --- 223 unchanged lines hidden (view full) --- 260/* 261int tlv_check(const void *, size_t, const struct tlvhdr *, 262 const struct tlv_template *, boolean_t); 263*/ 264 265#define LACP_STATE_EQ(s1, s2, mask) \ 266 ((((s1) ^ (s2)) & (mask)) == 0) 267 |
268#define LACP_SYS_PRI(peer) (peer).lip_systemid.lsi_prio 269 |
|
268#define LACP_PORT(_lp) ((struct lacp_port *)(_lp)->lp_psc) 269#define LACP_SOFTC(_sc) ((struct lacp_softc *)(_sc)->sc_psc) 270 271void lacp_input(struct lagg_port *, struct mbuf *); 272struct lagg_port *lacp_select_tx_port(struct lagg_softc *, struct mbuf *); 273int lacp_attach(struct lagg_softc *); 274int lacp_detach(struct lagg_softc *); 275void lacp_init(struct lagg_softc *); --- 20 unchanged lines hidden --- | 270#define LACP_PORT(_lp) ((struct lacp_port *)(_lp)->lp_psc) 271#define LACP_SOFTC(_sc) ((struct lacp_softc *)(_sc)->sc_psc) 272 273void lacp_input(struct lagg_port *, struct mbuf *); 274struct lagg_port *lacp_select_tx_port(struct lagg_softc *, struct mbuf *); 275int lacp_attach(struct lagg_softc *); 276int lacp_detach(struct lagg_softc *); 277void lacp_init(struct lagg_softc *); --- 20 unchanged lines hidden --- |