don't try calling mtx_init_parking without ifdef __USE_MI_MUTEX
hppa (and m88k) have their own mutex code, so they don't have the
MI parking mutex.
found by deraadt@
hppa hardware help from jmatthew@
ok jca@ jmatthew@
Copy only `sa_len' bytes from sockaddr and fill the rest with nulls while
doing fill `ifr' within ifconf(). We have no one sockaddr* with size less
than sockaddr structure and always do addresses allocation with M_ZERO,
so there is no leak, but don't be careless.
ok bluhm deraadt
Move allocation of "mmap descriptors" (UVM vnode) into uvn_attach().
Reduce waste of memory by limiting the association of such descriptors to
vnodes that are effectively mmap(2)'d.
Tested by sthen@, ok kettenis@
Use 64 bit BN_ULONG on 64 bit Windows platforms.
64 bit Windows is a special LLP snowflake and it is currently incorrectly
using 32 bit BN_ULONG, since _LP64 is not defined. Enable 64 bit BN_ULONG
if _LP64 or _WIN64 is defined.
ok tb@
it makes more sense to count ether_offload_ifcap failures as output errors
not input errors.
bluhm@ asked if i made a copy/paste mistake, and i think i did.
remove the ipsec interception code.
i wrote it cos bridge(4) allowed ipsec to apply policy to ip packets
as they traversed the bridge, but the locking and packet gymnastics
meant it was never enabled. i'm no longer interested in making veb
feature compatible with bridge(4), so this code can go. it's in the
attic if it's needed in the future though.
no functional change.
Escape SSH_AUTH_SOCK paths that are sent to the shell as setenv
commands.
Unbreaks ssh-agent for home directory paths that contain whitespace.
Based on fix from Beat Bolli via bz3884; feedback/ok dtucker@
Remove some unnecessary checks in sshkey_ec_validate_public()
Checking nQ == infinity is not needed for cofactor 1 curves.
Checking x and y coordinates against order is not needed either.
patch from Szilárd Pfeiffer, with further refinement by tb@
ok tb@
For RTL8125, there's no need to check whether RGE_CMD_STOPREQ has been
completed. As with other chip variants, RGE_CMD_STOPREQ never acknowledges
completion.
Reported by Geoff Steckel
In mrt_dump_entry() treat peers with remote_addr.aid == AID_UNSPEC the
same way as peers where the remote_addr.aid is the same as of the prefix.
This fixes dumping in the old table format from self-originated prefixes
since peerself has a AID_UNSPEC remote_addr of all 0.
Fix for mrt regress test.
Reported by anton@
OK tb@ (who had the same diff)
Use BN_ULONG in probable_prime_dh()
This was the last user of BN_LONG in code. It had no reason to do so.
BN_mod_word() returns a BN_ULONG and since the largest prime in the
small primes table primes[] is well below 20000, the only return value
that could cause 'mod' to be negative was the error sentinel (BN_ULONG)-1.
ok jsing kenjiro