gisi: Fix embarrassing typo

This commit is contained in:
Rémi Denis-Courmont 2009-09-10 17:18:17 +03:00 committed by Aki Niemi
parent 54f61961b5
commit 418dba1ec3
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ static int bring_up(int fd, unsigned ifindex)
{ {
struct ifreq req = { .ifr_ifindex = ifindex, }; struct ifreq req = { .ifr_ifindex = ifindex, };
if (ioctl(fd, SIOCGIFINDEX, &req) || if (ioctl(fd, SIOCGIFNAME, &req) ||
ioctl(fd, SIOCGIFFLAGS, &req)) ioctl(fd, SIOCGIFFLAGS, &req))
return -errno; return -errno;
req.ifr_flags |= IFF_UP | IFF_RUNNING; req.ifr_flags |= IFF_UP | IFF_RUNNING;