Commit Graph

8 Commits

Author SHA1 Message Date
itojun cf9ebfbd63 use getifaddrs, instead of SIOCGIFCONF.
sync with more-recent LBL 0.4, about loopback interface detection
(/^lo[0-9]?$/).

CAVEAT: with GENERIC kernel on laptops laptops, pcap_lookupdev would almost
always pick eon0 as the interface, and fails because eon0 has no bpf
attachment.  we may want to change pcap_lookup{,dev} to check if the
interface has bpf attachment or not.

almost in sync with tcpdump.org source code tree.
2000-04-13 05:14:19 +00:00
itojun 7a9fea2792 improve message when IPv4 address is not assigned to interface
(and netmask-related directives can misbehave).

the change is in kame and tcpdump.org repository as well.
2000-01-13 17:14:56 +00:00
christos a520af71e9 Resolve conflicts 1997-10-03 15:53:00 +00:00
mrg 9cd5492c02 - convert unsafe strcpy(), strcat() and sprintf() to the `n' versions.
- some KNF.
1997-01-23 14:01:45 +00:00
mikel f17c8ad1a1 Merge libpcap-0.2.1.
Includes numerous improvements (see CHANGES), fixes PR bin/2031.
1996-12-13 08:25:54 +00:00
cgd ebd16dc1e1 switch from long to int32_t, where appropriate, so that this actually
works on NetBSD/Alpha for non-trivial filters.
1996-05-26 23:50:37 +00:00
mycroft b0446b3200 Port to NetBSD, and add NetBSD RCS tags. 1995-03-06 11:37:58 +00:00
mycroft 84c86af405 Import LBL libpcap, version 0.0 patch level 3. 1995-03-06 11:32:59 +00:00