freebsd-dev/sys/netinet6
Robert Watson a152f8a361 Change semantics of socket close and detach. Add a new protocol switch
function, pru_close, to notify protocols that the file descriptor or
other consumer of a socket is closing the socket.  pru_abort is now a
notification of close also, and no longer detaches.  pru_detach is no
longer used to notify of close, and will be called during socket
tear-down by sofree() when all references to a socket evaporate after
an earlier call to abort or close the socket.  This means detach is now
an unconditional teardown of a socket, whereas previously sockets could
persist after detach of the protocol retained a reference.

This faciliates sharing mutexes between layers of the network stack as
the mutex is required during the checking and removal of references at
the head of sofree().  With this change, pru_detach can now assume that
the mutex will no longer be required by the socket layer after
completion, whereas before this was not necessarily true.

Reviewed by:	gnn
2006-07-21 17:11:15 +00:00
..
ah6.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ah_aesxcbcmac.c Correct a buffer overflow which can occur when decompressing a 2005-07-27 08:41:17 +00:00
ah_aesxcbcmac.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ah_core.c scope cleanup. with this change 2005-07-25 12:31:43 +00:00
ah_input.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ah_output.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ah.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
dest6.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp6.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp_aesctr.c AES counter mode uses 8byte IV, not 16 bytes. 2005-10-12 09:13:48 +00:00
esp_aesctr.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp_core.c refer opencrypto/cast.h directly. 2005-03-11 12:37:07 +00:00
esp_input.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp_output.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp_rijndael.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp_rijndael.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
esp.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
frag6.c Assert ip6_forward_rt protected by Giant adding GIANT_REQUIRED to 2006-05-04 18:41:08 +00:00
icmp6.c sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
icmp6.h
in6_cksum.c We needn't check "m" for NULL here because "off" should be within 2006-06-30 18:25:07 +00:00
in6_gif.c shut up strict-aliasing rules warning. 2006-02-05 09:52:40 +00:00
in6_gif.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
in6_ifattach.c Modify in6_pcbpurgeif0() to accept a pcbinfo structure rather than a pcb 2006-04-23 15:06:16 +00:00
in6_ifattach.h sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
in6_pcb.c Fix race conditions on enumerating pcb lists by moving the initialization 2006-07-18 22:34:27 +00:00
in6_pcb.h Modify in6_pcbpurgeif0() to accept a pcbinfo structure rather than a pcb 2006-04-23 15:06:16 +00:00
in6_proto.c Use sparse initializers for "struct domain" and "struct protosw", 2005-11-09 13:29:16 +00:00
in6_rmx.c Complete timebase (time_second -> time_uptime) conversion. 2006-07-05 23:37:21 +00:00
in6_src.c Avoid spurious release of an rtentry. 2006-05-23 00:32:22 +00:00
in6_var.h There is a consensus that ifaddr.ifa_addr should never be NULL, 2006-06-29 19:22:05 +00:00
in6.c There is a consensus that ifaddr.ifa_addr should never be NULL, 2006-06-29 19:22:05 +00:00
in6.h This comment on various IPPORT_ defines was copied from in.h and 2006-03-28 12:51:22 +00:00
ip6_ecn.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ip6_forward.c Remove ip6fw. Since ipfw has full functional IPv6 support now and - in 2006-05-12 20:39:23 +00:00
ip6_id.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ip6_input.c Remove ip6fw. Since ipfw has full functional IPv6 support now and - in 2006-05-12 20:39:23 +00:00
ip6_mroute.c ip6_mrouter_done(): use if_allmulti(0) for disabling the multicast promiscuous mode 2006-04-10 14:33:22 +00:00
ip6_mroute.h update comments: 2005-07-20 08:59:45 +00:00
ip6_output.c Remove ip6fw. Since ipfw has full functional IPv6 support now and - in 2006-05-12 20:39:23 +00:00
ip6_var.h sync with KAME (renamed a macro IPV6_DADOUTPUT to IPV6_UNSPECSRC) 2005-10-21 15:45:13 +00:00
ip6.h
ip6protosw.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ipcomp6.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ipcomp_core.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ipcomp_input.c In ipcomp6_input(), check 'md' not 'm' after a call to m_pulldown(): 'm' 2006-01-13 23:53:23 +00:00
ipcomp_output.c /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ipcomp.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ipsec6.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
ipsec.c - Use suser_cred(9) instead of directly comparing cr_uid. 2006-06-27 11:40:05 +00:00
ipsec.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
mld6_var.h sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
mld6.c fixed a bug that an MLD report is not advertised when group-specific MLD query is received. 2006-03-04 09:17:11 +00:00
nd6_nbr.c the response NS to a DAD NS was not sent correctly due to the 2005-12-08 06:43:39 +00:00
nd6_rtr.c implements section 2.2 of RFC4191, regarding the reserved preference value (10) 2006-03-19 06:38:39 +00:00
nd6.c Fix spurious warnings from neighbor discovery when working with IPv6 over 2006-06-08 00:31:17 +00:00
nd6.h sync with KAME regarding NDP 2005-10-21 16:23:01 +00:00
pim6_var.h Remove public declarations of variables that were forgotten when they were 2005-08-10 07:10:02 +00:00
pim6.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
raw_ip6.c Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
raw_ip6.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
README nuked non-existing commands 2005-10-21 16:31:39 +00:00
route6.c scope cleanup. with this change 2005-07-25 12:31:43 +00:00
scope6_var.h scope cleanup. with this change 2005-07-25 12:31:43 +00:00
scope6.c oops, make it compilable. i need sleep. X-( 2005-07-25 17:28:39 +00:00
tcp6_var.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00
udp6_output.c Assert the inpcb lock in udp6_output(), as we dereference various 2006-04-12 03:34:22 +00:00
udp6_usrreq.c Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
udp6_var.h /* -> /*- for license, minor formatting changes, separate for KAME 2005-01-07 02:30:35 +00:00

a note to committers about KAME tree
$FreeBSD$
KAME project


FreeBSD IPv6/IPsec tree is from KAMEproject (http://www.kame.net/).
To synchronize KAME tree and FreeBSD better today and in the future,
please understand the following:

- DO NOT MAKE COSTMETIC CHANGES.
  "Cosmetic changes" here includes tabify, untabify, removal of space at EOL,
  minor KNF items, and whatever adds more output lines on "diff freebsd kame".
  To make future synchronization easier. it is critical to preserve certain
  statements in the code.  Also, as KAME tree supports all 4 BSDs (Free, Open,
  Net, BSD/OS) in single shared tree, it is not always possible to backport
  FreeBSD changes into KAME tree.  So again, please do not make cosmetic
  changes.  Even if you think it a right thing, that will bite KAME guys badly
  during upgrade attempts, and prevent us from synchronizing two trees.
  (you don't usually make cosmetic changes against third-party code, do you?)

- REPORT CHANGES/BUGS TO KAME GUYS.
  It is not always possible for KAME guys to watch all the freebsd mailing
  list traffic, as the traffic is HUGE.  So if possible, please, inform
  kame guys of changes you made in IPv6/IPsec related portion.  Contact
  path would be snap-users@kame.net or KAME PR database on www.kame.net.
  (or to core@kame.net if it is necessary to make it confidential)

Thank you for your cooperation and have a happy IPv6 life!


Note: KAME-origin code is in the following locations.
The above notice applies to corresponding manpages too.
The list may not be complete.  If you see $KAME$ in the code, it is from
KAME distribution.  If you see some file that is IPv6/IPsec related, it is
highly possible that the file is from KAME distribution.

include/ifaddrs.h
lib/libc/net
lib/libc/net/getaddrinfo.c
lib/libc/net/getifaddrs.c
lib/libc/net/getnameinfo.c
lib/libc/net/ifname.c
lib/libc/net/ip6opt.c
lib/libc/net/map_v4v6.c
lib/libc/net/name6.c
lib/libftpio
lib/libipsec
sbin/ip6fw
sbin/ping6
sbin/rtsol
share/doc/IPv6
share/man/man4/ip6.4
share/man/man4/inet6.4
sys/crypto (except sys/crypto/rc4)
sys/kern/uipc_mbuf2.c
sys/net/if_faith.[ch]
sys/net/if_gif.[ch]
sys/net/if_stf.[ch]
sys/net/pfkeyv2.h
sys/netinet/icmp6.h
sys/netinet/in_gif.[ch]
sys/netinet/ip6.h
sys/netinet/ip_encap.[ch]
sys/netinet6
sys/netkey
usr.sbin/faithd
usr.sbin/ifmcstat
usr.sbin/mld6query
usr.sbin/ndp
usr.sbin/rip6query
usr.sbin/route6d
usr.sbin/rrenumd
usr.sbin/rtadvd
usr.sbin/rtsold
usr.sbin/setkey
usr.sbin/traceroute6