|
Line 0
Link Here
|
|
|
1 |
--- src/iface.c 2015/05/13 12:31:43 1.223 |
| 2 |
+++ src/iface.c 2015/06/02 08:57:13 1.224 |
| 3 |
@@ -3654,9 +3654,11 @@ |
| 4 |
b->name, iface->ifname, ifname)); |
| 5 |
|
| 6 |
if (ioctl(s, SIOCSIFNAME, (caddr_t)&ifr) < 0) { |
| 7 |
- Perror("[%s] IFACE: ioctl(%s, SIOCSIFNAME)", b->name, iface->ifname); |
| 8 |
- close(s); |
| 9 |
- return(-1); |
| 10 |
+ if (errno != EEXIST) { |
| 11 |
+ Perror("[%s] IFACE: ioctl(%s, SIOCSIFNAME)", b->name, iface->ifname); |
| 12 |
+ close(s); |
| 13 |
+ return(-1); |
| 14 |
+ } |
| 15 |
} |
| 16 |
|
| 17 |
close(s); |