Lines Matching refs:breq
1512 struct ifbreq breq; in bridge_ioctl_gifs() local
1522 buflen = sizeof(breq) * count; in bridge_ioctl_gifs()
1534 bzero(&breq, sizeof(breq)); in bridge_ioctl_gifs()
1536 if (len < sizeof(breq)) in bridge_ioctl_gifs()
1539 strlcpy(breq.ifbr_ifsname, bif->bif_ifp->if_xname, in bridge_ioctl_gifs()
1540 sizeof(breq.ifbr_ifsname)); in bridge_ioctl_gifs()
1542 error = bridge_ioctl_gifflags(sc, &breq); in bridge_ioctl_gifs()
1545 memcpy(buf, &breq, sizeof(breq)); in bridge_ioctl_gifs()
1547 buf += sizeof(breq); in bridge_ioctl_gifs()
1548 len -= sizeof(breq); in bridge_ioctl_gifs()
1551 if (len < sizeof(breq)) in bridge_ioctl_gifs()
1554 strlcpy(breq.ifbr_ifsname, bif->bif_ifp->if_xname, in bridge_ioctl_gifs()
1555 sizeof(breq.ifbr_ifsname)); in bridge_ioctl_gifs()
1556 breq.ifbr_ifsflags = bif->bif_flags; in bridge_ioctl_gifs()
1557 breq.ifbr_portno = bif->bif_ifp->if_index & 0xfff; in bridge_ioctl_gifs()
1558 memcpy(buf, &breq, sizeof(breq)); in bridge_ioctl_gifs()
1560 buf += sizeof(breq); in bridge_ioctl_gifs()
1561 len -= sizeof(breq); in bridge_ioctl_gifs()
1564 bifc->ifbic_len = sizeof(breq) * count; in bridge_ioctl_gifs()