The NetBSD Project

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

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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.42 / (download) - annotate - [select for diffs], Tue Aug 16 04:35:57 2022 UTC (19 months, 4 weeks ago) by knakahara
Branch: MAIN
CVS Tags: thorpej-ifq-base, thorpej-ifq, thorpej-altq-separation-base, thorpej-altq-separation, netbsd-10-base, 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, bouyer-sunxi-drm-base, bouyer-sunxi-drm, HEAD
Changes since 1.41: +7 -2 lines
Diff to previous 1.41 (colored)

micro optimaize for pfil_run_hooks(), ok'ed by ozaki-r@n.o and ryo@n.o.

That can improve IPv4 forwarding throughput 5% - 10%.

Revision 1.41 / (download) - annotate - [select for diffs], Tue May 17 10:28:08 2022 UTC (22 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.40: +6 -2 lines
Diff to previous 1.40 (colored)

pfil(9): Assert pfil lists are not run in interrupt context.

All the paths leading to this should have been dispensed with by now.
The network stack runs in thread or softint context these days; hard
interrupt context is used only to put packets on queues deferred to
softint.

Revision 1.40 / (download) - annotate - [select for diffs], Tue May 17 10:27:37 2022 UTC (22 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.39: +11 -2 lines
Diff to previous 1.39 (colored)

pfil(9): Assert sleepable when editing pfil lists.

These might sleep to wait for users to drain.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jun 22 16:39:56 2020 UTC (3 years, 9 months ago) by maxv
Branch: MAIN
CVS Tags: 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, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.38: +6 -2 lines
Diff to previous 1.38 (colored)

pfil_psz gets dropped by the compiler because it is unused if !NET_MPSAFE,
so add an #ifdef around it, not to leak memory. Found by kLSan.

Revision 1.38 / (download) - annotate - [select for diffs], Mon Apr 27 23:35:40 2020 UTC (3 years, 11 months ago) by nat
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

Remove inappropriate place for __predict_false.

Ok mrg@ maya@.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Apr 27 23:05:31 2020 UTC (3 years, 11 months ago) by nat
Branch: MAIN
Changes since 1.36: +7 -2 lines
Diff to previous 1.36 (colored)

Skip pfil_run_hooks if no packet filter configured in kernel.

Revision 1.35.14.2 / (download) - annotate - [select for diffs], Mon Apr 27 07:27:35 2020 UTC (3 years, 11 months ago) by nat
Branch: phil-wifi
Changes since 1.35.14.1: +7 -2 lines
Diff to previous 1.35.14.1 (colored) to branchpoint 1.35 (colored) next main 1.36 (colored)

Skip pfil_run_hooks if no packet filter enabled in the kernel.

Revision 1.35.14.1 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:57 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.35: +6 -10 lines
Diff to previous 1.35 (colored)

Merge changes from current as of 20200406

Revision 1.35.20.1 / (download) - annotate - [select for diffs], Sat Feb 29 20:21:06 2020 UTC (4 years, 1 month ago) by ad
Branch: ad-namecache
Changes since 1.35: +6 -10 lines
Diff to previous 1.35 (colored) next main 1.36 (colored)

Sync with head.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Feb 1 02:54:31 2020 UTC (4 years, 2 months ago) by riastradh
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3
Changes since 1.35: +6 -10 lines
Diff to previous 1.35 (colored)

Fix wrong memory order and switch pfil to atomic_load/store_*.

Revision 1.27.40.2 / (download) - annotate - [select for diffs], Sun Dec 3 11:39:02 2017 UTC (6 years, 4 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.27.40.1: +225 -43 lines
Diff to previous 1.27.40.1 (colored) to branchpoint 1.27 (colored) next main 1.28 (colored)

update from HEAD

Revision 1.28.8.2 / (download) - annotate - [select for diffs], Mon Aug 28 17:53:11 2017 UTC (6 years, 7 months ago) by skrll
Branch: nick-nhusb
Changes since 1.28.8.1: +3 -3 lines
Diff to previous 1.28.8.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Sync with HEAD

Revision 1.31.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:54:05 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.31: +173 -47 lines
Diff to previous 1.31 (colored) next main 1.32 (colored)

Sync with HEAD

Revision 1.28.12.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:57:50 2017 UTC (7 years ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.28.12.1: +182 -52 lines
Diff to previous 1.28.12.1 (colored) to branchpoint 1.28 (colored) next main 1.29 (colored)

Sync with HEAD

Revision 1.35 / (download) - annotate - [select for diffs], Fri Mar 10 07:35:58 2017 UTC (7 years, 1 month ago) by ryo
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, phil-wifi-20191119, phil-wifi-20190609, pgoyette-localcount-20170426, pgoyette-localcount-20170320, 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, 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, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, isaki-audio2-base, isaki-audio2, bouyer-socketcan-base1, ad-namecache-base2, ad-namecache-base1, ad-namecache-base
Branch point for: phil-wifi, ad-namecache
Changes since 1.34: +3 -3 lines
Diff to previous 1.34 (colored)

need to membar_producer() *before* switching.

pointed out by riastradh@, thanks

Revision 1.28.8.1 / (download) - annotate - [select for diffs], Sun Feb 5 13:40:58 2017 UTC (7 years, 2 months ago) by skrll
Branch: nick-nhusb
Changes since 1.28: +227 -45 lines
Diff to previous 1.28 (colored)

Sync with HEAD

Revision 1.34 / (download) - annotate - [select for diffs], Mon Jan 23 02:32:54 2017 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20170204
Changes since 1.33: +14 -2 lines
Diff to previous 1.33 (colored)

Call pserialize_perform and psref_target_destroy only if NET_MPSAFE

They shouldn't be used with holding softnet_lock.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Jan 23 02:30:47 2017 UTC (7 years, 2 months ago) by ozaki-r
Branch: MAIN
Changes since 1.32: +8 -4 lines
Diff to previous 1.32 (colored)

Add curlwp_bind

It is necessary for example when we use tun(4). Without it the following
panic occurs:

  panic: kernel diagnostic assertion "(kpreempt_disabled() || cpu_softintr_p() || ISSET(curlwp->l_pflag, LP_BOUND))" failed: file "/usr/src/sys/kern/subr_psref.c", line 291 passive references are CPU-local, but preemption is enabled and the caller is not in a softint or CPU-bound LWP
  Backtrace:
  vpanic()
  ch_voltag_convert_in()
  psref_release()
  pfil_run_arg.isra.0()
  if_initialize()
  if_attach()
  tun_clone_create()
  tunopen()
  cdev_open()
  spec_open()
  VOP_OPEN()
  vn_open()
  do_open()
  do_sys_openat()
  sys_open()
  syscall()

Revision 1.32 / (download) - annotate - [select for diffs], Mon Jan 16 09:28:40 2017 UTC (7 years, 2 months ago) by ryo
Branch: MAIN
Changes since 1.31: +157 -47 lines
Diff to previous 1.31 (colored)

Make pfil(9) MP-safe (applying psref(9))

Revision 1.31 / (download) - annotate - [select for diffs], Thu Jan 12 17:19:17 2017 UTC (7 years, 3 months ago) by ryo
Branch: MAIN
CVS Tags: bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.30: +11 -7 lines
Diff to previous 1.30 (colored)

* pfil_add_hook() no longer treats PFIL_IFADDR and PFIL_IFNET. delete them from pfil_flag_cases[].
* add/fix KASSERT
* fix comment

Revision 1.28.12.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:50 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.28: +74 -22 lines
Diff to previous 1.28 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 4 13:03:41 2017 UTC (7 years, 3 months ago) by ryo
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107
Changes since 1.29: +7 -5 lines
Diff to previous 1.29 (colored)

Not to use ph_inout[2]. dir (= PFIL_IN or PFIL_OUT) is 1 or 2, not 0 or 1.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Dec 26 23:21:49 2016 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.28: +76 -26 lines
Diff to previous 1.28 (colored)

pfil(9) improvements to handle address changes:

Add:
  PFIL_IFADDR     call on interface reconfig (mbuf is ioctl #)
  PFIL_IFNET      call on interface attach/detach (mbuf is PFIL_IFNET_*)

from rmind@

Revision 1.27.40.1 / (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.27: +183 -174 lines
Diff to previous 1.27 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.27.30.1 / (download) - annotate - [select for diffs], Thu May 22 11:41:09 2014 UTC (9 years, 10 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.27: +183 -174 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

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.27.46.1 / (download) - annotate - [select for diffs], Wed Aug 28 23:59:36 2013 UTC (10 years, 7 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.27: +183 -174 lines
Diff to previous 1.27 (colored) next main 1.28 (colored)

sync with head

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jun 29 21:06:58 2013 UTC (10 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, 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, nick-nhusb-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, localcount-20160914
Branch point for: pgoyette-localcount, nick-nhusb
Changes since 1.27: +183 -174 lines
Diff to previous 1.27 (colored)

- Rewrite parts of pfil(9): use array to store hooks and thus be more cache
  friendly (there are only few hooks in the system).  Make the structures
  opaque and the interface more strict.
- Remove PFIL_HOOKS option by making pfil(9) mandatory.

Revision 1.24.74.1 / (download) - annotate - [select for diffs], Mon May 4 08:14:15 2009 UTC (14 years, 11 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.24: +8 -16 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head.

Revision 1.24.76.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:37:00 2008 UTC (15 years, 6 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.24.76.1: +8 -14 lines
Diff to previous 1.24.76.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.24.70.2 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:19 2008 UTC (15 years, 9 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.24.70.1: +6 -12 lines
Diff to previous 1.24.70.1 (colored) to branchpoint 1.24 (colored) next main 1.25 (colored)

Sync with HEAD.

Revision 1.25.2.1 / (download) - annotate - [select for diffs], Fri Jun 27 15:11:48 2008 UTC (15 years, 9 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.25: +8 -14 lines
Diff to previous 1.25 (colored) next main 1.26 (colored)

Sync with head.

Revision 1.24.76.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:58 2008 UTC (15 years, 9 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jun 23 03:13:12 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, 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, yamt-nfs-mp-base11, yamt-nfs-mp-base10, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, simonb-wapbl-nbase, simonb-wapbl-base, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base2, nick-hppapmap-base, nick-hppapmap, 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, netbsd-5-base, 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, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, 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, netbsd-5-1, 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, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-nb5-pq3-base, matt-nb5-pq3, 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-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-premerge-20101231, matt-mips64-base2, khorben-n900, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, 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, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2, agc-symver-base, agc-symver, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-pagecache, tls-maxphys, rmind-smpnet
Changes since 1.26: +5 -8 lines
Diff to previous 1.26 (colored)

Cosmetic: use LIST_FOREACH().  Join lines.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Jun 23 00:56:08 2008 UTC (15 years, 9 months ago) by dyoung
Branch: MAIN
Changes since 1.25: +5 -8 lines
Diff to previous 1.25 (colored)

Cosmetic: use TAILQ_FOREACH().  Join lines.

Revision 1.24.72.1 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:47 2008 UTC (15 years, 10 months ago) by yamt
Branch: yamt-pf42
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored) next main 1.25 (colored)

sync with head

Revision 1.24.70.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:23 2008 UTC (15 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

Sync with HEAD.

Revision 1.25 / (download) - annotate - [select for diffs], Thu May 29 14:51:27 2008 UTC (15 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: simonb-wapbl
Changes since 1.24: +2 -4 lines
Diff to previous 1.24 (colored)

remove clause #3 from my license where there are no other
copyright holders involved.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:51 2005 UTC (18 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pf42-baseX, yamt-pf42-base2, yamt-pf42-base, yamt-pdpolicy-base9, yamt-pdpolicy-base8, yamt-pdpolicy-base7, yamt-pdpolicy-base6, yamt-pdpolicy-base5, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, yamt-pdpolicy, yamt-nfs-mp-base2, yamt-nfs-mp-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, yamt-idlelwp, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, vmlocking, thorpej-atomic-base, thorpej-atomic, simonb-timecounters-base, simonb-timecounters, simonb-timcounters-final, rpaulo-netinet-merge-pcb-base, rpaulo-netinet-merge-pcb, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, reinoud-bufcleanup, post-newlock2-merge, peter-altq-base, peter-altq, nick-net80211-sync-base, nick-net80211-sync, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, newlock2-nbase, newlock2-base, newlock2, 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, netbsd-4, mjf-ufs-trans-base, mjf-ufs-trans, mjf-devfs-base, mjf-devfs, matt-nb4-arm-base, matt-nb4-arm, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup-nbase, hpcarm-cleanup-base, hpcarm-cleanup, gdamore-uart-base, gdamore-uart, elad-kernelauth-base, elad-kernelauth, cube-autoconf-base, cube-autoconf, chap-midi-nbase, chap-midi-base, chap-midi, bouyer-xeni386-nbase, bouyer-xeni386-merge1, bouyer-xeni386-base, bouyer-xeni386, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64, ad-socklock-base1, ad-audiomp-base, ad-audiomp, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: yamt-pf42, yamt-nfs-mp, wrstuden-revivesa, mjf-devfs2
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

merge ktrace-lwp.

Revision 1.20.16.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:54:19 2004 UTC (19 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.20: +50 -7 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

Sync with HEAD

Revision 1.23 / (download) - annotate - [select for diffs], Tue Jul 27 12:22:59 2004 UTC (19 years, 8 months ago) by yamt
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-lazymbuf, yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, thorpej-vnode-attr-base, thorpej-vnode-attr, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, 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-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, ktrace-lwp-base, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Changes since 1.22: +10 -11 lines
Diff to previous 1.22 (colored)

- rename PFIL_NEWIF to PFIL_IFNET, and handle interface detach events
  as well.
- use it for pf(4).

mostly from Peter Postma.  PR/26403.

Revision 1.22 / (download) - annotate - [select for diffs], Sun Jul 18 11:36:04 2004 UTC (19 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.21: +4 -4 lines
Diff to previous 1.21 (colored)

pfil_run_hooks: don't dereference 'mp' unless it's a pointer.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Jun 22 12:50:41 2004 UTC (19 years, 9 months ago) by itojun
Branch: MAIN
Changes since 1.20: +51 -7 lines
Diff to previous 1.20 (colored)

prepare PF-related hooks.  reviewed by matt, perry, christos

Revision 1.19.4.1 / (download) - annotate - [select for diffs], Thu Jan 10 20:02:19 2002 UTC (22 years, 3 months ago) by thorpej
Branch: kqueue
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Sync kqueue branch with -current.

Revision 1.19.2.1 / (download) - annotate - [select for diffs], Wed Nov 14 19:17:29 2001 UTC (22 years, 5 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored) next main 1.20 (colored)

Catch up to -current.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 12 23:49:46 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: newlock-base, newlock, 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, 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.19: +4 -1 lines
Diff to previous 1.19 (colored)

add RCSIDs

Revision 1.9.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:53 2001 UTC (23 years, 3 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.9.2.2: +5 -4 lines
Diff to previous 1.9.2.2 (colored) to branchpoint 1.9 (colored) next main 1.10 (colored)

Sync with HEAD

Revision 1.19 / (download) - annotate - [select for diffs], Thu Dec 28 21:40:59 2000 UTC (23 years, 3 months ago) by thorpej
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.18: +6 -5 lines
Diff to previous 1.18 (colored)

Back out the sledgehammer damage applied by wiz while I was out for
the holiday.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Dec 25 02:00:46 2000 UTC (23 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.17: +4 -5 lines
Diff to previous 1.17 (colored)

Back out previous change. It causes NAT to fail, and was CLEARLY
NOT TESTED before it was committed.

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 22 20:01:17 2000 UTC (23 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.16: +6 -5 lines
Diff to previous 1.16 (colored)

Slight adjustment to how pfil_head's are registered.  Instead of a
"key" and a "dlt", use a "type" (PFIL_TYPE_{AF,IFNET} for now) and
a val/ptr appropriate for that type.  This allows for more future
flexibility with the pfil_hook mechanism.

Revision 1.9.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:57 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.9.2.1: +120 -64 lines
Diff to previous 1.9.2.1 (colored) to branchpoint 1.9 (colored)

Sync with HEAD.

Revision 1.9.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:10:09 2000 UTC (23 years, 4 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.9: +48 -43 lines
Diff to previous 1.9 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.16 / (download) - annotate - [select for diffs], Sat Nov 11 00:52:36 2000 UTC (23 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.15: +120 -64 lines
Diff to previous 1.15 (colored)

Restructure the PFIL_HOOKS mechanism a bit:
- All packets are passed to PFIL_HOOKS as they come off the wire, i.e.
  fields in protocol headers in network order, etc.
- Allow for multiple hooks to be registered, using a "key" and a "dlt".
  The "dlt" is a BPF data link type, indicating what type of header is
  present.
- INET and INET6 register with key == AF_INET or AF_INET6, and
  dlt == DLT_RAW.
- PFIL_HOOKS now take an argument for the filter hook, and mbuf **,
  an ifnet *, and a direction (PFIL_IN or PFIL_OUT), thus making them
  less IP (really, IP Filter) centric.

Maintain compatibility with IP Filter by adding wrapper functions for
IP Filter.

Revision 1.15 / (download) - annotate - [select for diffs], Wed Feb 23 02:35:42 2000 UTC (24 years, 1 month ago) by mycroft
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.14: +10 -3 lines
Diff to previous 1.14 (colored)

For pfil_add_hook(..., PFIL_ALL, ...), if we fail to add the output filter,
make sure to remove the input filter.

Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 22 11:30:22 2000 UTC (24 years, 1 month ago) by darrenr
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

only call pfil_list_add with one of PFIL_IN or PFIL_OUT defined

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 22 10:45:47 2000 UTC (24 years, 1 month ago) by darrenr
Branch: MAIN
Changes since 1.12: +21 -19 lines
Diff to previous 1.12 (colored)

return int from pfil_add_hook and pfil_remove_hook to indicate failure
or success, rather than panic'ing

Revision 1.12 / (download) - annotate - [select for diffs], Tue Feb 22 10:18:49 2000 UTC (24 years, 1 month ago) by darrenr
Branch: MAIN
Changes since 1.11: +6 -2 lines
Diff to previous 1.11 (colored)

fix from Mike Pelley to add filters in the reverse order for output
compared with input.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Feb 20 00:56:33 2000 UTC (24 years, 1 month ago) by darrenr
Branch: MAIN
Changes since 1.10: +7 -12 lines
Diff to previous 1.10 (colored)

pass "struct pfil_head *" to pfil_add_hook and pfil_remove hook rather
than "struct protosw *".

Revision 1.10 / (download) - annotate - [select for diffs], Thu Feb 17 10:59:32 2000 UTC (24 years, 2 months ago) by darrenr
Branch: MAIN
Changes since 1.9: +30 -33 lines
Diff to previous 1.9 (colored)

Change the use of pfil hooks.  There is no longer a single list of all
pfil information, instead, struct protosw now contains a structure
which caontains list heads, etc.  The per-protosw pfil struct is passed
to pfil_hook_get(), along with an in/out flag to get the head of the
relevant filter list.  This has been done for only IPv4 and IPv6, at
present, with these patches only enabling filtering for IPPROTO_IP and
IPPROTO_IPV6, although it is possible to have tcp/udp, etc, dedicated
filters now also.  The ipfilter code has been updated to only filter
IPv4 packets - next major release of ipfilter is required for ipv6.

Revision 1.8.2.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:36:11 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.8: +11 -9 lines
Diff to previous 1.8 (colored) next main 1.9 (colored)

Pull up to last week's -current.

Revision 1.7.12.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:35:13 1999 UTC (24 years, 4 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.7.8.2 / (download) - annotate - [select for diffs], Sun Oct 10 20:30:21 1999 UTC (24 years, 6 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003, netbsd-1-4-PATCH002
Changes since 1.7.8.1: +11 -9 lines
Diff to previous 1.7.8.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored)

pull up rev 1.9 from trunk (requested by mrg):
  Fix panic()s in pfil_list_remove() when running "ipf -D" a second
  time with a DIAGNOSTIC kernel.

Revision 1.9 / (download) - annotate - [select for diffs], Sun Oct 10 09:07:32 1999 UTC (24 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.8: +11 -9 lines
Diff to previous 1.8 (colored)

pass a pointer to the list, rather than passing a copy of it, when removing
functions from the pfil hook lists.  this fixes the "missing function" problem.
also, re-add support for WAITOK that was lost several deltas ago.

Revision 1.7.8.1 / (download) - annotate - [select for diffs], Thu Jun 24 16:10:08 1999 UTC (24 years, 9 months ago) by perry
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH001
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

pullup 1.7->1.8 (mrg)

Revision 1.7.10.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:27:37 1999 UTC (24 years, 9 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) next main 1.8 (colored)

Sync w/ -current.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 18 05:59:20 1999 UTC (24 years, 10 months ago) by mrg
Branch: MAIN
CVS Tags: chs-ubc2-base
Branch point for: wrstuden-devbsize
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

call pfil_list_add with the right flag, to ensure it goes into the right list.
from mike@pelley.com in PR#7802.

Revision 1.6.2.1 / (download) - annotate - [select for diffs], Thu Jul 23 00:00:24 1998 UTC (25 years, 8 months ago) by mellon
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003
Changes since 1.6: +27 -18 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Pull up 1.7 (veego)

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 19 15:45:30 1998 UTC (26 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, eeh-paddr_t-base, eeh-paddr_t, chs-ubc-base, chs-ubc
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.6: +27 -18 lines
Diff to previous 1.6 (colored)

convert pfil(9) in and out lists from <sys/queue.h> LISTs to TAILQs, and
change pfil_add_hook to put output filters at the tail of the queue,
while continuing to place input filters at the head of the queue.  update
the two users of these functions, and document these changes.

fixes PR#4593.

Revision 1.5.10.1 / (download) - annotate - [select for diffs], Tue Oct 14 10:29:16 1997 UTC (26 years, 6 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.5: +2 -6 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Oct 10 05:40:24 1997 UTC (26 years, 6 months ago) by mrg
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, marc-pcmcia-base
Branch point for: netbsd-1-3
Changes since 1.5: +2 -6 lines
Diff to previous 1.5 (colored)

remove advertising clause from all my licenses.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Dec 20 08:40:46 1996 UTC (27 years, 3 months ago) by mrg
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, thorpej-setroot, mrg-vm-swap, marc-pcmcia-bp, is-newarp-before-merge, is-newarp-base, is-newarp, bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.4: +1 -11 lines
Diff to previous 1.4 (colored)

remove pfil_bad.

Revision 1.4 / (download) - annotate - [select for diffs], Sun Oct 13 02:11:08 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

backout previous kprintf change

Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 10 22:59:53 1996 UTC (27 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

- printf -> kprintf, sprintf -> ksprintf

Revision 1.2 / (download) - annotate - [select for diffs], Sat Oct 5 23:41:53 1996 UTC (27 years, 6 months ago) by mrg
Branch: MAIN
Changes since 1.1: +3 -2 lines
Diff to previous 1.1 (colored)

minor copyright update.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Sep 14 14:40:20 1996 UTC (27 years, 7 months ago) by mrg
Branch: MAIN

move the packet filter hooks in to a saner location.  while i'm here, rename
PACKET_FILTER to PFIL_HOOKS.

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>