struct netdev **netdev_);
static int restore_flags(struct netdev *netdev);
static int get_flags(const struct netdev *, int fd, int *flagsp);
-static int set_flags(struct netdev *, int fd, int flags);
+static int set_flags(struct netdev *, int flags);
/* Obtains the IPv6 address for 'name' into 'in6'. */
static void
netdev->changed_flags |= new_flags ^ old_flags;
}
if (new_flags != old_flags) {
- error = set_flags(netdev, fd, new_flags);
+ error = set_flags(netdev, new_flags);
}
return error;
}
}
static int
-set_flags(struct netdev *netdev, int fd, int flags)
+set_flags(struct netdev *netdev, int flags)
{
struct ifreq ifr;
strncpy(ifr.ifr_name, netdev->name, sizeof ifr.ifr_name);