freebsd-skq/sys/netinet6
jamie 12bbe1869f Standardize the various prison_foo_ip[46] functions and prison_if to
return zero on success and an error code otherwise.  The possible errors
are EADDRNOTAVAIL if an address being checked for doesn't match the
prison, and EAFNOSUPPORT if the prison doesn't have any addresses in
that address family.  For most callers of these functions, use the
returned error code instead of e.g. a hard-coded EADDRNOTAVAIL or
EINVAL.

Always include a jailed() check in these functions, where a non-jailed
cred always returns success (and makes no changes).  Remove the explicit
jailed() checks that preceded many of the function calls.

Approved by:	bz (mentor)
2009-02-05 14:06:09 +00:00
..
dest6.c
frag6.c Remove the single global unlocked route cache ip6_forward_rt 2009-02-01 21:11:08 +00:00
icmp6.c Another step assimilating IPv[46] PCB code: 2008-12-17 13:00:18 +00:00
icmp6.h
in6_cksum.c
in6_gif.c Like with r185713 make sure to not leak a lock as rtalloc1(9) returns 2009-01-31 10:48:02 +00:00
in6_gif.h
in6_ifattach.c Like with r185713 make sure to not leak a lock as rtalloc1(9) returns 2009-01-31 10:48:02 +00:00
in6_ifattach.h
in6_pcb.c Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
in6_pcb.h
in6_proto.c
in6_rmx.c in6_clsroute() was applied to prefix routes causing some 2008-12-17 10:03:49 +00:00
in6_src.c Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
in6_var.h
in6.c Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
in6.h
ip6_ecn.h
ip6_forward.c Remove the single global unlocked route cache ip6_forward_rt 2009-02-01 21:11:08 +00:00
ip6_id.c
ip6_input.c Remove the single global unlocked route cache ip6_forward_rt 2009-02-01 21:11:08 +00:00
ip6_ipsec.c
ip6_ipsec.h
ip6_mroute.c
ip6_mroute.h
ip6_output.c Another step assimilating IPv[46] PCB code: 2008-12-17 13:00:18 +00:00
ip6_var.h Remove the single global unlocked route cache ip6_forward_rt 2009-02-01 21:11:08 +00:00
ip6.h
ip6protosw.h struct ip6protosw is a copy of struct protosw, so remove pr_usrreq there 2009-01-04 21:13:51 +00:00
mld6_var.h
mld6.c
nd6_nbr.c Like with r185713 make sure to not leak a lock as rtalloc1(9) returns 2009-01-31 10:48:02 +00:00
nd6_rtr.c When iterating through the list trying to find a router in 2009-02-04 10:35:27 +00:00
nd6.c Remove unused local MACROs. 2009-01-31 17:35:44 +00:00
nd6.h in6_clsroute() was applied to prefix routes causing some 2008-12-17 10:03:49 +00:00
pim6_var.h
pim6.h
raw_ip6.c Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
raw_ip6.h
route6.c
scope6_var.h
scope6.c
sctp6_usrreq.c - Cleanup checksum code. 2009-02-03 11:04:03 +00:00
sctp6_var.h
tcp6_var.h
udp6_usrreq.c Standardize the various prison_foo_ip[46] functions and prison_if to 2009-02-05 14:06:09 +00:00
udp6_var.h
vinet6.h Remove the single global unlocked route cache ip6_forward_rt 2009-02-01 21:11:08 +00:00