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


Default branch: MAIN


Revision 1.72 / (download) - annotate - [select for diffs], Thu Aug 17 15:16:33 2023 UTC (7 months, 1 week ago) by christos
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, HEAD
Changes since 1.71: +4 -2 lines
Diff to previous 1.71 (unified)

define symbols that new libpcap needs

Revision 1.53.2.3 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (6 years, 3 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.53.2.2: +46 -1 lines
Diff to previous 1.53.2.2 (unified) next main 1.54 (unified)

update from HEAD

Revision 1.68.2.2 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:21 2016 UTC (7 years, 8 months ago) by skrll
Branch: nick-nhusb
Changes since 1.68.2.1: +25 -2 lines
Diff to previous 1.68.2.1 (unified) to branchpoint 1.68 (unified) next main 1.69 (unified)

Sync with HEAD

Revision 1.71 / (download) - annotate - [select for diffs], Tue Jun 7 01:06:28 2016 UTC (7 years, 9 months ago) by pgoyette
Branch: 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-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-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-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
Changes since 1.70: +25 -2 lines
Diff to previous 1.70 (unified)

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) - annotate - [select for diffs], Mon Apr 6 15:18:22 2015 UTC (8 years, 11 months ago) by skrll
Branch: nick-nhusb
Changes since 1.68: +5 -3 lines
Diff to previous 1.68 (unified)

Sync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Wed Feb 11 12:53:15 2015 UTC (9 years, 1 month ago) by alnsn
Branch: 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
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (unified)

Fix the build.

Revision 1.69 / (download) - annotate - [select for diffs], Wed Feb 11 12:03:30 2015 UTC (9 years, 1 month ago) by alnsn
Branch: MAIN
Changes since 1.68: +5 -3 lines
Diff to previous 1.68 (unified)

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) - annotate - [select for diffs], Wed Nov 19 19:35:21 2014 UTC (9 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.67: +22 -2 lines
Diff to previous 1.67 (unified)

Add BPF_MOD/BPF_XOR, sync DLT entries and document unused bpf instructions.
From libpcap-1.6.2

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:34 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-maxphys
Changes since 1.53.2.1: +188 -58 lines
Diff to previous 1.53.2.1 (unified)

Rebase to HEAD as of a few days ago.

Revision 1.61.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:56:15 2014 UTC (9 years, 7 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.61: +74 -49 lines
Diff to previous 1.61 (unified) next main 1.62 (unified)

Rebase.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Jul 7 19:56:03 2014 UTC (9 years, 8 months ago) by alnsn
Branch: 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
Changes since 1.66: +8 -11 lines
Diff to previous 1.66 (unified)

Arithmetic overflow when calculating variable offsets (BPF_LD+BPF_IND
instructions) should be handled uniformly for contiguous buffers and mbufs.

Revision 1.66 / (download) - annotate - [select for diffs], Sat Jul 5 22:06:11 2014 UTC (9 years, 8 months ago) by alnsn
Branch: MAIN
Changes since 1.65: +13 -6 lines
Diff to previous 1.65 (unified)

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) - annotate - [select for diffs], Wed Jun 25 09:51:34 2014 UTC (9 years, 9 months ago) by alnsn
Branch: MAIN
Changes since 1.64: +3 -3 lines
Diff to previous 1.64 (unified)

Check "preinited" argument of bpf_set_extmem().

Revision 1.64 / (download) - annotate - [select for diffs], Tue Jun 24 22:27:40 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.63: +6 -5 lines
Diff to previous 1.63 (unified)

- 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) - annotate - [select for diffs], Tue Jun 24 22:19:36 2014 UTC (9 years, 9 months ago) by rmind
Branch: MAIN
Changes since 1.62: +8 -7 lines
Diff to previous 1.62 (unified)

- 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) - annotate - [select for diffs], Tue Jun 24 10:53:30 2014 UTC (9 years, 9 months ago) by alnsn
Branch: MAIN
Changes since 1.61: +55 -36 lines
Diff to previous 1.61 (unified)

Implement copfuncs and external memory in bpfjit.

Revision 1.48.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:08 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.48.2.2: +150 -45 lines
Diff to previous 1.48.2.2 (unified) to branchpoint 1.48 (unified) next main 1.49 (unified)

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) - annotate - [select for diffs], Sun May 18 17:46:12 2014 UTC (9 years, 10 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.55: +150 -45 lines
Diff to previous 1.55 (unified) next main 1.56 (unified)

sync with head

Revision 1.61 / (download) - annotate - [select for diffs], Fri Nov 15 00:12:44 2013 UTC (10 years, 4 months ago) by rmind
Branch: 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
Changes since 1.60: +63 -47 lines
Diff to previous 1.60 (unified)

- 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) - annotate - [select for diffs], Sat Oct 5 22:38:52 2013 UTC (10 years, 5 months ago) by rmind
Branch: MAIN
Changes since 1.59: +14 -22 lines
Diff to previous 1.59 (unified)

bpf_filter: re-use some code.  No functional change intended.

Revision 1.59 / (download) - annotate - [select for diffs], Thu Sep 19 00:48:48 2013 UTC (10 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.58: +15 -2 lines
Diff to previous 1.58 (unified)

bpf_validate_ext: allow COP to modify the memstore.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Sep 18 23:34:55 2013 UTC (10 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.57: +24 -5 lines
Diff to previous 1.57 (unified)

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) - annotate - [select for diffs], Fri Aug 30 15:00:08 2013 UTC (10 years, 6 months ago) by rmind
Branch: MAIN
Changes since 1.56: +6 -6 lines
Diff to previous 1.56 (unified)

bpf_filter: add a custom argument which can be passed to coprocessor routine.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Aug 29 14:25:41 2013 UTC (10 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.55: +67 -2 lines
Diff to previous 1.55 (unified)

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) - annotate - [select for diffs], Tue Nov 20 03:02:46 2012 UTC (11 years, 4 months ago) by tls
Branch: tls-maxphys
Changes since 1.53: +19 -13 lines
Diff to previous 1.53 (unified)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.48.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:42 2012 UTC (11 years, 4 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.48.2.1: +31 -15 lines
Diff to previous 1.48.2.1 (unified) to branchpoint 1.48 (unified)

sync with head

Revision 1.55 / (download) - annotate - [select for diffs], Sat Oct 27 22:36:14 2012 UTC (11 years, 5 months ago) by alnsn
Branch: 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
Changes since 1.54: +17 -6 lines
Diff to previous 1.54 (unified)

Add bpfjit and enable it for amd64.

Revision 1.54 / (download) - annotate - [select for diffs], Thu Sep 27 18:28:56 2012 UTC (11 years, 6 months ago) by alnsn
Branch: MAIN
Changes since 1.53: +4 -9 lines
Diff to previous 1.53 (unified)

Remove bpf_jit which was ported from FreeBSD recently.

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

Revision 1.53 / (download) - annotate - [select for diffs], Wed Aug 15 21:31:39 2012 UTC (11 years, 7 months ago) by alnsn
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.52: +4 -2 lines
Diff to previous 1.52 (unified)

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) - annotate - [select for diffs], Thu Aug 2 20:13:24 2012 UTC (11 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.51: +6 -3 lines
Diff to previous 1.51 (unified)

bpf_filter: remove unnecessary memset(), add a comment.

Revision 1.51 / (download) - annotate - [select for diffs], Wed Aug 1 23:24:29 2012 UTC (11 years, 7 months ago) by rmind
Branch: MAIN
Changes since 1.50: +20 -15 lines
Diff to previous 1.50 (unified)

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) - annotate - [select for diffs], Tue Apr 17 00:08:37 2012 UTC (11 years, 11 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.48: +9 -7 lines
Diff to previous 1.48 (unified)

sync with head

Revision 1.48.6.1 / (download) - annotate - [select for diffs], Sat Feb 18 07:35:37 2012 UTC (12 years, 1 month ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.48: +9 -7 lines
Diff to previous 1.48 (unified) next main 1.49 (unified)

merge to -current.

Revision 1.50 / (download) - annotate - [select for diffs], Thu Dec 29 23:47:21 2011 UTC (12 years, 3 months ago) by alnsn
Branch: 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
Changes since 1.49: +3 -3 lines
Diff to previous 1.49 (unified)

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) - annotate - [select for diffs], Thu Dec 29 20:50:06 2011 UTC (12 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.48: +8 -6 lines
Diff to previous 1.48 (unified)

PR/45751: Alexander Nasonov: No overflow check in BPF_LD|BPF_ABS

Revision 1.48 / (download) - annotate - [select for diffs], Thu Jul 14 12:44:10 2011 UTC (12 years, 8 months ago) by drochner
Branch: 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
Changes since 1.47: +0 -1 lines
Diff to previous 1.47 (unified)

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) - annotate - [select for diffs], Thu Jul 14 10:43:55 2011 UTC (12 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.46: +3 -2 lines
Diff to previous 1.46 (unified)

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) - annotate - [select for diffs], Mon Jun 6 09:09:52 2011 UTC (12 years, 9 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.41: +63 -19 lines
Diff to previous 1.41 (unified) next main 1.42 (unified)

Sync with HEAD.

Revision 1.35.12.1 / (download) - annotate - [select for diffs], Fri May 20 08:11:29 2011 UTC (12 years, 10 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified) next main 1.36 (unified)

bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.35.10.1 / (download) - annotate - [select for diffs], Tue Mar 22 20:02:36 2011 UTC (13 years ago) by bouyer
Branch: netbsd-5-0
Changes since 1.35: +85 -21 lines
Diff to previous 1.35 (unified) next main 1.36 (unified)

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) - annotate - [select for diffs], Sun Mar 20 21:28:13 2011 UTC (13 years ago) by bouyer
Branch: 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
Changes since 1.35.4.1: +84 -20 lines
Diff to previous 1.35.4.1 (unified) next main 1.35.4.2 (unified)

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) - annotate - [select for diffs], Sun Mar 20 21:28:08 2011 UTC (13 years ago) by bouyer
Branch: 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
Changes since 1.35.4.1: +84 -20 lines
Diff to previous 1.35.4.1 (unified) to branchpoint 1.35 (unified) next main 1.36 (unified)

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) - annotate - [select for diffs], Sat Mar 5 20:55:51 2011 UTC (13 years ago) by rmind
Branch: rmind-uvmplock
Changes since 1.35.16.1: +111 -38 lines
Diff to previous 1.35.16.1 (unified) to branchpoint 1.35 (unified) next main 1.36 (unified)

sync with head

Revision 1.41.4.1 / (download) - annotate - [select for diffs], Sat Mar 5 15:10:47 2011 UTC (13 years ago) by bouyer
Branch: bouyer-quota2
Changes since 1.41: +63 -19 lines
Diff to previous 1.41 (unified) next main 1.42 (unified)

Sync with HEAD

Revision 1.46 / (download) - annotate - [select for diffs], Sat Feb 19 17:21:48 2011 UTC (13 years, 1 month ago) by christos
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase
Changes since 1.45: +5 -5 lines
Diff to previous 1.45 (unified)

delint.

Revision 1.45 / (download) - annotate - [select for diffs], Sat Feb 19 08:46:41 2011 UTC (13 years, 1 month ago) by enami
Branch: MAIN
Changes since 1.44: +4 -3 lines
Diff to previous 1.44 (unified)

Fix userland build.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Feb 19 04:10:47 2011 UTC (13 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.43: +6 -5 lines
Diff to previous 1.43 (unified)

Use kmem instead of malloc. Requested by rmind.

Revision 1.43 / (download) - annotate - [select for diffs], Sat Feb 19 02:22:27 2011 UTC (13 years, 1 month ago) by matt
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (unified)

Use __CTASSERT

Revision 1.42 / (download) - annotate - [select for diffs], Sat Feb 19 01:12:39 2011 UTC (13 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.41: +59 -17 lines
Diff to previous 1.41 (unified)

Avoid stack memory disclosure by keeping track during filter validation time
of initialized memory. Idea taken from linux.

Revision 1.41 / (download) - annotate - [select for diffs], Sun Dec 5 22:40:56 2010 UTC (13 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (unified)

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) - annotate - [select for diffs], Sun Dec 5 09:42:20 2010 UTC (13 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.39: +7 -11 lines
Diff to previous 1.39 (unified)

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) - annotate - [select for diffs], Sun Dec 5 08:45:46 2010 UTC (13 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.38: +5 -4 lines
Diff to previous 1.38 (unified)

apply the smallest hack to allow this to build without warnings again.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 5 02:40:40 2010 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.37: +44 -13 lines
Diff to previous 1.37 (unified)

make bpf_validate available in userland.

Revision 1.37 / (download) - annotate - [select for diffs], Sun Dec 5 00:34:21 2010 UTC (13 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.36: +18 -17 lines
Diff to previous 1.36 (unified)

constify

Revision 1.34.10.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:53 2010 UTC (13 years, 7 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34.10.1: +3 -3 lines
Diff to previous 1.34.10.1 (unified) to branchpoint 1.34 (unified) next main 1.35 (unified)

sync with head.

Revision 1.32.2.2 / (download) - annotate - [select for diffs], Sun Jun 13 17:51:11 2010 UTC (13 years, 9 months ago) by riz
Branch: netbsd-4
Changes since 1.32.2.1: +3 -3 lines
Diff to previous 1.32.2.1 (unified) to branchpoint 1.32 (unified) next main 1.33 (unified)

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) - annotate - [select for diffs], Sun May 30 05:18:01 2010 UTC (13 years, 10 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified)

sync with head

Revision 1.35.4.1 / (download) - annotate - [select for diffs], Thu May 20 05:13:13 2010 UTC (13 years, 10 months ago) by snj
Branch: 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
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified)

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) - annotate - [select for diffs], Fri Apr 30 14:44:18 2010 UTC (13 years, 11 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified) next main 1.36 (unified)

Sync with HEAD.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Apr 21 16:35:09 2010 UTC (13 years, 11 months ago) by drochner
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1
Changes since 1.35: +3 -3 lines
Diff to previous 1.35 (unified)

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) - annotate - [select for diffs], Mon May 4 08:14:14 2009 UTC (14 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (unified)

sync with head.

Revision 1.34.16.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:41 2008 UTC (15 years, 5 months ago) by haad
Branch: haad-dm
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (unified) next main 1.35 (unified)

Sync with HEAD.

Revision 1.34.6.1 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:55 2008 UTC (15 years, 6 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (unified) next main 1.35 (unified)

Sync with HEAD.

Revision 1.34.12.1 / (download) - annotate - [select for diffs], Thu Sep 18 04:36:59 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (unified) next main 1.35 (unified)

Sync with wrstuden-revivesa-base-2.

Revision 1.35 / (download) - annotate - [select for diffs], Wed Aug 20 13:01:54 2008 UTC (15 years, 7 months ago) by joerg
Branch: 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
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (unified)

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) - annotate - [select for diffs], Tue Jun 3 20:47:41 2008 UTC (15 years, 9 months ago) by skrll
Branch: wrstuden-fixsa
Changes since 1.32: +7 -6 lines
Diff to previous 1.32 (unified) next main 1.33 (unified)

Sync with netbsd-4.

Revision 1.33.26.1 / (download) - annotate - [select for diffs], Mon Feb 18 21:07:01 2008 UTC (16 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.33: +7 -6 lines
Diff to previous 1.33 (unified) next main 1.34 (unified)

Sync with HEAD.

Revision 1.32.2.1 / (download) - annotate - [select for diffs], Sun Feb 3 00:28:12 2008 UTC (16 years, 1 month ago) by riz
Branch: netbsd-4
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base
Changes since 1.32: +7 -6 lines
Diff to previous 1.32 (unified)

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) - annotate - [select for diffs], Mon Jan 21 09:46:59 2008 UTC (16 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.3: +7 -6 lines
Diff to previous 1.21.4.3 (unified) to branchpoint 1.21 (unified) next main 1.22 (unified)

sync with head

Revision 1.33.20.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:57:07 2008 UTC (16 years, 2 months ago) by matt
Branch: matt-armv6
Changes since 1.33: +7 -6 lines
Diff to previous 1.33 (unified) next main 1.34 (unified)

sync with HEAD

Revision 1.33.32.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:57:00 2008 UTC (16 years, 2 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.33: +7 -6 lines
Diff to previous 1.33 (unified) next main 1.34 (unified)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Wed Jan 2 15:58:01 2008 UTC (16 years, 2 months ago) by christos
Branch: 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
Changes since 1.33: +7 -6 lines
Diff to previous 1.33 (unified)

PR/37663: Guy Harris: bpf_validate rejects valid programs that use the multiply instruction

Revision 1.21.4.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:32 2007 UTC (17 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.2: +5 -20 lines
Diff to previous 1.21.4.2 (unified) to branchpoint 1.21 (unified)

sync with head.

Revision 1.31.8.2 / (download) - annotate - [select for diffs], Thu Feb 1 08:48:43 2007 UTC (17 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.31.8.1: +5 -20 lines
Diff to previous 1.31.8.1 (unified) to branchpoint 1.31 (unified) next main 1.32 (unified)

Sync with head.

Revision 1.33 / (download) - annotate - [select for diffs], Sat Jan 27 07:16:01 2007 UTC (17 years, 2 months ago) by cbiere
Branch: 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
Changes since 1.32: +5 -20 lines
Diff to previous 1.32 (unified)

Use be16dec() and be32dec() instead of reimplementing them.

Revision 1.21.4.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:20 2006 UTC (17 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21.4.1: +8 -12 lines
Diff to previous 1.21.4.1 (unified) to branchpoint 1.21 (unified)

sync with head.

Revision 1.31.8.1 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:29 2006 UTC (17 years, 4 months ago) by ad
Branch: newlock2
Changes since 1.31: +8 -12 lines
Diff to previous 1.31 (unified)

Sync with head.

Revision 1.21.12.1 / (download) - annotate - [select for diffs], Mon Oct 23 17:48:12 2006 UTC (17 years, 5 months ago) by ghen
Branch: netbsd-3-0
CVS Tags: netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE
Changes since 1.21: +8 -10 lines
Diff to previous 1.21 (unified) next main 1.22 (unified)

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) - annotate - [select for diffs], Mon Oct 23 17:48:04 2006 UTC (17 years, 5 months ago) by ghen
Branch: netbsd-3
CVS Tags: netbsd-3-1-RELEASE, netbsd-3-1-1-RELEASE, netbsd-3-1
Changes since 1.21: +8 -10 lines
Diff to previous 1.21 (unified) next main 1.22 (unified)

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) - annotate - [select for diffs], Sun Oct 22 06:07:24 2006 UTC (17 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.31: +8 -12 lines
Diff to previous 1.31 (unified) next main 1.32 (unified)

sync with head

Revision 1.32 / (download) - annotate - [select for diffs], Wed Oct 4 20:47:43 2006 UTC (17 years, 5 months ago) by oster
Branch: 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
Changes since 1.31: +8 -12 lines
Diff to previous 1.31 (unified)

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) - annotate - [select for diffs], Sat Sep 9 02:58:06 2006 UTC (17 years, 6 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.28: +7 -5 lines
Diff to previous 1.28 (unified) next main 1.29 (unified)

sync with head

Revision 1.21.4.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:10:26 2006 UTC (17 years, 9 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.21: +127 -71 lines
Diff to previous 1.21 (unified)

sync with head.

Revision 1.28.6.2 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:37 2006 UTC (17 years, 10 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.28.6.1: +5 -5 lines
Diff to previous 1.28.6.1 (unified) next main 1.29 (unified)

Sync with head.

Revision 1.30.6.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:43 2006 UTC (17 years, 10 months ago) by tron
Branch: peter-altq
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (unified) next main 1.31 (unified)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.30.2.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:56 2006 UTC (17 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (unified) next main 1.31 (unified)

sync with head.

Revision 1.31 / (download) - annotate - [select for diffs], Sun May 14 05:30:31 2006 UTC (17 years, 10 months ago) by christos
Branch: 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
Changes since 1.30: +5 -5 lines
Diff to previous 1.30 (unified)

XXX: GCC uninitialized.

Revision 1.28.6.1 / (download) - annotate - [select for diffs], Sat Apr 22 11:40:06 2006 UTC (17 years, 11 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.28: +4 -2 lines
Diff to previous 1.28 (unified)

Sync with head.

Revision 1.28.2.2 / (download) - annotate - [select for diffs], Wed Mar 1 09:28:47 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.28.2.1: +3 -2 lines
Diff to previous 1.28.2.1 (unified) next main 1.29 (unified)

sync with head.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Feb 27 11:42:58 2006 UTC (18 years, 1 month ago) by drochner
Branch: 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
Changes since 1.29: +3 -2 lines
Diff to previous 1.29 (unified)

fix bpf_validate():
a missing "break" caused any bpf filter containing
a division to be rejected

Revision 1.28.2.1 / (download) - annotate - [select for diffs], Sat Feb 18 15:39:23 2006 UTC (18 years, 1 month ago) by yamt
Branch: yamt-uio_vmspace
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (unified)

sync with head.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Feb 7 20:10:48 2006 UTC (18 years, 1 month ago) by wiz
Branch: MAIN
Changes since 1.28: +3 -2 lines
Diff to previous 1.28 (unified)

Add a /* CONSTCOND */ for lint.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Dec 14 20:33:46 2005 UTC (18 years, 3 months ago) by rpaulo
Branch: MAIN
Branch point for: yamt-uio_vmspace, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.27: +5 -2 lines
Diff to previous 1.27 (unified)

Fix previous commit: ABS, IND and MSH are valid codes.

Revision 1.27 / (download) - annotate - [select for diffs], Tue Dec 13 23:53:49 2005 UTC (18 years, 3 months ago) by rpaulo
Branch: MAIN
Changes since 1.26: +2 -22 lines
Diff to previous 1.26 (unified)

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) - annotate - [select for diffs], Sun Dec 11 10:29:19 2005 UTC (18 years, 3 months ago) by christos
Branch: ktrace-lwp
Changes since 1.19.16.4: +139 -68 lines
Diff to previous 1.19.16.4 (unified) to branchpoint 1.19 (unified) next main 1.20 (unified)

Sync with head.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 5 22:38:40 2005 UTC (18 years, 3 months ago) by rpaulo
Branch: MAIN
CVS Tags: ktrace-lwp-base
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (unified)

Oops, the previous revision had a wrong pre-processor #if clause.

Revision 1.25 / (download) - annotate - [select for diffs], Mon Dec 5 21:46:00 2005 UTC (18 years, 3 months ago) by rpaulo
Branch: MAIN
Changes since 1.24: +12 -2 lines
Diff to previous 1.24 (unified)

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) - annotate - [select for diffs], Wed Nov 30 23:14:38 2005 UTC (18 years, 4 months ago) by rpaulo
Branch: MAIN
Changes since 1.23: +103 -35 lines
Diff to previous 1.23 (unified)

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) - annotate - [select for diffs], Wed Nov 30 22:40:59 2005 UTC (18 years, 4 months ago) by rpaulo
Branch: MAIN
Changes since 1.22: +14 -14 lines
Diff to previous 1.22 (unified)

More KNF. C99 uintXX_t types.

Revision 1.22 / (download) - annotate - [select for diffs], Wed Nov 30 12:52:23 2005 UTC (18 years, 4 months ago) by rpaulo
Branch: MAIN
Changes since 1.21: +21 -28 lines
Diff to previous 1.21 (unified)

KNF. ANSYfy. de-P().

Revision 1.20.8.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:31 2005 UTC (18 years, 11 months ago) by kent
Branch: kent-audio2
Changes since 1.20: +18 -18 lines
Diff to previous 1.20 (unified) next main 1.21 (unified)

sync with -current

Revision 1.20.10.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:31 2005 UTC (19 years ago) by yamt
Branch: yamt-km
Changes since 1.20: +18 -18 lines
Diff to previous 1.20 (unified) next main 1.21 (unified)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.19.16.4 / (download) - annotate - [select for diffs], Fri Mar 4 16:52:56 2005 UTC (19 years ago) by skrll
Branch: ktrace-lwp
Changes since 1.19.16.3: +18 -18 lines
Diff to previous 1.19.16.3 (unified) to branchpoint 1.19 (unified)

Sync with HEAD.

Hi Perry!

Revision 1.21 / (download) - annotate - [select for diffs], Sat Feb 26 22:45:09 2005 UTC (19 years, 1 month ago) by perry
Branch: 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
Changes since 1.20: +18 -18 lines
Diff to previous 1.20 (unified)

nuke trailing whitespace

Revision 1.19.16.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:36:35 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.19.16.2: +2 -2 lines
Diff to previous 1.19.16.2 (unified) to branchpoint 1.19 (unified)

Fix the sync with head I botched.

Revision 1.19.16.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:54:15 2004 UTC (19 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.19.16.1: +0 -0 lines
Diff to previous 1.19.16.1 (unified) to branchpoint 1.19 (unified)

Sync with HEAD.

Revision 1.19.16.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:11 2004 UTC (19 years, 7 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.19: +3 -7 lines
Diff to previous 1.19 (unified)

Sync with HEAD

Revision 1.20 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:47 2003 UTC (20 years, 7 months ago) by agc
Branch: 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
Changes since 1.19: +3 -7 lines
Diff to previous 1.19 (unified)

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) - annotate - [select for diffs], Thu Jan 10 20:01:58 2002 UTC (22 years, 2 months ago) by thorpej
Branch: kqueue
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (unified) next main 1.18 (unified)

Sync kqueue branch with -current.

Revision 1.17.2.2 / (download) - annotate - [select for diffs], Tue Jan 8 00:33:50 2002 UTC (22 years, 2 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.17.2.1: +2 -3 lines
Diff to previous 1.17.2.1 (unified) to branchpoint 1.17 (unified) next main 1.18 (unified)

Catch up to -current.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Nov 15 09:48:25 2001 UTC (22 years, 4 months ago) by lukem
Branch: 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
Changes since 1.18: +2 -3 lines
Diff to previous 1.18 (unified)

don't need <sys/types.h> when including <sys/param.h>

Revision 1.17.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:18 2001 UTC (22 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (unified)

Catch up to -current.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Nov 12 23:49:33 2001 UTC (22 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.17: +4 -1 lines
Diff to previous 1.17 (unified)

add RCSIDs

Revision 1.14.16.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:56 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.14: +29 -32 lines
Diff to previous 1.14 (unified) next main 1.15 (unified)

Update thorpej_scsipi to -current as of a month ago

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jul 22 05:11:27 2000 UTC (23 years, 8 months ago) by matt
Branch: 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
Changes since 1.16: +4 -2 lines
Diff to previous 1.16 (unified)

Add a missing include when using this in user space.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 12 04:21:22 2000 UTC (23 years, 11 months ago) by chs
Branch: 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
Changes since 1.15: +2 -7 lines
Diff to previous 1.15 (unified)

remove sunos stuff.

Revision 1.15 / (download) - annotate - [select for diffs], Thu Mar 30 09:45:34 2000 UTC (24 years ago) by augustss
Branch: MAIN
Changes since 1.14: +25 -25 lines
Diff to previous 1.14 (unified)

Kill some more register declarations.

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:10:06 1998 UTC (26 years, 1 month ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, lite-1, date-03-may-96
Changes since 1.1.1.1: +26 -27 lines
Diff to previous 1.1.1.1 (unified)

Import 4.4BSD-Lite for reference

Revision 1.13.2.1 / (download) - annotate - [select for diffs], Tue Oct 14 10:28:58 1997 UTC (26 years, 5 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.13: +14 -5 lines
Diff to previous 1.13 (unified) next main 1.14 (unified)

Update marc-pcmcia branch from trunk.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 9 18:20:04 1997 UTC (26 years, 5 months ago) by christos
Branch: 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
Changes since 1.13: +14 -5 lines
Diff to previous 1.13 (unified)

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) - annotate - [select for diffs], Mon Jul 7 18:18:28 1997 UTC (26 years, 8 months ago) by phil
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, marc-pcmcia-bp
Branch point for: marc-pcmcia
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (unified)

Provide better filter validation.  PR 3366.

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 13 22:00:00 1996 UTC (28 years, 1 month ago) by christos
Branch: 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
Changes since 1.11: +5 -6 lines
Diff to previous 1.11 (unified)

Net prototypes

Revision 1.11 / (download) - annotate - [select for diffs], Sat Apr 22 13:26:39 1995 UTC (28 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.10: +9 -8 lines
Diff to previous 1.10 (unified)

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) - annotate - [select for diffs], Sat Apr 1 03:04:49 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.9: +15 -29 lines
Diff to previous 1.9 (unified)

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) - annotate - [select for diffs], Tue Mar 28 20:01:10 1995 UTC (29 years ago) by jtc
Branch: MAIN
Changes since 1.8: +11 -11 lines
Diff to previous 1.8 (unified)

KERNEL -> _KERNEL

Revision 1.8 / (download) - annotate - [select for diffs], Mon Mar 6 10:58:25 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7 (unified)

Undo an #include ordering change.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Mar 6 10:56:08 1995 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.6: +14 -24 lines
Diff to previous 1.6 (unified)

Make this more type-safe for the Alpha.  From the libpcap 0.0 distribution.
(Needs more work.)

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jun 29 06:35:56 1994 UTC (29 years, 9 months ago) by cgd
Branch: 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
Changes since 1.5: +3 -2 lines
Diff to previous 1.5 (unified)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.5 / (download) - annotate - [select for diffs], Fri May 13 06:02:22 1994 UTC (29 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +7 -8 lines
Diff to previous 1.4 (unified)

Update to 4.4-Lite networking code, with a few local changes.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Dec 18 00:40:51 1993 UTC (30 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (unified)

Canonicalize all #includes.

Revision 1.3 / (download) - annotate - [select for diffs], Thu May 20 03:05:53 1993 UTC (30 years, 10 months ago) by cgd
Branch: 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
Changes since 1.2: +2 -8 lines
Diff to previous 1.2 (unified)

add rcs ids to everything, and clean up headers

Revision 1.2 / (download) - annotate - [select for diffs], Thu Mar 25 00:27:53 1993 UTC (31 years ago) by cgd
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.1: +27 -24 lines
Diff to previous 1.1 (unified)

added BPF support, as provided by David Greenman (davidg@implode.rain.com)

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (unified)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's 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.




CVSweb <webmaster@jp.NetBSD.org>