1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys
Don Lewis 26ef6ac4df Create new functions in_sockaddr(), in6_sockaddr(), and
in6_v4mapsin6_sockaddr() which allocate the appropriate sockaddr_in*
structure and initialize it with the address and port information passed
as arguments.  Use calls to these new functions to replace code that is
replicated multiple times in in_setsockaddr(), in_setpeeraddr(),
in6_setsockaddr(), in6_setpeeraddr(), in6_mapped_sockaddr(), and
in6_mapped_peeraddr().  Inline COMMON_END in tcp_usr_accept() so that
we can call in_sockaddr() with temporary copies of the address and port
after the PCB is unlocked.

Fix the lock violation in tcp6_usr_accept() (caused by calling MALLOC()
inside in6_mapped_peeraddr() while the PCB is locked) by changing
the implementation of tcp6_usr_accept() to match tcp_usr_accept().

Reviewed by:	suz
2002-08-21 11:57:12 +00:00
..
alpha remove unit counts from atkbdc, pckbd, sc 2002-08-20 00:10:22 +00:00
amd64 Use the __BUS_ACCESSOR macro for NEXUS_ACCESSOR 2002-08-20 13:50:17 +00:00
arm Create a new header <machine/_stdint.h> for storing MD parts of 2002-07-29 17:41:23 +00:00
boot Fix for stand-alone compiling 2002-08-21 09:28:00 +00:00
cam Updates to cmd6workaround: 2002-08-16 22:05:19 +00:00
coda Fix typo in the last revision. 2002-08-04 19:34:38 +00:00
compat Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoid 2002-08-18 07:05:00 +00:00
conf New L2TP netgraph node type. 2002-08-20 21:59:50 +00:00
contrib Resolve conflicts arising from the ACPI CA 20020725 import. 2002-07-30 19:35:32 +00:00
crypto
ddb When talking about c_db_sym_t, mention that it is not just like db_sym_t: 2002-08-14 17:56:47 +00:00
dev When setting the WI_RID_ENCRYPTION mode, we have to conditionally 2002-08-21 05:57:37 +00:00
fs Remove the possibility of a race condition when reading the . and .. 2002-08-20 04:46:59 +00:00
geom
gnu In order to better support flexible and extensible access control, 2002-08-15 20:55:08 +00:00
i4b add support properly displaying and logging incoming telephone numbers (MSNs) 2002-08-12 07:53:55 +00:00
i386 Use the __BUS_ACCESSOR macro for NEXUS_ACCESSOR 2002-08-20 13:50:17 +00:00
ia64 Correct one more errant whitespace nit that crept in during changes 2002-08-20 02:21:38 +00:00
isa
isofs/cd9660 Introduce typedefs for the member functions of struct vfsops and employ 2002-08-13 10:05:50 +00:00
kern - Document two cases, one in vget and the other in vn_lock, where the state 2002-08-21 08:34:48 +00:00
libkern
modules Keep subdirectory list sorted. 2002-08-20 23:58:49 +00:00
net Fix a couple of bogus return values in previous commit. 2002-08-19 19:22:41 +00:00
netatalk Introduce experimental support for MAC in the AppleTalk/EtherTalk stack. 2002-08-15 18:58:44 +00:00
netatm Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoid 2002-08-18 07:05:00 +00:00
netgraph New L2TP netgraph node type. 2002-08-20 21:59:50 +00:00
netinet Create new functions in_sockaddr(), in6_sockaddr(), and 2002-08-21 11:57:12 +00:00
netinet6 Create new functions in_sockaddr(), in6_sockaddr(), and 2002-08-21 11:57:12 +00:00
netipx Make spxnames a const char * to quieten some warnings in netstat. 2002-07-27 23:15:08 +00:00
netkey
netnatm
netncp Wire the sysctl output buffer before grabbing any locks to prevent 2002-07-28 19:59:31 +00:00
netns
netsmb Wire the sysctl output buffer before grabbing any locks to prevent 2002-07-28 19:59:31 +00:00
nfs
nfsclient Increase size of ifnet.if_flags from 16 bits (short) to 32 bits (int). To avoid 2002-08-18 07:05:00 +00:00
nfsserver - Replace v_flag with v_iflag and v_vflag 2002-08-04 10:29:36 +00:00
pc98 Merged from sys/dev/syscons/syscons.c revisions 1.386 and 1.387. 2002-08-20 14:39:29 +00:00
pccard Add 16-bit before bus to keep the words card and bus apart. 2002-07-31 20:01:11 +00:00
pci Don't read the PCI config space during mii operations. Instead save whether 2002-08-19 16:54:26 +00:00
posix4
powerpc In order to better support flexible and extensible access control, 2002-08-15 20:55:08 +00:00
rpc
security Prefer NULL to 0 when passing a NULL pointer. 2002-08-20 02:54:09 +00:00
sparc64 remove unit counts from atkbdc, pckbd, sc 2002-08-20 00:10:22 +00:00
sys - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKED 2002-08-21 06:19:29 +00:00
tools - Add two new debugging macros: ASSERT_VI_LOCKED and ASSERT_VI_UNLOCKED 2002-08-21 06:19:29 +00:00
ufs Implement list of EA return functionality. 2002-08-20 11:34:58 +00:00
vm o Assert that the page queues lock is held in vm_page_activate(). 2002-08-11 00:21:40 +00:00
Makefile