| 1931 | } |
| 1932 | |
| 1933 | static int |
| 1934 | lagg_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 */ |
| 1947 | static int |
no outgoing calls
no test coverage detected