Home
last modified time | relevance | path

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

/freebsd-12-stable/sys/net/
Dbridgestp.c1625 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument
1629 if (path_cost > BSTP_MAX_PATH_COST) in bstp_set_path_cost()
1633 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535) in bstp_set_path_cost()
1634 path_cost = 65535; in bstp_set_path_cost()
1638 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()
1642 bp->bp_path_cost = path_cost; in bstp_set_path_cost()
1715 uint32_t path_cost; in bstp_calc_path_cost() local
1731 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()
1733 if (path_cost > BSTP_MAX_PATH_COST) in bstp_calc_path_cost()
1734 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()
[all …]
/freebsd-12-stable/usr.sbin/bsnmpd/modules/snmp_bridge/
Dbridge_snmp.h114 int32_t path_cost; member
333 int32_t path_cost);
Dbridge_sys.c666 bp->path_cost = k_info->ifbr_path_cost; in bridge_port_getinfo_conf()
817 int32_t path_cost) in bridge_port_set_path_cost() argument
822 if (path_cost < SNMP_PORT_MIN_PATHCOST || in bridge_port_set_path_cost()
823 path_cost > SNMP_PORT_PATHCOST_OBSOLETE) in bridge_port_set_path_cost()
831 b_req.ifbr_path_cost = path_cost; in bridge_port_set_path_cost()
840 bp->admin_path_cost = path_cost; in bridge_port_set_path_cost()
Dbridge_port.c488 ctx->scratch->int1 = bp->path_cost; in op_dot1d_stp_port()
549 val->v.integer = bp->path_cost; in op_dot1d_stp_port()
1251 ctx->scratch->int1 = bp->path_cost; in op_begemot_stp_port()
1313 val->v.integer = bp->path_cost; in op_begemot_stp_port()