Home
last modified time | relevance | path

Searched refs:path_cost (Results 1 – 4 of 4) sorted by relevance

/src/sys/net/
H A Dbridgestp.c1628 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument
1632 if (path_cost > BSTP_MAX_PATH_COST) in bstp_set_path_cost()
1636 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535) in bstp_set_path_cost()
1637 path_cost = 65535; in bstp_set_path_cost()
1641 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()
1645 bp->bp_path_cost = path_cost; in bstp_set_path_cost()
1718 uint32_t path_cost; in bstp_calc_path_cost() local
1734 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()
1736 if (path_cost > BSTP_MAX_PATH_COST) in bstp_calc_path_cost()
1737 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()
[all …]
/src/usr.sbin/bsnmpd/modules/snmp_bridge/
H A Dbridge_snmp.h112 int32_t path_cost; member
331 int32_t path_cost);
H A Dbridge_sys.c663 bp->path_cost = k_info->ifbr_path_cost; in bridge_port_getinfo_conf()
814 int32_t path_cost) in bridge_port_set_path_cost() argument
819 if (path_cost < SNMP_PORT_MIN_PATHCOST || in bridge_port_set_path_cost()
820 path_cost > SNMP_PORT_PATHCOST_OBSOLETE) in bridge_port_set_path_cost()
828 b_req.ifbr_path_cost = path_cost; in bridge_port_set_path_cost()
837 bp->admin_path_cost = path_cost; in bridge_port_set_path_cost()
H A Dbridge_port.c486 ctx->scratch->int1 = bp->path_cost; in op_dot1d_stp_port()
547 val->v.integer = bp->path_cost; in op_dot1d_stp_port()
1249 ctx->scratch->int1 = bp->path_cost; in op_begemot_stp_port()
1311 val->v.integer = bp->path_cost; in op_begemot_stp_port()