Home
last modified time | relevance | path

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

/xnu-10063.141.1/bsd/net/
H A Dbridgestp.c1767 bstp_set_path_cost(struct bstp_port *bp, uint32_t path_cost) in bstp_set_path_cost() argument
1771 if (path_cost > BSTP_MAX_PATH_COST) { in bstp_set_path_cost()
1776 if (bp->bp_protover == BSTP_PROTO_STP && path_cost > 65535) { in bstp_set_path_cost()
1777 path_cost = 65535; in bstp_set_path_cost()
1782 if (path_cost == 0) { /* use auto */ in bstp_set_path_cost()
1786 bp->bp_path_cost = path_cost; in bstp_set_path_cost()
1864 uint32_t path_cost; in bstp_calc_path_cost() local
1882 path_cost = 20000000000ULL / (ifp->if_baudrate / 1000); in bstp_calc_path_cost()
1884 if (path_cost > BSTP_MAX_PATH_COST) { in bstp_calc_path_cost()
1885 path_cost = BSTP_MAX_PATH_COST; in bstp_calc_path_cost()
[all …]