diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-11-08 02:13:18 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-11-08 02:13:18 +0000 |
commit | 8cf42b482a9aa3f9ec41071c44bc18a0ea425abf (patch) | |
tree | f48964de5180c6b27c3272456da3b93d16bd1ea3 /sys/netinet/ip_divert.c | |
parent | c4a9f1d3ab184e9dddf4227f8e0781b59d1a82b7 (diff) | |
download | FreeBSD-src-8cf42b482a9aa3f9ec41071c44bc18a0ea425abf.zip FreeBSD-src-8cf42b482a9aa3f9ec41071c44bc18a0ea425abf.tar.gz |
o Replace reference to 'struct proc' with 'struct thread' in 'struct
sysctl_req', which describes in-progress sysctl requests. This permits
sysctl handlers to have access to the current thread, permitting work
on implementing td->td_ucred, migration of suser() to using struct
thread to derive the appropriate ucred, and allowing struct thread to be
passed down to other code, such as network code where td is not currently
available (and curproc is used).
o Note: netncp and netsmb are not updated to reflect this change, as they
are not currently KSE-adapted.
Reviewed by: julian
Obtained from: TrustedBSD Project
Diffstat (limited to 'sys/netinet/ip_divert.c')
-rw-r--r-- | sys/netinet/ip_divert.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip_divert.c b/sys/netinet/ip_divert.c index d63df09..56a602ac 100644 --- a/sys/netinet/ip_divert.c +++ b/sys/netinet/ip_divert.c @@ -46,6 +46,7 @@ #include <sys/kernel.h> #include <sys/malloc.h> #include <sys/mbuf.h> +#include <sys/proc.h> #include <sys/socket.h> #include <sys/protosw.h> #include <sys/socketvar.h> @@ -485,7 +486,8 @@ div_pcblist(SYSCTL_HANDLER_ARGS) s = splnet(); for (inp = LIST_FIRST(divcbinfo.listhead), i = 0; inp && i < n; inp = LIST_NEXT(inp, inp_list)) { - if (inp->inp_gencnt <= gencnt && !prison_xinpcb(req->p, inp)) + if (inp->inp_gencnt <= gencnt && !prison_xinpcb( + req->td->td_proc, inp)) inp_list[i++] = inp; } splx(s); |