iputils/iputils-20020927-ping-subint.patch
2012-11-27 08:38:28 +01:00

18 lines
507 B
Diff

Add warning if trying to bind to a subinterface.
Author: Johannes Tevessen <j.tevessen@gmx.net>
Resolves: #81640
--- 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) {
+ /* We possibly tried to SO_BINDTODEVICE() a subinterface like 'eth0:1' */
+ perror("Warning: cannot bind to specified iface, falling back");
}
}
}