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

Function lagg_setcaps

freebsd/net/if_lagg.c:1933–1944  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1931}
1932
1933static int
1934lagg_setcaps(struct lagg_port *lp, int cap)
1935{
1936 struct ifreq ifr;
1937
1938 if (lp->lp_ifp->if_capenable == cap)
1939 return (0);
1940 if (lp->lp_ioctl == NULL)
1941 return (ENXIO);
1942 ifr.ifr_reqcap = cap;
1943 return ((*lp->lp_ioctl)(lp->lp_ifp, SIOCSIFCAP, (caddr_t)&ifr));
1944}
1945
1946/* Handle a ref counted flag that should be set on the lagg port as well */
1947static int

Callers 2

lagg_capabilitiesFunction · 0.85
lagg_port_destroyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected