Home | History | Annotate | Download | only in ip

Lines Matching refs:gid

48 static int tap_add_ioctl(struct ifreq *ifr, uid_t uid, gid_t gid)
70 if (gid != -1 && ioctl(fd, TUNSETGROUP, gid)) {
107 static int parse_args(int argc, char **argv, struct ifreq *ifr, uid_t *uid, gid_t *gid)
149 } else if (gid && matches(*argv, "group") == 0) {
156 *gid = group;
163 *gid = gr->gr_gid;
195 gid_t gid = -1;
197 if (parse_args(argc, argv, &ifr, &uid, &gid) < 0)
204 return tap_add_ioctl(&ifr, uid, gid);