guy
bc365a5db9
From RCB-ISIS on SourceForge: handle LynxOS, which has AF_PACKET but
...
puts the if_packet.h header in a different directory from Linux.
2007-09-14 00:44:54 +00:00
guy
2aaf5b8803
From Don Ebright: add support for Linux logical interfaces.
2005-04-08 02:01:19 +00:00
guy
f9b1d9732a
From Dean Gaudet <dean@arctic.org>: handle AF_PACKET addresses on OSes
...
that have them (Linux).
2004-11-04 07:26:04 +00:00
guy
bd53902d4a
Don't rely on SA_LEN to check whether it's passed a null pointer (it
...
might be supplied by the OS, and the OS might supply a version that
doesn't check); instead, check for null pointers before doing anything
with the address at all. This also means we don't supply a netmask if
the address is null; that makes sense, as a netmask makes no sense
without an address.
2004-03-11 23:04:24 +00:00
guy
30e89f192a
Add _U_ to "rcsid[]" definitions, to eliminate "unused variable"
...
warnings from newer versions of GCC.
2003-11-15 23:23:57 +00:00
guy
bf56c44d21
From Mike Wiacek: have "get_sa_len()" return 0 if the "addr" pointer
...
passed to it is NULL, as it might be if, for example, the address or the
netmask isn't supplied.
2003-09-10 23:06:43 +00:00
itojun
ea2d307af2
sa_len for netmask is undefined.
2003-09-10 22:29:55 +00:00
guy
164af2f0bf
Alas, there are some versions of GNU libc that don't have "SA_LEN()"; at
...
least for those that also have "getifaddrs()", we have to get the size
by looking at the address family.
2003-02-25 07:50:28 +00:00
guy
de4c0d816c
From Kazushi Sugyo: address pointers in entries returned by
...
"getifaddrs()" can be null, so make "SA_LEN()" return 0 if the argument
is null, rather than dereferencing the argument and crashing if it's
null.
2002-10-19 02:25:40 +00:00
guy
d698d6aed8
From an anonymous Sourceforge user: include <net/if.h> to declare the
...
IFF_ flags.
2002-08-26 09:50:45 +00:00
guy
3d856fe865
Leave it up to the platform-dependent "get interface list" code to
...
figure out how big the addresses are, as the way that's done is, well,
platform-dependent....
2002-07-30 08:12:13 +00:00
guy
2dcac1bb6b
Put the different implementations of "pcap_findalldevs()" into separate
...
source files, rather than having a pile of #ifdefs in "inet.c". Add
code to the configure script to determine which implementation to use on
the platform for which libpcap is being built.
Add a "pcap_findalldevs()" implementation for Solaris 8 and later that
handles IPv6 addresses.
2002-07-27 18:45:34 +00:00