opnsense-src/sys
Bjoern A. Zeeb 97aa4a517a Try to remove/assimilate as much of formerly IPv4/6 specific
(duplicate) code in sys/netipsec/ipsec.c and fold it into
common, INET/6 independent functions.

The file local functions ipsec4_setspidx_inpcb() and
ipsec6_setspidx_inpcb() were 1:1 identical after the change
in r186528. Rename to ipsec_setspidx_inpcb() and remove the
duplicate.

Public functions ipsec[46]_get_policy() were 1:1 identical.
Remove one copy and merge in the factored out code from
ipsec_get_policy() into the other. The public function left
is now called ipsec_get_policy() and callers were adapted.

Public functions ipsec[46]_set_policy() were 1:1 identical.
Rename file local ipsec_set_policy() function to
ipsec_set_policy_internal().
Remove one copy of the public functions, rename the other
to ipsec_set_policy() and adapt callers.

Public functions ipsec[46]_hdrsiz() were logically identical
(ignoring one questionable assert in the v6 version).
Rename the file local ipsec_hdrsiz() to ipsec_hdrsiz_internal(),
the public function to ipsec_hdrsiz(), remove the duplicate
copy and adapt the callers.
The v6 version had been unused anyway. Cleanup comments.

Public functions ipsec[46]_in_reject() were logically identical
apart from statistics. Move the common code into a file local
ipsec46_in_reject() leaving vimage+statistics in small AF specific
wrapper functions. Note: unfortunately we already have a public
ipsec_in_reject().

Reviewed by:	sam
Discussed with:	rwatson (renaming to *_internal)
MFC after:	26 days
X-MFC:		keep wrapper functions for public symbols?
2009-02-08 09:27:07 +00:00
..
amd64 Companion for r188301: fix the prototypes. 2009-02-08 07:03:34 +00:00
arm Erm... Report the buffer as being bounced even when it's the entire buffer, 2009-02-04 01:14:06 +00:00
boot - Remove superfluous comment 2009-01-30 15:27:04 +00:00
bsm Merge OpenBSM alpha 5 from OpenBSM vendor branch to head, both 2009-01-14 10:44:16 +00:00
cam There is no need to initialize the variable here. 2009-01-31 17:34:55 +00:00
cddl Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
compat Change some movl's to mov's. Newer GAS no longer accept 'movl' instructions 2009-01-31 11:37:21 +00:00
conf Fix LIBALIAS option for a static kernel. 2009-02-08 03:02:06 +00:00
contrib Revert my previous two changes. 2009-01-25 16:52:41 +00:00
crypto identify routine takes driver_t *, not device_t *. 2009-02-05 19:30:28 +00:00
ddb Collect N identical (or near identical) mkdumpheader() implementations into 2008-10-01 22:08:53 +00:00
dev Fix build, sigh. 2009-02-07 15:51:32 +00:00
fs Add rudimentary support for symbolic links on UDF. Links are stored as a 2009-02-06 22:24:03 +00:00
gdb Commit SYSINIT() ;-adding patch missed in previous pass. 2008-03-16 13:02:04 +00:00
geom Fix g_part_*dumpconf to return void to match kobj definition. 2009-02-08 07:05:23 +00:00
gnu - Eliminate warnings in debug print macros by explicitly converting all 2009-01-18 15:10:46 +00:00
i386 Tidy NOTES a bit: 2009-02-07 00:06:13 +00:00
ia64 Don't forget to create opt_agp.h on ia64, which also uses agp(4). 2009-02-07 09:57:14 +00:00
isa Allow device hints to wire the unit numbers of devices. 2008-11-18 21:01:54 +00:00
kern Tweak the output of VOP_PRINT/vn_printf() some. 2009-02-06 20:06:48 +00:00
kgssapi Call svc_freereq() before returning from the service proc. 2008-11-12 15:31:05 +00:00
libkern Add simple locking for the in-kernel iconv code. Translation operations 2008-12-05 21:19:24 +00:00
mips Retire NO_DMA completely. 2009-02-08 08:13:36 +00:00
modules Add SCTP NAT support. 2009-02-07 18:49:42 +00:00
net Call prison_if from rtm_get_jailed, instead of splitting it out into 2009-02-05 14:58:16 +00:00
net80211 o change _db_show_key to always dump the contents instead of checking 2009-02-05 20:26:53 +00:00
netatalk Remove local variable 'ddp' from DDP's attach and detach routines; they 2009-02-04 20:04:32 +00:00
netgraph Allow unprivileged users to run l2ping(8). 2009-02-04 22:44:09 +00:00
netinet Try to remove/assimilate as much of formerly IPv4/6 specific 2009-02-08 09:27:07 +00:00
netinet6 Try to remove/assimilate as much of formerly IPv4/6 specific 2009-02-08 09:27:07 +00:00
netipsec Try to remove/assimilate as much of formerly IPv4/6 specific 2009-02-08 09:27:07 +00:00
netipx Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall through 2008-12-11 10:29:35 +00:00
netnatm Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netncp Retire the MALLOC and FREE macros. They are an abomination unto style(9). 2008-10-23 15:53:51 +00:00
netsmb Implement device cloning for /dev/nsmb, the netsmb control pseudo-device. 2008-11-03 14:23:15 +00:00
nfs Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT. 2008-03-25 09:39:02 +00:00
nfs4client Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsclient Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nfsserver Last step of splitting up minor and unit numbers: remove minor(). 2009-01-28 17:57:16 +00:00
nlm Don't call svc_freereq() before svc_freeargs(). 2008-11-12 15:30:30 +00:00
opencrypto Fix return type for detach routine (should be int) 2009-02-05 17:43:12 +00:00
pc98 Tidy NOTES a bit: 2009-02-07 00:15:30 +00:00
pccard
pci - Add support for 8110SCe part. Some magic registers were taken from 2009-01-20 20:22:28 +00:00
powerpc Add support for the I2S and davbus audio controllers found in Apple PowerPC 2009-01-25 18:20:15 +00:00
rpc Use the correct creds when reconnecting so that we have enough privilege to 2009-02-05 11:48:10 +00:00
security Eliminate the local variable 'ape' in audit_pipe_kqread(), as it's only 2009-02-04 19:56:37 +00:00
sparc64 - Currently the PMAP code is laid out to let the kernel TSB cover the 2009-01-01 14:01:21 +00:00
sun4v Adjust the padding of struct pcpu to r187357. 2009-01-18 13:04:38 +00:00
sys Add KASSERTs to make it easier to debug problems like the one fixed 2009-02-06 18:16:01 +00:00
tools Remove some unused and broken code that attempted to not invoke locking 2008-11-03 19:57:40 +00:00
ufs When a device containing mounted UFS filesystem disappears, the type 2009-02-06 17:14:07 +00:00
vm - Make the keg abstraction more complete. Permit a zone to have multiple 2009-01-25 09:11:24 +00:00
xdr Use the remote address for access control, not the local address. This fixes 2008-11-13 14:36:52 +00:00
xen merge 186535, 186537, and 186538 from releng_7_xen 2008-12-29 06:31:03 +00:00
Makefile Improve the glimpse target: don't index .svn and compile directories. 2008-08-15 14:11:30 +00:00