xref: /OK3568_Linux_fs/yocto/poky/meta/recipes-extended/tcp-wrappers/tcp-wrappers-7.6/man_fromhost.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunUpstream-Status: Backport
2*4882a593Smuzhiyun
3*4882a593Smuzhiyundiff -ruN tcp_wrappers_7.6.orig/hosts_access.3 tcp_wrappers_7.6/hosts_access.3
4*4882a593Smuzhiyun--- tcp_wrappers_7.6.orig/hosts_access.3	2004-04-25 00:10:48.000000000 +0200
5*4882a593Smuzhiyun+++ tcp_wrappers_7.6/hosts_access.3	2004-04-25 00:09:36.000000000 +0200
6*4882a593Smuzhiyun@@ -14,6 +14,9 @@
7*4882a593Smuzhiyun struct request_info *request_set(request, key, value, ..., 0)
8*4882a593Smuzhiyun struct request_info *request;
9*4882a593Smuzhiyun
10*4882a593Smuzhiyun+void fromhost(request)
11*4882a593Smuzhiyun+struct request_info *request;
12*4882a593Smuzhiyun+
13*4882a593Smuzhiyun int hosts_access(request)
14*4882a593Smuzhiyun struct request_info *request;
15*4882a593Smuzhiyun
16*4882a593Smuzhiyun@@ -60,6 +63,7 @@
17*4882a593Smuzhiyun is available, host names and client user names are looked up on demand,
18*4882a593Smuzhiyun using the request structure as a cache.  hosts_access() returns zero if
19*4882a593Smuzhiyun access should be denied.
20*4882a593Smuzhiyun+fromhost() must be called before hosts_access().
21*4882a593Smuzhiyun .PP
22*4882a593Smuzhiyun hosts_ctl() is a wrapper around the request_init() and hosts_access()
23*4882a593Smuzhiyun routines with a perhaps more convenient interface (though it does not
24