NetBSD/sys/netipsec
riastradh d1579b2d70 Rename min/max -> uimin/uimax for better honesty.
These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)
2018-09-03 16:29:22 +00:00
..
ah_var.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
ah.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
esp_var.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
esp.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
files.netipsec add ipsec(4) interface, which is used for route-based VPN. 2018-01-10 10:56:30 +00:00
ipcomp_var.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
ipcomp.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
ipip_var.h Rename ipip_allow->ipip_spoofcheck, and add net.inet.ipsec.ipip_spoofcheck. 2018-04-22 10:25:40 +00:00
ipsec6.h Merge ipsec4_input and ipsec6_input into ipsec_ip_input. Make the argument 2018-05-14 17:34:26 +00:00
ipsec_input.c IP6_EXTHDR_GET -> M_REGION_GET, no functional change. 2018-05-18 18:58:51 +00:00
ipsec_mbuf.c Rename min/max -> uimin/uimax for better honesty. 2018-09-03 16:29:22 +00:00
ipsec_netbsd.c Fix the net.inet6.ipsec6.def_policy node, the variable should be 2018-04-28 13:44:19 +00:00
ipsec_output.c Adapt rev1.75, suggested by Alexander Bluhm. Relax the checks to allow 2018-05-31 15:06:45 +00:00
ipsec_private.h Remove IPSEC_SPLASSERT_SOFTNET, it has always been a no-op. 2018-04-28 15:45:16 +00:00
ipsec_var.h - Cleanup for dynamic sysctl: 2018-08-22 01:05:21 +00:00
ipsec.c Rename 2018-07-11 05:25:45 +00:00
ipsec.h Merge ipsec4_input and ipsec6_input into ipsec_ip_input. Make the argument 2018-05-14 17:34:26 +00:00
ipsecif.c Remove support for non-IKE markers in the kernel. Discussed on tech-net@, 2018-05-31 07:03:57 +00:00
ipsecif.h Fix unexpected failure when ipsecif(4) over IPv6 is changed port number only. 2018-04-06 10:38:53 +00:00
key_debug.c Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
key_debug.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
key_var.h Remove unused macros. 2018-04-28 13:23:17 +00:00
key.c Don't call key_ismyaddr, which may sleep, in a pserialize read section 2018-08-23 01:55:38 +00:00
key.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
keydb.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
keysock.c Stop using m_copy(), use m_copym() directly. m_copy is useless, 2018-04-26 19:50:09 +00:00
keysock.h Remove extra long file paths from the headers. 2018-04-19 08:27:38 +00:00
Makefile add ipsec(4) interface, which is used for route-based VPN. 2018-01-10 10:56:30 +00:00
xform_ah.c Constify ipseczeroes, and remove one use of it. 2018-05-31 06:25:41 +00:00
xform_esp.c Add a comment and a KASSERT. I remember wondering whether this check was a 2018-05-31 06:14:18 +00:00
xform_ipcomp.c Remove unused calls to nat_t_ports_get. 2018-05-13 18:34:59 +00:00
xform_ipip.c Remove a dummy reference to XF_IP4, explain briefly why we don't use 2018-05-07 09:33:51 +00:00
xform_tcp.c Restore TCP header inclusions for TCP_SIGNATURE 2018-05-14 02:16:29 +00:00
xform.h Introduce ah_authsiz, which computes the length of the ICV only. Use it in 2018-05-30 17:17:11 +00:00