MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bstp_set_autoedge

Function bstp_set_autoedge

freebsd/net/bridgestp.c:1646–1661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1644}
1645
1646int
1647bstp_set_autoedge(struct bstp_port *bp, int set)
1648{
1649 struct bstp_state *bs = bp->bp_bs;
1650
1651 BSTP_LOCK(bs);
1652 if (set) {
1653 bp->bp_flags |= BSTP_PORT_AUTOEDGE;
1654 /* we may be able to transition straight to edge */
1655 if (bp->bp_edge_delay_timer.active == 0)
1656 bstp_edge_delay_expiry(bs, bp);
1657 } else
1658 bp->bp_flags &= ~BSTP_PORT_AUTOEDGE;
1659 BSTP_UNLOCK(bs);
1660 return (0);
1661}
1662
1663int
1664bstp_set_ptp(struct bstp_port *bp, int set)

Callers 1

bridge_ioctl_sifflagsFunction · 0.85

Calls 1

bstp_edge_delay_expiryFunction · 0.85

Tested by

no test coverage detected