Update the change log
[profile/ivi/libpcap.git] / packaging / libpcap-nodev.patch
1 commit 02096148c9c407502697cfefbc0aed50eb820bbd
2 Author: andy-1 <andy-1@sourceforge.net>
3 Date:   Tue Apr 27 23:33:23 2010 -0700
4
5     Ignore /sys/net/dev files if we get ENODEV for them, not just ENXIO.
6     
7     Both of them are indications that there's no such interface, so the file
8     probably corresponds to something other than a device.
9     
10     Reviewed-By: Guy Harris <guy@alum.mit.edu>
11
12 diff --git a/CREDITS b/CREDITS
13 index 0d23783..6efc188 100644
14 --- a/CREDITS
15 +++ b/CREDITS
16 @@ -15,6 +15,7 @@ Additional people who have contributed patches:
17         Alexey Kuznetsov                <kuznet at ms2 dot inr dot ac dot ru>
18         Alon Bar-Lev                    <alonbl at sourceforge dot net>
19         Andrew Brown                    <atatat at atatdot dot net>
20 +                                       <andy-1 at sourceforge dot net>
21         Antti Kantee                    <pooka at netbsd dot org>
22         Arien Vijn                      <arienvijn at sourceforge dot net>
23         Arkadiusz Miskiewicz            <misiek at pld dot org dot pl>
24 diff --git a/pcap-linux.c b/pcap-linux.c
25 index af12543..de3239a 100644
26 --- a/pcap-linux.c
27 +++ b/pcap-linux.c
28 @@ -1883,7 +1883,7 @@ scan_sys_class_net(pcap_if_t **devlistp, char *errbuf)
29                  */
30                 strncpy(ifrflags.ifr_name, name, sizeof(ifrflags.ifr_name));
31                 if (ioctl(fd, SIOCGIFFLAGS, (char *)&ifrflags) < 0) {
32 -                       if (errno == ENXIO)
33 +                       if (errno == ENXIO || errno == ENODEV)
34                                 continue;
35                         (void)snprintf(errbuf, PCAP_ERRBUF_SIZE,
36                             "SIOCGIFFLAGS: %.*s: %s",