CVS commit: src/sys/dist/pf/net

2021-03-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Mar 10 22:18:17 UTC 2021

Modified Files:
src/sys/dist/pf/net: if_pfsync.c

Log Message:
remove htons, it is pointless (thanks joerg@)


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dist/pf/net/if_pfsync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2021-03-10 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Wed Mar 10 15:21:11 UTC 2021

Modified Files:
src/sys/dist/pf/net: if_pfsync.c

Log Message:
remove args from ip_randomid() (John D. Baker). When does this file get built?


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dist/pf/net/if_pfsync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2020-12-03 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Fri Dec  4 00:41:10 UTC 2020

Modified Files:
src/sys/dist/pf/net: pf_table.c

Log Message:
In pfr_fix_anchor(), change an overlapping bcopy() call to a memmove()
call.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/dist/pf/net/pf_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2020-01-28 Thread Jason R Thorpe
Module Name:src
Committed By:   thorpej
Date:   Wed Jan 29 05:52:27 UTC 2020

Modified Files:
src/sys/dist/pf/net: if_pflog.c if_pfsync.c

Log Message:
Adopt .


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dist/pf/net/if_pflog.c
cvs rdiff -u -r1.19 -r1.20 src/sys/dist/pf/net/if_pfsync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2018-06-26 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Jun 27 03:31:44 UTC 2018

Modified Files:
src/sys/dist/pf/net: if_pfsync.c

Log Message:
 Add missing BPF_D_OUT. Reported by John D. Baker.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dist/pf/net/if_pfsync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2018-02-19 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Feb 19 23:03:00 UTC 2018

Modified Files:
src/sys/dist/pf/net: pf.c

Log Message:
It is normal for socket credentials to be missing for incoming sockets,
so don't warn.


To generate a diff of this commit:
cvs rdiff -u -r1.79 -r1.80 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2018-02-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Feb 18 21:51:28 UTC 2018

Modified Files:
src/sys/dist/pf/net: pf.c

Log Message:
PR/53036: Alexander Nasonov: 'block user' in pf's ruleset panics 8.0_BETA
Check for NULL.


To generate a diff of this commit:
cvs rdiff -u -r1.78 -r1.79 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2018-02-14 Thread Maya Rashish
Module Name:src
Committed By:   maya
Date:   Wed Feb 14 16:07:55 UTC 2018

Modified Files:
src/sys/dist/pf/net: pf_table.c

Log Message:
Don't invoke UB.

Heads up by John D. Baker.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dist/pf/net/pf_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2018-02-09 Thread Maxime Villard
Module Name:src
Committed By:   maxv
Date:   Fri Feb  9 21:25:04 UTC 2018

Modified Files:
src/sys/dist/pf/net: pf.c

Log Message:
Oh, what is this. Fix a remotely-triggerable integer overflow: the way we
define TCPOLEN_SACK makes it unsigned, and the comparison in the while()
is unsigned too. That's not the expected behavior, the original code
wanted a signed comparison.

It's pretty easy to make 'hlen' go negative and trigger a buffer overflow.

This bug was reported 8 years ago by Lucio Albornoz in PR/44059.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2017-10-31 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Tue Oct 31 15:00:03 UTC 2017

Modified Files:
src/sys/dist/pf/net: pf.c

Log Message:
PR/52682: David Binderman: Fix wrong assignment (in the !__NetBSD__ code)


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2017-10-14 Thread Paul Goyette
Module Name:src
Committed By:   pgoyette
Date:   Sun Oct 15 04:30:05 UTC 2017

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
Defer initialization of pf_status.host_id

The call to cprng_fast32() requires that per-cpu data has been initialized
by corng_fast_init(), which doesn't get called until after the first part
of auto-configuration is done, long after pfattach() calls cprng_fast32().

Fixed PR kern/52620

XXX This needs pull-up to the -8 branch.


To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2017-01-16 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Jan 16 15:46:19 UTC 2017

Modified Files:
src/sys/dist/pf/net: pf_osfp.c

Log Message:
use in6_print


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dist/pf/net/pf_osfp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2015-04-13 Thread Taylor R Campbell
Module Name:src
Committed By:   riastradh
Date:   Mon Apr 13 16:35:33 UTC 2015

Modified Files:
src/sys/dist/pf/net: pf_norm.c

Log Message:
 not needed for pf_norm.c.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/dist/pf/net/pf_norm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2014-07-24 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Fri Jul 25 04:09:58 UTC 2014

Modified Files:
src/sys/dist/pf/net: pf.c

Log Message:
Unbreak the build of pf


To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/dist/pf/net/pf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2014-05-17 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sat May 17 21:00:33 UTC 2014

Modified Files:
src/sys/dist/pf/net: pf_if.c

Log Message:
Fix previous.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/dist/pf/net/pf_if.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2014-03-06 Thread NONAKA Kimihiro
Module Name:src
Committed By:   nonaka
Date:   Thu Mar  6 15:21:58 UTC 2014

Modified Files:
src/sys/dist/pf/net: if_pfsync.c

Log Message:
remove unused variable to avoid warning from gcc 4.8.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dist/pf/net/if_pfsync.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2013-10-20 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 20 21:05:47 UTC 2013

Modified Files:
src/sys/dist/pf/net: pf.c pf_norm.c pfvar.h

Log Message:
fix compiler warnings


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/dist/pf/net/pf.c
cvs rdiff -u -r1.26 -r1.27 src/sys/dist/pf/net/pf_norm.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dist/pf/net/pfvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2013-07-01 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Mon Jul  1 08:32:48 UTC 2013

Modified Files:
src/sys/dist/pf/net: pf_if.c pf_ioctl.c

Log Message:
PFIL_HOOKS is dead.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dist/pf/net/pf_if.c
cvs rdiff -u -r1.47 -r1.48 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2013-06-30 Thread Nicolas Joly
Module Name:src
Committed By:   njoly
Date:   Sun Jun 30 17:23:52 UTC 2013

Modified Files:
src/sys/dist/pf/net: pf_if.c

Log Message:
Fix pf module build. Adjust pfil_remove_hook 3rd arguments.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dist/pf/net/pf_if.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2013-06-30 Thread Mindaugas Rasiukevicius
Module Name:src
Committed By:   rmind
Date:   Sun Jun 30 14:58:49 UTC 2013

Modified Files:
src/sys/dist/pf/net: pf_if.c pf_ioctl.c

Log Message:
Update pf to pfil(9) changes.  Missed in previous commit.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dist/pf/net/pf_if.c
cvs rdiff -u -r1.46 -r1.47 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2011-08-30 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Aug 30 19:05:12 UTC 2011

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
fix -Wshadow warnings when ALTQ is enabled


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2011-06-30 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Fri Jul  1 02:33:23 UTC 2011

Modified Files:
src/sys/dist/pf/net: pf_norm.c

Log Message:
fix an uninitialised variable problem.  large-ish function, but i
couldn't see how GCC 4.5 isn't wrong about this one.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dist/pf/net/pf_norm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2011-05-18 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Wed May 18 12:54:15 UTC 2011

Modified Files:
src/sys/dist/pf/net: pf_osfp.c

Log Message:
remove unused expression


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/dist/pf/net/pf_osfp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2011-05-11 Thread Hauke Fath
Module Name:src
Committed By:   hauke
Date:   Wed May 11 12:22:34 UTC 2011

Modified Files:
src/sys/dist/pf/net: pf_table.c

Log Message:
Commit the patch from
,
fixing a "panic: pool 'pfrktable' is IPL_NONE, but called from
interrupt context" that occurred on NetBSD/sparc.


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dist/pf/net/pf_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2011-01-19 Thread Matthias Drochner
Module Name:src
Committed By:   drochner
Date:   Wed Jan 19 19:58:02 UTC 2011

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
make sure the "overload_tbl" member of "struct pf_rule" copied in
from userland is initialized (it is used by the kernel only)
fixes crash or data injection (CVE-2010-3830), usually by root user only
OpenBSD has rewritten the code to start with a zero'd struct and fills
in needed parts only - to be considered in case a newer pf version
is imported.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2010-04-13 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Tue Apr 13 13:08:16 UTC 2010

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
Do not unload pf when enabled, not even manually.


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2010-04-13 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Tue Apr 13 11:53:18 UTC 2010

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
change module class to driver.


To generate a diff of this commit:
cvs rdiff -u -r1.39 -r1.40 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2010-04-12 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Tue Apr 13 01:02:43 UTC 2010

Modified Files:
src/sys/dist/pf/net: pf_ioctl.c

Log Message:
Do not auto unload pf if it's enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 src/sys/dist/pf/net/pf_ioctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/sys/dist/pf/net

2010-04-12 Thread Adam Hoka
Module Name:src
Committed By:   ahoka
Date:   Mon Apr 12 13:57:38 UTC 2010

Modified Files:
src/sys/dist/pf/net: if_pflog.c pf.c pf_if.c pf_ioctl.c pf_norm.c
pf_osfp.c pf_table.c pfvar.h

Log Message:
- Make the pf and pflog driver able to detach.
- Add code for module support.

Original patch from Jared McNeill


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dist/pf/net/if_pflog.c \
src/sys/dist/pf/net/pfvar.h
cvs rdiff -u -r1.62 -r1.63 src/sys/dist/pf/net/pf.c
cvs rdiff -u -r1.20 -r1.21 src/sys/dist/pf/net/pf_if.c
cvs rdiff -u -r1.37 -r1.38 src/sys/dist/pf/net/pf_ioctl.c
cvs rdiff -u -r1.21 -r1.22 src/sys/dist/pf/net/pf_norm.c
cvs rdiff -u -r1.9 -r1.10 src/sys/dist/pf/net/pf_osfp.c
cvs rdiff -u -r1.15 -r1.16 src/sys/dist/pf/net/pf_table.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.