Article View: news.software.nntp
Article #22532Re: ANNOUNCE: INN 1.7 available / Mozilla
From: Sean Donelan
Date: Tue, 21 Oct 1997 00:00
Date: Tue, 21 Oct 1997 00:00
121 lines
5325 bytes
5325 bytes
Ah, the great thing about UNIX, there are so many variants to choose
from. According to the latest version of TCP_WRAPPER which this code
was copied from, Linux does something incompatible with its IP_OPTIONS
so you should read your manual for disabling source routing in the
kernel.
For systems with source routing disabled in the kernel (not just at
the router), you can turn this code off. Although being a parnoid
person, never knowing when someone else might accidently re-enable
source routing, I would still use it when ever the O/S supports it.
Appended to this note is a patch file which makes this an option in
the config.data file. It would be better to include the new fix_options
code from TCP_WRAPPER 7.6, but even then you would still need the
option to disable it for some O/Ss. More portability concerns, where
is IP_OPTIONS actually defined on all the variants of UNIX.
Linux and some really old versions of Solaris may need to turn this code
off. Remember, if you disable this code be sure to turn off source routing
in your kernel.
In article <6gH4y7-PP0B@dfg.oln.ComLink.APC.org>, Matthias@OLN.ComLink.APC.org (Matthias Watermann) writes:
> olaf@bigred.inka.de wrote on 19.10.97 in article <62d400$sku$1@bigred.inka.de>:
>> This fix doesn't fix the problem, which is that the setsockopt() call
>> fails. With the fix, you'll enable clients to circumvent hosts.nntp
>> and/or nnrpd.access by IP source routing. Better have a look at the
>> syslog entry and try to find out what goes wrong.
>
> All this connects are such of the cron-entry "rnews -U". As I
> said in another posting, =all= of the tested news-readers
> (Mosaic, Mozilla, M$IE) are causing those "IP_OPTIONS NULL" msgs
> and without thath Q&D "fix" can't read any news at all. I know,
> that my "fix" doesn't fix the problem, but I have no idea, what
> the real problem might be. I just havn't seen those log-entries
> with v1.4... and v1.5.1sec2 but only with v1.7 and since I didn't
> change anything with my OS (CND 1.0 / Linux 1.2.13) I =thought=
> (I may be wrong) that this problem is related to INN 1.7. I'd be
> happy to learn better ...
========================CUT HERE========================
*** config/config.dist.orig Tue Oct 21 07:06:44 1997
--- config/config.dist Tue Oct 21 07:03:25 1997
***************
*** 529,534 ****
--- 529,537 ----
## Some versions of Solaris should set to DONT (pre 2.4 it seems)
#### =()<SET_SOCKOPT @<SET_SOCKOPT>@>()=
SET_SOCKOPT DO
+ ## Should INN clear IP_OPTIONS on network connections. Pick DO or DONT.
+ #### =()<KILL_IP_OPTIONS @<KILL_IP_OPTIONS>@>()=
+ KILL_IP_OPTIONS DO
##
*** config/config.data.orig Tue Oct 21 07:06:44 1997
--- config/config.data Tue Oct 21 07:03:25 1997
***************
*** 529,534 ****
--- 529,537 ----
## Some versions of Solaris should set to DONT (pre 2.4 it seems)
#### =()<SET_SOCKOPT @<SET_SOCKOPT>@>()=
SET_SOCKOPT DO
+ ## Should INN clear IP_OPTIONS on network connections. Pick DO or DONT.
+ #### =()<KILL_IP_OPTIONS @<KILL_IP_OPTIONS>@>()=
+ KILL_IP_OPTIONS DO
##
*** include/configdata.h.orig Tue Oct 21 07:05:02 1997
--- include/configdata.h Tue Oct 21 07:06:24 1997
***************
*** 336,341 ****
--- 336,344 ----
/* Should Inn be calling setsockopt() on network fds. */
/* =()<#define @<SET_SOCKOPT>@_SET_SOCKOPT @<SET_SOCKOPT>@>()= */
#define DO_SET_SOCKOPT DO
+ /* Should Inn clear IP_OPTIONS on network fds. */
+ /* =()<#define @<KILL_IP_OPTIONS>@_KILL_IP_OPTIONS @<KILL_IP_OPTIONS>@>()= */
+ #define DO_KILL_IP_OPTIONS DO
/* Function that returns no value, and a pointer to it. */
*** innd/rc.c.orig Tue Oct 7 10:18:05 1997
--- innd/rc.c Tue Oct 21 07:04:04 1997
***************
*** 750,758 ****
*/
/* fix_options - get rid of IP-level socket options */
- #ifndef IP_OPTIONS
- #define IP_OPTIONS 1
- #endif
int
RCfix_options(fd, remote)
--- 750,755 ----
***************
*** 759,765 ****
int fd;
struct sockaddr_in *remote;
{
! #if IP_OPTIONS
unsigned char optbuf[BUFSIZ / 3], *cp;
char lbuf[BUFSIZ], *lp;
int optsize = sizeof(optbuf), ipproto;
--- 756,762 ----
int fd;
struct sockaddr_in *remote;
{
! #if defined(DO_KILL_IP_OPTIONS)
unsigned char optbuf[BUFSIZ / 3], *cp;
char lbuf[BUFSIZ], *lp;
int optsize = sizeof(optbuf), ipproto;
========================CUT HERE========================
--
Sean Donelan, Data Research Associates, Inc, St. Louis, MO
Affiliation given for identification not representation
Technical Details
Message-ID:
<qWyk2hVIOTaJ@sdg.dra.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<yy3oh4pwgc1.fsf@velo.pp.vix.com> <6g4ugI3uP0B@dfg.oln.ComLink.APC.org> <6gH4y7-PP0B@dfg.oln.ComLink.APC.org>Show Full Headers
Complete Article Headers
Message-ID: <qWyk2hVIOTaJ@sdg.dra.com> Subject: Re: ANNOUNCE: INN 1.7 available / Mozilla Date: Tue, 21 Oct 1997 00:00:00 +0000 From: sean@sdg.dra.com (Sean Donelan) References: <yy3oh4pwgc1.fsf@velo.pp.vix.com> <6g4ugI3uP0B@dfg.oln.ComLink.APC.org> <6gH4y7-PP0B@dfg.oln.ComLink.APC.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 282187819 Organization: Data Research Associates, St. Louis MO Newsgroups: news.software.nntp