bridge_snmp.h (164997) | bridge_snmp.h (165416) |
---|---|
1/*- 2 * Copyright (c) 2006 Shteryana Shopova <syrinx@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * Bridge MIB implementation for SNMPd. 27 * | 1/*- 2 * Copyright (c) 2006 Shteryana Shopova <syrinx@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * 26 * Bridge MIB implementation for SNMPd. 27 * |
28 * $FreeBSD: head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h 164997 2006-12-07 22:36:17Z syrinx $ | 28 * $FreeBSD: head/usr.sbin/bsnmpd/modules/snmp_bridge/bridge_snmp.h 165416 2006-12-20 22:02:45Z syrinx $ |
29 */ 30 31#ifndef SNMP_BRIDGE_H 32#define SNMP_BRIDGE_H 33 34#define SNMP_BRIDGE_ID_LEN 8 35 36typedef uint8_t port_id[2]; --- 82 unchanged lines hidden (view full) --- 119 bridge_id design_root; 120 bridge_id design_bridge; 121 122 /* rstpMib extensions. */ 123 int32_t admin_path_cost; 124 enum TruthValue proto_migr; 125 enum TruthValue admin_edge; 126 enum TruthValue oper_edge; | 29 */ 30 31#ifndef SNMP_BRIDGE_H 32#define SNMP_BRIDGE_H 33 34#define SNMP_BRIDGE_ID_LEN 8 35 36typedef uint8_t port_id[2]; --- 82 unchanged lines hidden (view full) --- 119 bridge_id design_root; 120 bridge_id design_bridge; 121 122 /* rstpMib extensions. */ 123 int32_t admin_path_cost; 124 enum TruthValue proto_migr; 125 enum TruthValue admin_edge; 126 enum TruthValue oper_edge; |
127 enum TruthValue oper_p2p; 128 enum StpPortAdminPointToPointType admin_p2p; | 127 enum TruthValue oper_ptp; 128 enum StpPortAdminPointToPointType admin_ptp; |
129 130 /* dot1dTp subtree objects. */ 131 int32_t max_info; 132 int32_t in_frames; 133 int32_t out_frames; 134 int32_t in_drops; 135 136 uint8_t flags; --- 188 unchanged lines hidden (view full) --- 325int bridge_port_set_stp_enable(const char *bif_name, struct bridge_port *bp, 326 uint32_t enable); 327 328/* Set a bridge member STP path cost. */ 329int bridge_port_set_path_cost(const char *bif_name, struct bridge_port *bp, 330 int32_t path_cost); 331 332/* Set admin point-to-point link. */ | 129 130 /* dot1dTp subtree objects. */ 131 int32_t max_info; 132 int32_t in_frames; 133 int32_t out_frames; 134 int32_t in_drops; 135 136 uint8_t flags; --- 188 unchanged lines hidden (view full) --- 325int bridge_port_set_stp_enable(const char *bif_name, struct bridge_port *bp, 326 uint32_t enable); 327 328/* Set a bridge member STP path cost. */ 329int bridge_port_set_path_cost(const char *bif_name, struct bridge_port *bp, 330 int32_t path_cost); 331 332/* Set admin point-to-point link. */ |
333int bridge_port_set_admin_p2p(const char *bif_name, struct bridge_port *bp, 334 uint32_t admin_p2p); | 333int bridge_port_set_admin_ptp(const char *bif_name, struct bridge_port *bp, 334 uint32_t admin_ptp); |
335 336/* Set admin edge. */ 337int bridge_port_set_admin_edge(const char *bif_name, struct bridge_port *bp, 338 uint32_t enable); 339 340/* Add a bridge member port. */ 341int bridge_port_addm(struct bridge_port *bp, const char *b_name); 342 343/* Delete a bridge member port. */ 344int bridge_port_delm(struct bridge_port *bp, const char *b_name); 345 346/* Get the current value from the module for bridge PF control. */ 347int32_t bridge_get_pfval(uint8_t which); 348 349/* Get/Set a bridge PF control. */ 350int32_t bridge_do_pfctl(int32_t bridge_ctl, enum snmp_op op, int32_t *val); 351 352#endif /* SNMP_BRIDGE_H */ | 335 336/* Set admin edge. */ 337int bridge_port_set_admin_edge(const char *bif_name, struct bridge_port *bp, 338 uint32_t enable); 339 340/* Add a bridge member port. */ 341int bridge_port_addm(struct bridge_port *bp, const char *b_name); 342 343/* Delete a bridge member port. */ 344int bridge_port_delm(struct bridge_port *bp, const char *b_name); 345 346/* Get the current value from the module for bridge PF control. */ 347int32_t bridge_get_pfval(uint8_t which); 348 349/* Get/Set a bridge PF control. */ 350int32_t bridge_do_pfctl(int32_t bridge_ctl, enum snmp_op op, int32_t *val); 351 352#endif /* SNMP_BRIDGE_H */ |