2001-06-01 19:36:31 -04:00
|
|
|
$OpenBSD: patch-no_ip,v 1.3 2001/06/01 23:36:32 jakob Exp $
|
2000-10-12 05:37:35 -04:00
|
|
|
|
|
|
|
Do not bail if the interface does not have an IP assigned.
|
|
|
|
|
2000-12-19 07:12:36 -05:00
|
|
|
--- arpwatch.c.orig Sat Oct 14 04:07:35 2000
|
2001-06-01 19:36:31 -04:00
|
|
|
+++ arpwatch.c Sat Jun 2 01:22:14 2001
|
|
|
|
@@ -223,9 +223,11 @@ main(int argc, char **argv)
|
2000-10-12 05:37:35 -04:00
|
|
|
|
|
|
|
/* Determine network and netmask */
|
|
|
|
if (pcap_lookupnet(interface, &net, &netmask, errbuf) < 0) {
|
|
|
|
- (void)fprintf(stderr, "%s: bad interface %s: %s\n",
|
|
|
|
- prog, interface, errbuf);
|
|
|
|
- exit(1);
|
2000-12-19 07:12:36 -05:00
|
|
|
+ (void)fprintf(stderr,
|
|
|
|
+ "%s: WARNING: cannot determine net/mask: %s\n",
|
2000-10-12 05:37:35 -04:00
|
|
|
+ prog, errbuf);
|
|
|
|
+ net = 0;
|
|
|
|
+ netmask = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Drop into the background if not debugging */
|