libwrap.a in own programmes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi ! I want to use the tcp_wrapper library in my own programmes to make them look at /etc/hosts.allow/deny in order so see whether a network connection should be refused or allowed. Unfortunately, I couldn't find much information about the way of doing this. The man page of "request_init" did help but was not enough. A search with Google didn't help me so now I'm hoping someone on this list could give me a hint where to find more information about the tcp_wrapper library. Any links, docs ? Thanks, Armin - -- Am Hasenberg 26 office: Institut für Atmosphärenphysik D-18209 Bad Doberan Schloss-Straße 6 Tel. ++49-(0)38203/42137 D-18225 Kühlungsborn / GERMANY Email: schoech@iap-kborn.de Tel. +49-(0)38293-68-102 WWW: http://armins.cjb.net/ Fax. +49-(0)38293-68-50 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Weitere Infos: siehe http://www.gnupg.org iD8DBQE9GPQsG8Xv4GxznLoRArIAAKDPxFnRpSI7vMj5SrutAEzrUVzb4ACghMuk khlt7i4mhWq8ViIpsExJ72g= =DiYA -----END PGP SIGNATURE-----
On Tue, 25 Jun 2002, Armin Schöch wrote:
connection should be refused or allowed. Unfortunately, I couldn't find much information about the way of doing this. The man page of "request_init" did help but was not enough.
A search with Google didn't help me so now I'm hoping someone on this list could give me a hint where to find more information about the tcp_wrapper library. Any links, docs ?
Hope I'm not out of place (I'm not a programmer) in suggesting that you try: rpm -qd tcpd man 3 hosts_access emacs /usr/include/tcpd.h for more starting places. have fun ... dproc
connection should be refused or allowed. Unfortunately, I couldn't find much information about the way of doing this. The man page of "request_init" did help but was not enough.
A search with Google didn't help me so now I'm hoping someone on this list could give me a hint where to find more information about the tcp_wrapper library. Any links, docs ?
Hope I'm not out of place (I'm not a programmer) in suggesting that you try:
rpm -qd tcpd man 3 hosts_access emacs /usr/include/tcpd.h
for more starting places.
have fun ... dproc
Install the latest lprng source rpm from 8.0 and see the patch that comes
with it. I have appended it below:
Thanks,
Roman.
diff -ruN LPRng-3.8.5.orig/src/Makefile.in LPRng-3.8.5/src/Makefile.in
--- LPRng-3.8.5.orig/src/Makefile.in Wed Jan 23 01:04:35 2002
+++ LPRng-3.8.5/src/Makefile.in Mon Jan 28 22:58:45 2002
@@ -253,7 +253,7 @@
$(LINK) $(LIBLPR_OBJS) -rpath ${libdir}
lpd: $(LPD_OBJS) liblpr.la
- $(LINK) ${LPD_OBJS} liblpr.la $(LIBS)
+ $(LINK) ${LPD_OBJS} liblpr.la $(LIBS) -lwrap
lpr: $(LPR_OBJS) liblpr.la
$(LINK) ${LPR_OBJS} liblpr.la $(LIBS)
lpq: $(LPQ_OBJS) liblpr.la
diff -ruN LPRng-3.8.5.orig/src/common/lpd.c LPRng-3.8.5/src/common/lpd.c
--- LPRng-3.8.5.orig/src/common/lpd.c Wed Jan 23 02:01:17 2002
+++ LPRng-3.8.5/src/common/lpd.c Tue Jan 29 14:28:13 2002
@@ -44,6 +44,10 @@
#include "lpd.h"
+#include
participants (3)
-
Armin Schöch
-
dproc
-
Roman Drahtmueller