Home
last modified time | relevance | path

Searched refs:ifr_cap_nv (Results 1 – 5 of 5) sorted by relevance

/freebsd/sbin/ifconfig/
H A Difpfsync.c60 ifr.ifr_cap_nv.buffer = malloc(IFR_CAP_NV_MAXBUFSIZE); in pfsync_do_ioctl()
61 memcpy(ifr.ifr_cap_nv.buffer, data, nvlen); in pfsync_do_ioctl()
62 ifr.ifr_cap_nv.buf_length = IFR_CAP_NV_MAXBUFSIZE; in pfsync_do_ioctl()
63 ifr.ifr_cap_nv.length = nvlen; in pfsync_do_ioctl()
67 free(ifr.ifr_cap_nv.buffer); in pfsync_do_ioctl()
74 *nvl = nvlist_unpack(ifr.ifr_cap_nv.buffer, ifr.ifr_cap_nv.length, 0); in pfsync_do_ioctl()
76 free(ifr.ifr_cap_nv.buffer); in pfsync_do_ioctl()
80 free(ifr.ifr_cap_nv.buffer); in pfsync_do_ioctl()
H A Difconfig.c1512 ifr.ifr_cap_nv.buf_length = ifr.ifr_cap_nv.length = nvbuflen; in setifcapnv()
1513 ifr.ifr_cap_nv.buffer = buf; in setifcapnv()
1688 ifr.ifr_cap_nv.buffer = buf; in print_ifcap_nv()
1689 ifr.ifr_cap_nv.buf_length = IFR_CAP_NV_MAXBUFSIZE; in print_ifcap_nv()
1692 nvcap = nvlist_unpack(ifr.ifr_cap_nv.buffer, in print_ifcap_nv()
1693 ifr.ifr_cap_nv.length, 0); in print_ifcap_nv()
/freebsd/sys/netpfil/pf/
H A Dif_pfsync.c1618 if (nvbuflen > ifr->ifr_cap_nv.buf_length) { in pfsyncioctl()
1619 ifr->ifr_cap_nv.length = nvbuflen; in pfsyncioctl()
1620 ifr->ifr_cap_nv.buffer = NULL; in pfsyncioctl()
1626 ifr->ifr_cap_nv.length = nvbuflen; in pfsyncioctl()
1627 error = copyout(packed, ifr->ifr_cap_nv.buffer, nvbuflen); in pfsyncioctl()
1659 if (ifr->ifr_cap_nv.length > IFR_CAP_NV_MAXBUFSIZE) in pfsyncioctl()
1662 data = malloc(ifr->ifr_cap_nv.length, M_TEMP, M_WAITOK); in pfsyncioctl()
1664 if ((error = copyin(ifr->ifr_cap_nv.buffer, data, in pfsyncioctl()
1665 ifr->ifr_cap_nv.length)) != 0) { in pfsyncioctl()
1670 if ((nvl = nvlist_unpack(data, ifr->ifr_cap_nv.length, 0)) == NULL) { in pfsyncioctl()
/freebsd/sys/net/
H A Dif.c2492 if (nvbuflen > ifr->ifr_cap_nv.buf_length) { in ifhwioctl()
2493 ifr->ifr_cap_nv.length = nvbuflen; in ifhwioctl()
2494 ifr->ifr_cap_nv.buffer = NULL; in ifhwioctl()
2498 ifr->ifr_cap_nv.length = nvbuflen; in ifhwioctl()
2499 error = copyout(buf, ifr->ifr_cap_nv.buffer, nvbuflen); in ifhwioctl()
2668 if (ifr->ifr_cap_nv.length > IFR_CAP_NV_MAXBUFSIZE) in ifhwioctl()
2671 buf = malloc(ifr->ifr_cap_nv.length, M_TEMP, M_WAITOK); in ifhwioctl()
2673 error = copyin(ifr->ifr_cap_nv.buffer, buf, in ifhwioctl()
2674 ifr->ifr_cap_nv.length); in ifhwioctl()
2677 nvcap = nvlist_unpack(buf, ifr->ifr_cap_nv.length, 0); in ifhwioctl()
H A Dif.h499 #define ifr_cap_nv ifr_ifru.ifru_nv /* nv-based cap interface */ macro