The NetBSD Project

CVS log for src/sys/net/bpf_filter.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / net

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.73: download - view: text, markup, annotated - select for diffs
Mon Sep 2 15:34:08 2024 UTC (7 months, 2 weeks ago) by christos
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -4 lines
merge changes from libpcap-1.10.5

Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Aug 17 15:16:33 2023 UTC (20 months, 1 week ago) by christos
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +4 -2 lines
define symbols that new libpcap needs

Revision 1.53.2.3: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:02 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.53.2.2: preferred, colored; next MAIN 1.54: preferred, colored
Changes since revision 1.53.2.2: +46 -1 lines
update from HEAD

Revision 1.68.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 9 20:25:21 2016 UTC (8 years, 9 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.68.2.1: preferred, colored; branchpoint 1.68: preferred, colored; next MAIN 1.69: preferred, colored
Changes since revision 1.68.2.1: +25 -2 lines
Sync with HEAD

Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Jun 7 01:06:28 2016 UTC (8 years, 10 months ago) by pgoyette
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, phil-wifi, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, netbsd-9-base, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +25 -2 lines
Create separate modules for i2c_bitbang and bpf_filter so these files
can be included in kernels which need them without also duplicating
them in other modules.  Removes the duplicate symbols I found which
prevented loading i2c and bpf modules after having fixed PR 45125.

Revision 1.68.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:22 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +5 -3 lines
Sync with HEAD

Revision 1.70: download - view: text, markup, annotated - select for diffs
Wed Feb 11 12:53:15 2015 UTC (10 years, 2 months ago) by alnsn
Branches: MAIN
CVS tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606, nick-nhusb-base-20150406
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +4 -4 lines
Fix the build.

Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Feb 11 12:03:30 2015 UTC (10 years, 2 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +5 -3 lines
It's not enough to check that a class of the last instruction is BPF_RET.
The opcodes in bpf_validate() must match opcodes understood by bpf_filter().

Found by afl-fuzz http://lcamtuf.coredump.cx/afl/.

Revision 1.68: download - view: text, markup, annotated - select for diffs
Wed Nov 19 19:35:21 2014 UTC (10 years, 5 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +22 -2 lines
Add BPF_MOD/BPF_XOR, sync DLT entries and document unused bpf instructions.
From libpcap-1.6.2

Revision 1.53.2.2: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:34 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.53.2.1: preferred, colored
Changes since revision 1.53.2.1: +188 -58 lines
Rebase to HEAD as of a few days ago.

Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:15 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61: +74 -49 lines
Rebase.

Revision 1.67: download - view: text, markup, annotated - select for diffs
Mon Jul 7 19:56:03 2014 UTC (10 years, 9 months ago) by alnsn
Branches: MAIN
CVS tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +8 -11 lines
Arithmetic overflow when calculating variable offsets (BPF_LD+BPF_IND
instructions) should be handled uniformly for contiguous buffers and mbufs.

Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Jul 5 22:06:11 2014 UTC (10 years, 9 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +13 -6 lines
Implement error checking in m_xbyte() and check for errors after m_xbyte() call.
Reuse (len - k) expression in m_xword() and m_xhalf() to give an optimization
hint to a compiler.

When m_xbyte() didn't exist, bpf_filter() handled out-of-bounds BPF_B loads
correctly because "return 0" inside MINDEX() was aborting filter programs.
After the change that added m_xbyte() zero values were passed to A or X
registers instead of aborting a filter program.

Revision 1.65: download - view: text, markup, annotated - select for diffs
Wed Jun 25 09:51:34 2014 UTC (10 years, 10 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +3 -3 lines
Check "preinited" argument of bpf_set_extmem().

Revision 1.64: download - view: text, markup, annotated - select for diffs
Tue Jun 24 22:27:40 2014 UTC (10 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +6 -5 lines
- bpf_validate_ext: fix memword validation in BPF_ST/BPF_STX case.
- bpf_set_extmem: check the number of words against BPF_MAX_MEMWORDS.

Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue Jun 24 22:19:36 2014 UTC (10 years, 10 months ago) by rmind
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +8 -7 lines
- Improve the comments in bpf.h and KNF a little.
- Rename bpf_ctx_t member noinit to preinited (reflects the meaning better).

Revision 1.62: download - view: text, markup, annotated - select for diffs
Tue Jun 24 10:53:30 2014 UTC (10 years, 10 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +55 -36 lines
Implement copfuncs and external memory in bpfjit.

Revision 1.48.2.3: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:08 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.48.2.2: preferred, colored; branchpoint 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48.2.2: +150 -45 lines
sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.55.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:12 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.55: preferred, colored; next MAIN 1.56: preferred, colored
Changes since revision 1.55: +150 -45 lines
sync with head

Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri Nov 15 00:12:44 2013 UTC (11 years, 5 months ago) by rmind
Branches: MAIN
CVS tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +63 -47 lines
- Add bpf_args_t and convert bpf_filter_ext() to use it.  This allows the
  caller to initialise (and re-use) the memory store.
- Add bpf_jit_generate() and bpf_jit_freecode() wrappers.

Revision 1.60: download - view: text, markup, annotated - select for diffs
Sat Oct 5 22:38:52 2013 UTC (11 years, 6 months ago) by rmind
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +14 -22 lines
bpf_filter: re-use some code.  No functional change intended.

Revision 1.59: download - view: text, markup, annotated - select for diffs
Thu Sep 19 00:48:48 2013 UTC (11 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +15 -2 lines
bpf_validate_ext: allow COP to modify the memstore.

Revision 1.58: download - view: text, markup, annotated - select for diffs
Wed Sep 18 23:34:55 2013 UTC (11 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +24 -5 lines
Add bpf_filter_ext() to use with BPF COP, restore bpf_filter() as it was
originally to preserve compatibility.  Similarly, add bpf_validate_ext()
which takes bpf_ctx_t.

Revision 1.57: download - view: text, markup, annotated - select for diffs
Fri Aug 30 15:00:08 2013 UTC (11 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +6 -6 lines
bpf_filter: add a custom argument which can be passed to coprocessor routine.

Revision 1.56: download - view: text, markup, annotated - select for diffs
Thu Aug 29 14:25:41 2013 UTC (11 years, 7 months ago) by rmind
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +67 -2 lines
Implement BPF_COP/BPF_COPX instructions in the misc category (BPF_MISC)
which add a capability to call external functions in a predetermined way.

It can be thought as a BPF "coprocessor" -- a generic mechanism to offload
more complex packet inspection operations.  There is no default coprocessor
and this functionality is not targeted to the /dev/bpf.  This is primarily
targeted to the kernel subsystems, therefore there is no way to set a custom
coprocessor at the userlevel.

Discussed on: tech-net@
OK: core@

Revision 1.53.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:46 2012 UTC (12 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +19 -13 lines
Resync to 2012-11-19 00:00:00 UTC

Revision 1.48.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:42 2012 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.48.2.1: preferred, colored; branchpoint 1.48: preferred, colored
Changes since revision 1.48.2.1: +31 -15 lines
sync with head

Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Oct 27 22:36:14 2012 UTC (12 years, 5 months ago) by alnsn
Branches: MAIN
CVS tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +17 -6 lines
Add bpfjit and enable it for amd64.

Revision 1.54: download - view: text, markup, annotated - select for diffs
Thu Sep 27 18:28:56 2012 UTC (12 years, 6 months ago) by alnsn
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +4 -9 lines
Remove bpf_jit which was ported from FreeBSD recently.

It will soon be replaced with the new bpfjit kernel module.

Revision 1.53: download - view: text, markup, annotated - select for diffs
Wed Aug 15 21:31:39 2012 UTC (12 years, 8 months ago) by alnsn
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -2 lines
MINDEX() macro has 'return 0;' statement. It doesn't set *err to
1 before return when invoked from m_xword() and m_xhalf() functions.
The caller doesn't set it to 1 either. So, set *err to 1 before
invoking MINDEX().

Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Aug 2 20:13:24 2012 UTC (12 years, 8 months ago) by rmind
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +6 -3 lines
bpf_filter: remove unnecessary memset(), add a comment.

Revision 1.51: download - view: text, markup, annotated - select for diffs
Wed Aug 1 23:24:29 2012 UTC (12 years, 8 months ago) by rmind
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +20 -15 lines
Add BPF JIT compiler, currently supporting amd64 and i386.  Code obtained
from FreeBSD.  Also, make few BPF fixes and simplifications while here.
Note that bpf_jit_enable is false for now.

OK dyoung@, some feedback from matt@

Revision 1.48.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:37 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +9 -7 lines
sync with head

Revision 1.48.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:37 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.48: preferred, colored; next MAIN 1.49: preferred, colored
Changes since revision 1.48: +9 -7 lines
merge to -current.

Revision 1.50: download - view: text, markup, annotated - select for diffs
Thu Dec 29 23:47:21 2011 UTC (13 years, 3 months ago) by alnsn
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3 lines
Apply same bounds checks for BPF_LD|BPF_B|BPF_IND as for
BPF_LD|BPF_H|BPF_IND and BPF_LD|BPF_W|BPF_IND.

From FreeBSD r48548, the original r45574 had a typo.

Revision 1.49: download - view: text, markup, annotated - select for diffs
Thu Dec 29 20:50:06 2011 UTC (13 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +8 -6 lines
PR/45751: Alexander Nasonov: No overflow check in BPF_LD|BPF_ABS

Revision 1.48: download - view: text, markup, annotated - select for diffs
Thu Jul 14 12:44:10 2011 UTC (13 years, 9 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, jmcneill-usbmp
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +0 -1 lines
back out previous - this should be unnecessary on NetBSD due to
the extra validation introduced in rev.1.42 (and pulled up to netbsd-5)

Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Jul 14 10:43:55 2011 UTC (13 years, 9 months ago) by drochner
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -2 lines
clear the packet filter's scratch memory before running the filter
program, otherwise kernel memory can be leaked, from Guy Harris
per PR kern/45142

Revision 1.41.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:09:52 2011 UTC (13 years, 10 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +63 -19 lines
Sync with HEAD.

Revision 1.35.12.1: download - view: text, markup, annotated - select for diffs
Fri May 20 08:11:29 2011 UTC (13 years, 11 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +3 -3 lines
bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.35.10.1: download - view: text, markup, annotated - select for diffs
Tue Mar 22 20:02:36 2011 UTC (14 years, 1 month ago) by bouyer
Branches: netbsd-5-0
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +85 -21 lines
Pull up following revision(s) (requested by spz in ticket #1571):
	sys/net/bpf_filter.c: revision 1.36, 1.42 -> 1.46 via patch
Avoid stack memory disclosure by keeping track during filter validation time
of initialized memory. Idea taken from linux.
Use __CTASSERT
Use kmem instead of malloc. Requested by rmind.
Fix userland build.
delint.
the correct check for BPF_K is with BPF_SRC for BPF_ALU ops, from
Guy Harris per PR kern/43185
fixes possible division-by-zero crashes by evil filter expressions
like "len / 0 = 1"
pullup candidate

Revision 1.35.4.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Mar 20 21:28:13 2011 UTC (14 years, 1 month ago) by bouyer
Branches: netbsd-5-1
CVS tags: netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE
Diff to: previous 1.35.4.1: preferred, colored; next MAIN 1.35.4.2: preferred, colored
Changes since revision 1.35.4.1: +84 -20 lines
Pull up following revision(s) (requested by spz in ticket #1571):
	sys/net/bpf_filter.c: revision 1.42 - 1.46 via patch
Avoid stack memory disclosure by keeping track during filter validation time
of initialized memory. Idea taken from linux.
Use __CTASSERT
Use kmem instead of malloc. Requested by rmind.
Fix userland build.
delint.

Revision 1.35.4.2: download - view: text, markup, annotated - select for diffs
Sun Mar 20 21:28:08 2011 UTC (14 years, 1 month ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2
Diff to: previous 1.35.4.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.4.1: +84 -20 lines
Pull up following revision(s) (requested by spz in ticket #1571):
	sys/net/bpf_filter.c: revision 1.42 - 1.46 via patch
Avoid stack memory disclosure by keeping track during filter validation time
of initialized memory. Idea taken from linux.
Use __CTASSERT
Use kmem instead of malloc. Requested by rmind.
Fix userland build.
delint.

Revision 1.35.16.2: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:55:51 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.35.16.1: preferred, colored; branchpoint 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35.16.1: +111 -38 lines
sync with head

Revision 1.41.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:47 2011 UTC (14 years, 1 month ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.41: preferred, colored; next MAIN 1.42: preferred, colored
Changes since revision 1.41: +63 -19 lines
Sync with HEAD

Revision 1.46: download - view: text, markup, annotated - select for diffs
Sat Feb 19 17:21:48 2011 UTC (14 years, 2 months ago) by christos
Branches: MAIN
CVS tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +5 -5 lines
delint.

Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Feb 19 08:46:41 2011 UTC (14 years, 2 months ago) by enami
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +4 -3 lines
Fix userland build.

Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Feb 19 04:10:47 2011 UTC (14 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +6 -5 lines
Use kmem instead of malloc. Requested by rmind.

Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Feb 19 02:22:27 2011 UTC (14 years, 2 months ago) by matt
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3 lines
Use __CTASSERT

Revision 1.42: download - view: text, markup, annotated - select for diffs
Sat Feb 19 01:12:39 2011 UTC (14 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +59 -17 lines
Avoid stack memory disclosure by keeping track during filter validation time
of initialized memory. Idea taken from linux.

Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Dec 5 22:40:56 2010 UTC (14 years, 4 months ago) by mrg
Branches: MAIN
CVS tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +3 -3 lines
revert another part of bpf_filter 1.38 that broke the check for divide
by zero while validating the bpf program.

originally spotted by skrll@, and broke atf the month-old atf test for
this exact problem: net_bpf_t_div-by-zero_div_by_zero.

Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Dec 5 09:42:20 2010 UTC (14 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +7 -11 lines
consider BPF_ABS, BPF_IND and BPF_MSH as they used to be in rev 1.37.

this fixes dhclient, and i'm told dhcpcd as well.


this patch from skrll@netbsd.org, tested by me.

Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Dec 5 08:45:46 2010 UTC (14 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -4 lines
apply the smallest hack to allow this to build without warnings again.

Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Dec 5 02:40:40 2010 UTC (14 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +44 -13 lines
make bpf_validate available in userland.

Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Dec 5 00:34:21 2010 UTC (14 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +18 -17 lines
constify

Revision 1.34.10.2: download - view: text, markup, annotated - select for diffs
Wed Aug 11 22:54:53 2010 UTC (14 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34.10.1: preferred, colored; branchpoint 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34.10.1: +3 -3 lines
sync with head.

Revision 1.32.2.2: download - view: text, markup, annotated - select for diffs
Sun Jun 13 17:51:11 2010 UTC (14 years, 10 months ago) by riz
Branches: netbsd-4
Diff to: previous 1.32.2.1: preferred, colored; branchpoint 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32.2.1: +3 -3 lines
Pull up following revision(s) (requested by drochner in ticket #1393):
	sys/net/bpf_filter.c: revision 1.36
the correct check for BPF_K is with BPF_SRC for BPF_ALU ops, from
Guy Harris per PR kern/43185
fixes possible division-by-zero crashes by evil filter expressions
like "len / 0 =3D 1"
pullup candidate

Revision 1.35.16.1: download - view: text, markup, annotated - select for diffs
Sun May 30 05:18:01 2010 UTC (14 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
sync with head

Revision 1.35.4.1: download - view: text, markup, annotated - select for diffs
Thu May 20 05:13:13 2010 UTC (14 years, 11 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, matt-nb5-pq3-base, matt-nb5-pq3
Branch point for: netbsd-5-1
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
Pull up following revision(s) (requested by drochner in ticket #1381):
	sys/net/bpf_filter.c: revision 1.36
the correct check for BPF_K is with BPF_SRC for BPF_ALU ops, from
Guy Harris per PR kern/43185
fixes possible division-by-zero crashes by evil filter expressions
like "len / 0 = 1"

Revision 1.35.14.1: download - view: text, markup, annotated - select for diffs
Fri Apr 30 14:44:18 2010 UTC (14 years, 11 months ago) by uebayasi
Branches: uebayasi-xip
Diff to: previous 1.35: preferred, colored; next MAIN 1.36: preferred, colored
Changes since revision 1.35: +3 -3 lines
Sync with HEAD.

Revision 1.36: download - view: text, markup, annotated - select for diffs
Wed Apr 21 16:35:09 2010 UTC (15 years ago) by drochner
Branches: MAIN
CVS tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +3 -3 lines
the correct check for BPF_K is with BPF_SRC for BPF_ALU ops, from
Guy Harris per PR kern/43185
fixes possible division-by-zero crashes by evil filter expressions
like "len / 0 = 1"
pullup candidate

Revision 1.34.10.1: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:14 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
sync with head.

Revision 1.34.16.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:17:41 2008 UTC (16 years, 6 months ago) by haad
Branches: haad-dm
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +3 -3 lines
Sync with HEAD.

Revision 1.34.6.1: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:40:55 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +3 -3 lines
Sync with HEAD.

Revision 1.34.12.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:36:59 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.34: preferred, colored; next MAIN 1.35: preferred, colored
Changes since revision 1.34: +3 -3 lines
Sync with wrstuden-revivesa-base-2.

Revision 1.35: download - view: text, markup, annotated - select for diffs
Wed Aug 20 13:01:54 2008 UTC (16 years, 8 months ago) by joerg
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, netbsd-5-base, netbsd-5-1-RC1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, mjf-devfs2-base, matt-premerge-20091211, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: uebayasi-xip, rmind-uvmplock, netbsd-5-0, netbsd-5, matt-nb5-mips64
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +3 -3 lines
As the scratch memory is only ever copied to or from A and X, make it
unsigned as well.

Revision 1.32.4.1: download - view: text, markup, annotated - select for diffs
Tue Jun 3 20:47:41 2008 UTC (16 years, 10 months ago) by skrll
Branches: wrstuden-fixsa
Diff to: previous 1.32: preferred, colored; next MAIN 1.33: preferred, colored
Changes since revision 1.32: +7 -6 lines
Sync with netbsd-4.

Revision 1.33.26.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:01 2008 UTC (17 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +7 -6 lines
Sync with HEAD.

Revision 1.32.2.1: download - view: text, markup, annotated - select for diffs
Sun Feb 3 00:28:12 2008 UTC (17 years, 2 months ago) by riz
Branches: netbsd-4
CVS tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +7 -6 lines
Pull up following revision(s) (requested by christos in ticket #1032):
	sys/net/bpf_filter.c: revision 1.34
PR/37663: Guy Harris: bpf_validate rejects valid programs that use the
multiply instruction

Revision 1.21.4.4: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:46:59 2008 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.4.3: preferred, colored; branchpoint 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21.4.3: +7 -6 lines
sync with head

Revision 1.33.20.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:57:07 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +7 -6 lines
sync with HEAD

Revision 1.33.32.1: download - view: text, markup, annotated - select for diffs
Wed Jan 2 21:57:00 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33: +7 -6 lines
Sync with HEAD

Revision 1.34: download - view: text, markup, annotated - select for diffs
Wed Jan 2 15:58:01 2008 UTC (17 years, 3 months ago) by christos
Branches: MAIN
CVS tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-nbase, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-nfs-mp, wrstuden-revivesa, mjf-devfs2, haad-dm
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +7 -6 lines
PR/37663: Guy Harris: bpf_validate rejects valid programs that use the multiply instruction

Revision 1.21.4.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:11:32 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.4.2: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.2: +5 -20 lines
sync with head.

Revision 1.31.8.2: download - view: text, markup, annotated - select for diffs
Thu Feb 1 08:48:43 2007 UTC (18 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.31.8.1: preferred, colored; branchpoint 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31.8.1: +5 -20 lines
Sync with head.

Revision 1.33: download - view: text, markup, annotated - select for diffs
Sat Jan 27 07:16:01 2007 UTC (18 years, 3 months ago) by cbiere
Branches: MAIN
CVS tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, mjf-ufs-trans-base, mjf-ufs-trans, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-audiomp-base, ad-audiomp
Branch point for: mjf-devfs, matt-armv6, bouyer-xeni386
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +5 -20 lines
Use be16dec() and be32dec() instead of reimplementing them.

Revision 1.21.4.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:20 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21.4.1: preferred, colored; branchpoint 1.21: preferred, colored
Changes since revision 1.21.4.1: +8 -12 lines
sync with head.

Revision 1.31.8.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:29 2006 UTC (18 years, 5 months ago) by ad
Branches: newlock2
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +8 -12 lines
Sync with head.

Revision 1.21.12.1: download - view: text, markup, annotated - select for diffs
Mon Oct 23 17:48:12 2006 UTC (18 years, 6 months ago) by ghen
Branches: netbsd-3-0
CVS tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +8 -10 lines
Pull up following revision(s) (requested by oster in ticket #1539):
	sys/net/bpf_filter.c: revision 1.32
It is not sufficient for MINDEX to just 'return 0' if the MINDEX macro
is going to be used from within m_xhalf() and m_xword().  In using
MINDEX in those cases, we must set *err to '1' *before* calling MINDEX
just in case MINDEX does decide to 'return', and causes the function
to return 0 with an un-set err value.  A consequence of this fix is
that we can cleanup a couple of (now) unneeded goto's.  Problem found
by inspection whilst searching for the cause of a different panic.
Also: pavel@ noted the following:
				if (merr != 0)
 					return 0;
was missing from after a call to m_xhalf(), so fix that too.
src/regress/sys/net/bpf/out-of-bounds now passes the regression test.
Ok'ed by pavel@.

Revision 1.21.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 23 17:48:04 2006 UTC (18 years, 6 months ago) by ghen
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE, netbsd-3-1-1-RELEASE, netbsd-3-1
Diff to: previous 1.21: preferred, colored; next MAIN 1.22: preferred, colored
Changes since revision 1.21: +8 -10 lines
Pull up following revision(s) (requested by oster in ticket #1539):
	sys/net/bpf_filter.c: revision 1.32
It is not sufficient for MINDEX to just 'return 0' if the MINDEX macro
is going to be used from within m_xhalf() and m_xword().  In using
MINDEX in those cases, we must set *err to '1' *before* calling MINDEX
just in case MINDEX does decide to 'return', and causes the function
to return 0 with an un-set err value.  A consequence of this fix is
that we can cleanup a couple of (now) unneeded goto's.  Problem found
by inspection whilst searching for the cause of a different panic.
Also: pavel@ noted the following:
				if (merr != 0)
 					return 0;
was missing from after a call to m_xhalf(), so fix that too.
src/regress/sys/net/bpf/out-of-bounds now passes the regression test.
Ok'ed by pavel@.

Revision 1.31.10.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:24 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.31: preferred, colored; next MAIN 1.32: preferred, colored
Changes since revision 1.31: +8 -12 lines
sync with head

Revision 1.32: download - view: text, markup, annotated - select for diffs
Wed Oct 4 20:47:43 2006 UTC (18 years, 6 months ago) by oster
Branches: MAIN
CVS tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, wrstuden-fixsa-base-1, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, matt-nb4-arm-base, matt-nb4-arm
Branch point for: wrstuden-fixsa, netbsd-4
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +8 -12 lines
It is not sufficient for MINDEX to just 'return 0' if the MINDEX macro
is going to be used from within m_xhalf() and m_xword().  In using
MINDEX in those cases, we must set *err to '1' *before* calling MINDEX
just in case MINDEX does decide to 'return', and causes the function
to return 0 with an un-set err value.  A consequence of this fix is
that we can cleanup a couple of (now) unneeded goto's.  Problem found
by inspection whilst searching for the cause of a different panic.

Also: pavel@ noted the following:
				if (merr != 0)
 					return 0;
was missing from after a call to m_xhalf(), so fix that too.

src/regress/sys/net/bpf/out-of-bounds now passes the regression test.

Ok'ed by pavel@.

Revision 1.28.4.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:58:06 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.28: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28: +7 -5 lines
sync with head

Revision 1.21.4.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:10:26 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +127 -71 lines
sync with head.

Revision 1.28.6.2: download - view: text, markup, annotated - select for diffs
Thu Jun 1 22:38:37 2006 UTC (18 years, 10 months ago) by kardel
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.28.6.1: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.6.1: +5 -5 lines
Sync with head.

Revision 1.30.6.1: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:43 2006 UTC (18 years, 11 months ago) by tron
Branches: peter-altq
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +5 -5 lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.30.2.1: download - view: text, markup, annotated - select for diffs
Wed May 24 10:58:56 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.30: preferred, colored; next MAIN 1.31: preferred, colored
Changes since revision 1.30: +5 -5 lines
sync with head.

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sun May 14 05:30:31 2006 UTC (18 years, 11 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, rpaulo-netinet-merge-pcb-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-splraiseipl, newlock2
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +5 -5 lines
XXX: GCC uninitialized.

Revision 1.28.6.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:06 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -2 lines
Sync with head.

Revision 1.28.2.2: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:47 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.28.2.1: preferred, colored; next MAIN 1.29: preferred, colored
Changes since revision 1.28.2.1: +3 -2 lines
sync with head.

Revision 1.30: download - view: text, markup, annotated - select for diffs
Mon Feb 27 11:42:58 2006 UTC (19 years, 1 month ago) by drochner
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base, elad-kernelauth
Branch point for: yamt-pdpolicy, peter-altq
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +3 -2 lines
fix bpf_validate():
a missing "break" caused any bpf filter containing
a division to be rejected

Revision 1.28.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:23 2006 UTC (19 years, 2 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
sync with head.

Revision 1.29: download - view: text, markup, annotated - select for diffs
Tue Feb 7 20:10:48 2006 UTC (19 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +3 -2 lines
Add a /* CONSTCOND */ for lint.

Revision 1.28: download - view: text, markup, annotated - select for diffs
Wed Dec 14 20:33:46 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -2 lines
Fix previous commit: ABS, IND and MSH are valid codes.

Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Dec 13 23:53:49 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -22 lines
In bpf_validate(), get rid of bpf_maxbufsize test as there are other
clients of bpf_filter(), like if_ppp, that are not limited by
bpf_maxbufsize. The same check is done at the run time, so there is no
problem created.

Noticed by Guy Harris in private email.

Revision 1.19.16.5: download - view: text, markup, annotated - select for diffs
Sun Dec 11 10:29:19 2005 UTC (19 years, 4 months ago) by christos
Branches: ktrace-lwp
Diff to: previous 1.19.16.4: preferred, colored; branchpoint 1.19: preferred, colored; next MAIN 1.20: preferred, colored
Changes since revision 1.19.16.4: +139 -68 lines
Sync with head.

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Dec 5 22:38:40 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
CVS tags: ktrace-lwp-base
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +3 -3 lines
Oops, the previous revision had a wrong pre-processor #if clause.

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Dec 5 21:46:00 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +12 -2 lines
Make the bpf_maxbufsize a constant when bpfilter pseudo-device is not
present in the kernel config, thus fixing the build. Problem reported
by Havard Eidnes. Solution proposed by Christos, thanks.

Revision 1.24: download - view: text, markup, annotated - select for diffs
Wed Nov 30 23:14:38 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +103 -35 lines
PR 32198: bpf_validate() needs to do more checks, from Otto Moerbeek/OpenBSD
via Guy Harris.
Problems like out-of-bounds read/write in filter machine operations
were fixed.

Revision 1.23: download - view: text, markup, annotated - select for diffs
Wed Nov 30 22:40:59 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +14 -14 lines
More KNF. C99 uintXX_t types.

Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Nov 30 12:52:23 2005 UTC (19 years, 4 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +21 -28 lines
KNF. ANSYfy. de-P().

Revision 1.20.8.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:31 2005 UTC (19 years, 11 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +18 -18 lines
sync with -current

Revision 1.20.10.1: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:31 2005 UTC (20 years, 1 month ago) by yamt
Branches: yamt-km
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +18 -18 lines
sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.19.16.4: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:52:56 2005 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.19.16.3: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.16.3: +18 -18 lines
Sync with HEAD.

Hi Perry!

Revision 1.21: download - view: text, markup, annotated - select for diffs
Sat Feb 26 22:45:09 2005 UTC (20 years, 2 months ago) by perry
Branches: MAIN
CVS tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base3, yamt-readahead-base2, yamt-readahead-base, yamt-readahead, yamt-km-base4, yamt-km-base3, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-1-RELEASE, kent-audio2-base
Branch point for: yamt-lazymbuf, netbsd-3-0, netbsd-3
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +18 -18 lines
nuke trailing whitespace

Revision 1.19.16.3: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:36:35 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.19.16.2: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.16.2: +2 -2 lines
Fix the sync with head I botched.

Revision 1.19.16.2: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:54:15 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.19.16.1: preferred, colored; branchpoint 1.19: preferred, colored
Changes since revision 1.19.16.1: +0 -0 lines
Sync with HEAD.

Revision 1.19.16.1: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:54:11 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -7 lines
Sync with HEAD

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:32:47 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
CVS tags: yamt-km-base2, yamt-km-base, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +3 -7 lines
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.17.4.1: download - view: text, markup, annotated - select for diffs
Thu Jan 10 20:01:58 2002 UTC (23 years, 3 months ago) by thorpej
Branches: kqueue
Diff to: previous 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17: +4 -2 lines
Sync kqueue branch with -current.

Revision 1.17.2.2: download - view: text, markup, annotated - select for diffs
Tue Jan 8 00:33:50 2002 UTC (23 years, 3 months ago) by nathanw
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.17.2.1: preferred, colored; branchpoint 1.17: preferred, colored; next MAIN 1.18: preferred, colored
Changes since revision 1.17.2.1: +2 -3 lines
Catch up to -current.

Revision 1.19: download - view: text, markup, annotated - select for diffs
Thu Nov 15 09:48:25 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
CVS tags: newlock-base, newlock, netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001, netbsd-1-6, nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, ifpoll-base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, gehenna-devsw, fvdl_fs64_base, eeh-devprop-base, eeh-devprop
Branch point for: ktrace-lwp
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -3 lines
don't need <sys/types.h> when including <sys/param.h>

Revision 1.17.2.1: download - view: text, markup, annotated - select for diffs
Wed Nov 14 19:17:18 2001 UTC (23 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -1 lines
Catch up to -current.

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Nov 12 23:49:33 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -1 lines
add RCSIDs

Revision 1.14.16.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:09:56 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +29 -32 lines
Update thorpej_scsipi to -current as of a month ago

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sat Jul 22 05:11:27 2000 UTC (24 years, 9 months ago) by matt
Branches: MAIN
CVS tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-mips-cache-base, thorpej-mips-cache, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: nathanw_sa, kqueue
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +4 -2 lines
Add a missing include when using this in user space.

Revision 1.16: download - view: text, markup, annotated - select for diffs
Wed Apr 12 04:21:22 2000 UTC (25 years ago) by chs
Branches: MAIN
CVS tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, netbsd-1-5, minoura-xpg4dl-base, minoura-xpg4dl
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +2 -7 lines
remove sunos stuff.

Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Mar 30 09:45:34 2000 UTC (25 years, 1 month ago) by augustss
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +25 -25 lines
Kill some more register declarations.

Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:10:06 1998 UTC (27 years, 2 months ago) by fvdl
Branches: WFJ-920714, CSRG
CVS tags: lite-2, lite-1, date-03-may-96
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +26 -27 lines
Import 4.4BSD-Lite for reference

Revision 1.13.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 14 10:28:58 1997 UTC (27 years, 6 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.13: preferred, colored; next MAIN 1.14: preferred, colored
Changes since revision 1.13: +14 -5 lines
Update marc-pcmcia branch from trunk.

Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Oct 9 18:20:04 1997 UTC (27 years, 6 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3, marc-pcmcia-base, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, fvdl-softdep-base, fvdl-softdep, eeh-paddr_t-base, eeh-paddr_t, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base, chs-ubc2, chs-ubc-base, chs-ubc
Branch point for: thorpej_scsipi
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +14 -5 lines
bpf_filter.c:
	- update copyright
	- add their rcsid
	- initialize some variables later later for consistency
	  with the current code.
	- change char to u_char to match the current code.

Revision 1.13: download - view: text, markup, annotated - select for diffs
Mon Jul 7 18:18:28 1997 UTC (27 years, 9 months ago) by phil
Branches: MAIN
CVS tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp
Branch point for: marc-pcmcia
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -2 lines
Provide better filter validation.  PR 3366.

Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Feb 13 22:00:00 1996 UTC (29 years, 2 months ago) by christos
Branches: MAIN
CVS tags: thorpej-setroot, netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -6 lines
Net prototypes

Revision 1.11: download - view: text, markup, annotated - select for diffs
Sat Apr 22 13:26:39 1995 UTC (30 years ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +9 -8 lines
copy routines should take size_t lengths for prototype consistency.
don't assume that tick is >= 1000; loses badly on alpha (div. by zero)
only try unaligned copies if NetBSD's UNALIGNED_ACCESS symbol is defined.
various misc type size cleanups, mostly short -> int16_t.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sat Apr 1 03:04:49 1995 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +15 -29 lines
Fix bogus buffer indexing when a value is split across a mbuf boundary,
as suggested by Greg Ansley.  Also, redefine MINDEX() slightly to avoid
duplicating code.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Mar 28 20:01:10 1995 UTC (30 years, 1 month ago) by jtc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +11 -11 lines
KERNEL -> _KERNEL

Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Mar 6 10:58:25 1995 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +3 -2 lines
Undo an #include ordering change.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Mon Mar 6 10:56:08 1995 UTC (30 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +14 -24 lines
Make this more type-safe for the Alpha.  From the libpcap 0.0 distribution.
(Needs more work.)

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:35:56 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0, netbsd-1-0
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +3 -2 lines
New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri May 13 06:02:22 1994 UTC (30 years, 11 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +7 -8 lines
Update to 4.4-Lite networking code, with a few local changes.

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Dec 18 00:40:51 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -1 lines
Canonicalize all #includes.

Revision 1.3: download - view: text, markup, annotated - select for diffs
Thu May 20 03:05:53 1993 UTC (31 years, 11 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9, magnum-base, magnum
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -8 lines
add rcs ids to everything, and clean up headers

Revision 1.2: download - view: text, markup, annotated - select for diffs
Thu Mar 25 00:27:53 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
CVS tags: netbsd-alpha-1, netbsd-0-8
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +27 -24 lines
added BPF support, as provided by David Greenman (davidg@implode.rain.com)

Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: WFJ-920714, CSRG
CVS tags: patchkit-0-2-2, WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0 lines
initial import of 386bsd-0.1 sources

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (32 years, 1 month ago) by cgd
Branches: MAIN
Initial revision

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>