2012-11-27 07:38:28 +00:00
|
|
|
Add warning if trying to bind to a subinterface.
|
|
|
|
|
|
|
|
Author: Johannes Tevessen <j.tevessen@gmx.net>
|
|
|
|
Resolves: #81640
|
|
|
|
|
2004-09-09 06:23:07 +00:00
|
|
|
--- iputils-ss021109-vanilla/ping.c Thu Nov 7 23:53:21 2002
|
|
|
|
+++ iputils/ping.c Sun Jan 12 03:39:24 2003
|
|
|
|
@@ -285,6 +285,9 @@
|
|
|
|
perror("ping: IP_MULTICAST_IF");
|
|
|
|
exit(2);
|
|
|
|
}
|
|
|
|
+ } else if (icmp_sock >= 0) {
|
2012-11-13 12:01:31 +00:00
|
|
|
+ /* We possibly tried to SO_BINDTODEVICE() a subinterface like 'eth0:1' */
|
2004-09-09 06:23:07 +00:00
|
|
|
+ perror("Warning: cannot bind to specified iface, falling back");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|