]> git.pld-linux.org Git - packages/arpwatch.git/blob - arpwatch-debian_26unconf_iface.patch
- added ac264.patch
[packages/arpwatch.git] / arpwatch-debian_26unconf_iface.patch
1 Index: arpwatch/arpwatch.c
2 diff -u arpwatch/arpwatch.c:1.1.1.1 arpwatch/arpwatch.c:1.1.1.1.20.1
3 --- arpwatch/arpwatch.c:1.1.1.1 Tue Apr 17 13:31:36 2001
4 +++ arpwatch/arpwatch.c Thu Aug 12 23:51:51 2004
5 @@ -223,9 +223,10 @@
6  
7                 /* Determine network and netmask */
8                 if (pcap_lookupnet(interface, &net, &netmask, errbuf) < 0) {
9 -                       (void)fprintf(stderr, "%s: bad interface %s: %s\n",
10 -                           prog, interface, errbuf);
11 -                       exit(1);
12 +                       syslog(LOG_NOTICE, "bad interface %s: %s - assuming unconfigured interface",
13 +                               interface, errbuf);
14 +                       net = 0;
15 +                       netmask = 0;
16                 }
17  
18                 /* Drop into the background if not debugging */
This page took 0.043153 seconds and 3 git commands to generate.