freebsd-dev/sys
Craig Rodrigues f687a7c2dd Set the current vnet inside the ioctl handler for ipfilter.
Without this fix, the vnet was NULL and would crash.
This fix is similar to what was done inside the ioctl handler for PF.

Tested by:
   (1) Boot a kernel with "options VIMAGE" enabled
   (2) Type:

   echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" > /etc/ipnat.rules ; service ipnat onerestart

PR: 176992
Differential Revision: https://reviews.freebsd.org/D1191
Reviewed by: cy
2014-11-20 08:11:54 +00:00
..
amd64 Enable the use of VM_PHYSSEG_SPARSE on amd64 and i386, making it the default 2014-11-15 23:40:44 +00:00
arm Moves all the duplicate code to a single function. 2014-11-18 17:22:08 +00:00
boot MFi386: r274398 2014-11-15 03:34:34 +00:00
bsm
cam Fix typo. 2014-11-19 08:59:49 +00:00
cddl Fix the following -Werror warning from clang 3.5.0, while building cddl/lib/libctf: 2014-11-19 07:44:21 +00:00
compat Remove the no-at variants of the kern_xx() syscall helpers. E.g., we 2014-11-13 18:01:51 +00:00
conf Implement the historic DIOCGDINFO ioctl for gpart on BSD 2014-11-18 17:06:40 +00:00
contrib Set the current vnet inside the ioctl handler for ipfilter. 2014-11-20 08:11:54 +00:00
crypto Fix gcc build: preserve const qualifier when casting input values. 2014-11-11 13:37:28 +00:00
ddb ddb: ANSI-fy function declarations. 2014-10-12 18:01:52 +00:00
dev cxgbe(4): figure out the max payload size and save it for later. 2014-11-19 20:16:56 +00:00
fs ifdef ext2_print_inode which is not really used. 2014-11-12 16:23:56 +00:00
gdb Add support for gdb's memory searching capabilities to our in-kernel gdb 2014-09-05 16:40:47 +00:00
geom The number of BSD partitions is variable. Return the proper number 2014-11-19 18:55:27 +00:00
gnu reiserfs: Use signed i_nlink 2014-09-25 19:10:32 +00:00
i386 opt_global.h is included automatically in the build. No need to 2014-11-18 17:06:56 +00:00
isa
kern Do not allocate zero-length mbuf in sosend_generic(). 2014-11-19 14:27:38 +00:00
kgssapi Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
libkern Sync with userland variant. 2014-11-17 21:01:35 +00:00
mips * Add a random device 2014-11-20 05:54:29 +00:00
modules No need to list opt_global.h. No need to force ALTQ here, since that's 2014-11-18 17:06:54 +00:00
net Finish r274175: do control plane MTU tracking. 2014-11-17 01:05:29 +00:00
net80211 Fix multiple incorrect SYSCTL arguments in the kernel: 2014-10-21 07:31:21 +00:00
netgraph In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
netinet Re-introduce padding fields removed with r264321 to keep 2014-11-17 14:56:02 +00:00
netinet6 Finish r274175: do control plane MTU tracking. 2014-11-17 01:05:29 +00:00
netipsec Count statistics for the specific address family. 2014-11-13 12:58:33 +00:00
netnatm
netpfil pf(4) needs to have a correct checksum during its processing. 2014-11-19 13:31:08 +00:00
netsmb
nfs Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
nfsclient Follow up to r225617. In order to maximize the re-usability of kernel code 2014-10-16 18:04:43 +00:00
nfsserver Change NFS readdir() to only ignore cookies preceding the given offset for 2014-07-01 20:00:35 +00:00
nlm Avoid dynamic syscall overhead for statically compiled modules. 2014-10-26 19:42:44 +00:00
ofed In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
opencrypto Fix build for kernels without COMPAT_FREEBSD32. 2014-09-22 17:32:27 +00:00
pc98 Renove faith(4) and faithd(8) from base. It looks like industry 2014-11-09 21:33:01 +00:00
powerpc cpudep_ap_early_bootstrap() takes no arguments, so no need to give it one. 2014-11-20 06:32:47 +00:00
rpc In preparation of merging projects/sendfile, transform bare access to 2014-11-12 09:57:15 +00:00
security Replace dev_clone with cdevpriv(9) KPI in audit_pipe code. 2014-08-20 16:04:30 +00:00
sparc64 Renove faith(4) and faithd(8) from base. It looks like industry 2014-11-09 21:33:01 +00:00
sys prevent doing filter ops locking for staticly compiled filter ops... 2014-11-16 01:18:41 +00:00
teken
tools Allow the make_dtb script to work outside of a "make buildkernel" context 2014-08-30 22:39:15 +00:00
ufs When non-forced unmount or remount rw->ro is performed, writes on UFS 2014-11-02 13:14:55 +00:00
vm Use __func__ in KASSERTs, since the code is about to be moved to other place. 2014-11-19 16:29:39 +00:00
x86 MFamd64: Add support for extended FPU states on i386. This includes 2014-11-02 22:58:30 +00:00
xdr
xen opt_global.h is included automatically in the build. No need to 2014-11-18 17:06:56 +00:00
Makefile Remove "pci" from CSCOPEDIRS. 2014-09-23 06:32:19 +00:00