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

Function bstp_set_edge

freebsd/net/bridgestp.c:1632–1644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1630}
1631
1632int
1633bstp_set_edge(struct bstp_port *bp, int set)
1634{
1635 struct bstp_state *bs = bp->bp_bs;
1636
1637 BSTP_LOCK(bs);
1638 if ((bp->bp_operedge = set) == 0)
1639 bp->bp_flags &= ~BSTP_PORT_ADMEDGE;
1640 else
1641 bp->bp_flags |= BSTP_PORT_ADMEDGE;
1642 BSTP_UNLOCK(bs);
1643 return (0);
1644}
1645
1646int
1647bstp_set_autoedge(struct bstp_port *bp, int set)

Callers 1

bridge_ioctl_sifflagsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected