Commit Graph

15 Commits

Author SHA1 Message Date
yamt d3538cc488 sync partly with tcpdump.org. ok'ed by itojun
patches #454 from yamt@mwd.biglobe.ne.jp
- avoid optimization involving subtract operations
- correct optimization of bitwise operations

TODO: re-introduce subtract optimization
2002-08-26 11:21:18 +00:00
itojun 53ca62040c calloc() arg mistake. it's (nelem, size). from openbsd
sync w/tcpdump.org
2002-08-12 02:39:22 +00:00
christos f637fa6fd0 remove redundant declarations. 2001-01-06 02:11:18 +00:00
itojun 4f72111370 re-introduce netbsd fix 1.5 -> 1.6, which was mistakenly removed.
pointed by Gui Harris.

---
Fix a hairy optimizer bug that causes the expression:
'ip and ((icmp and dst host 1.1.1.1 and not host 2.2.2.2) or (host 1.1.1.1 and src host 3.3.3.3))'
to compile incorrectly.  Details about to be mailed to LBL.
2000-11-19 13:18:03 +00:00
is e999d8013c Format string cleanups by sommerfeld. 2000-10-10 19:12:48 +00:00
itojun 01d2c4aaac avoid malloc(0). from kame changes, sync with tcpdump.org. 2000-04-14 14:17:13 +00:00
simonb 3f777e28cc More trailing white space. 1999-07-02 15:58:35 +00:00
itojun c6f88a42f4 support IPv6 address and IPv6 protocols.
"tcp" will match both IPv4 TCP and IPv6 TCP.
"ip6" will match IPv6.
you can chase header chain by using "protochain" instead of "proto"
(but bpf code is not optimizable in this case)

commit to tcpdump will follow.

I've sent this fix to LBL guys to get no response.  I wonder why it was.
1999-07-02 10:05:22 +00:00
christos a520af71e9 Resolve conflicts 1997-10-03 15:53:00 +00:00
mycroft e264e9c91d Fix a hairy optimizer bug that causes the expression:
'ip and ((icmp and dst host 1.1.1.1 and not host 2.2.2.2) or (host 1.1.1.1 and src host 3.3.3.3))'
to compile incorrectly.  Details about to be mailed to LBL.
1997-09-28 09:41:53 +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
cgd 64fe160dd5 include string.h and/or stdlib.h as appropriate, if NetBSD. 1995-04-29 05:42:23 +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