Lines Matching refs:ifr
54 struct ifreq ifr = { .ifr_data = (caddr_t)&opts };
56 if (ioctl_ctx(ctx, GREGKEY, &ifr) == 0)
60 if (ioctl_ctx(ctx, GREGOPTS, &ifr) != 0 || opts == 0)
64 ifr.ifr_data = (caddr_t)&port;
65 if (ioctl_ctx_ifr(ctx, GREGPORT, &ifr) == 0 && port != 0)
76 struct ifreq ifr = { .ifr_data = (caddr_t)&grekey };
78 ifr.ifr_data = (caddr_t)&grekey;
79 if (ioctl_ctx_ifr(ctx, GRESKEY, &ifr) < 0)
87 struct ifreq ifr = { .ifr_data = (caddr_t)&udpport };
89 if (ioctl_ctx_ifr(ctx, GRESPORT, &ifr) < 0)
97 struct ifreq ifr = { .ifr_data = (caddr_t)&opts };
99 if (ioctl_ctx_ifr(ctx, GREGOPTS, &ifr) == -1) {
109 if (ioctl_ctx(ctx, GRESOPTS, &ifr) == -1) {