ifdrv
struct ifdrv ifd;
struct ifdrv ifd;
struct ifdrv ifdrv;
estrlcpy(ifdrv.ifd_name, ifname, sizeof(ifdrv.ifd_name));
ifdrv.ifd_cmd = IFLINKSTR_QUERYLEN;
ifdrv.ifd_len = 0;
ifdrv.ifd_data = NULL;
if (prog_ioctl(s, SIOCGLINKSTR, &ifdrv) != -1) {
p = malloc(ifdrv.ifd_len);
ifdrv.ifd_data = p;
ifdrv.ifd_cmd = 0;
if (prog_ioctl(s, SIOCGLINKSTR, &ifdrv) == -1)
printf("\tlinkstr: %s\n", (char *)ifdrv.ifd_data);
struct ifdrv ifdrv;
ifdrv.ifd_cmd = 0;
ifdrv.ifd_len = linkstrlen;
ifdrv.ifd_data = __UNCONST(linkstr);
if (direct_ioctl(env, SIOCSLINKSTR, &ifdrv) == -1)
struct ifdrv ifdrv;
memset(&ifdrv, 0, sizeof(ifdrv));
ifdrv.ifd_cmd = IFLINKSTR_UNSET;
if (direct_ioctl(env, SIOCSLINKSTR, &ifdrv) == -1)
struct ifdrv *ifd;
ifd = (struct ifdrv *) data;
struct ifdrv * const ifd = (struct ifdrv *) data;
IOCTL_STRUCT_CONV_TO(SIOCSDRVSPEC, ifdrv);
IOCTL_STRUCT_CONV_TO(SIOCGDRVSPEC, ifdrv);
netbsd32_to_ifdrv(struct netbsd32_ifdrv *s32p, struct ifdrv *p, u_long cmd)
netbsd32_from_ifdrv(struct ifdrv *p, struct netbsd32_ifdrv *s32p, u_long cmd)
struct ifdrv *ifd = (struct ifdrv *) data;
wg_alloc_prop_buf(char **_buf, struct ifdrv *ifd)
wg_ioctl_set_private_key(struct wg_softc *wg, struct ifdrv *ifd)
wg_ioctl_set_listen_port(struct wg_softc *wg, struct ifdrv *ifd)
wg_ioctl_add_peer(struct wg_softc *wg, struct ifdrv *ifd)
wg_ioctl_delete_peer(struct wg_softc *wg, struct ifdrv *ifd)
wg_ioctl_get(struct wg_softc *wg, struct ifdrv *ifd)
struct ifdrv *ifd = data;
wg_ioctl_linkstr(struct wg_softc *wg, struct ifdrv *ifd)
static int wg_ioctl_linkstr(struct wg_softc *, struct ifdrv *);
can_get_netlink(struct ifnet *ifp, struct ifdrv *ifd)
can_set_netlink(struct ifnet *ifp, struct ifdrv *ifd)
return can_get_netlink(ifp, (struct ifdrv *) data);
return can_set_netlink(ifp, (struct ifdrv *) data);
struct ifdrv *ifd;
struct ifdrv *ifd;
#define SIOCSDRVSPEC _IOW('i', 123, struct ifdrv) /* set driver-specific
#define SIOCGDRVSPEC _IOWR('i', 123, struct ifdrv) /* get driver-specific
#define SIOCGLINKSTR _IOWR('i', 135, struct ifdrv)
#define SIOCSLINKSTR _IOW('i', 136, struct ifdrv)
struct ifdrv ifd;
struct ifdrv ifd;