πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #81054

Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available

#81054
From: D. Stussy
Date: Sun, 17 May 2009 23:43
116 lines
5472 bytes
"Julien Γ‰LIE" <iulius@nom-de-mon-site.com.invalid> wrote in message
news:gup2n8$t5h$1@news.trigofacile.com...
> Hi D. Stussy,
> > Without any address, it appears to bind to "::" (IN6_ADDR_ANY) and will
> > accept IPv6 and IPv4 connections.  With "-6 ::", it accepts IPv6 only.
My
> > test was to run it on a separate port, then to telnet into it, and see
if
> > it connected at all.
>
> That works fine, then.

Now 20 hours of use and no problems.  This message was even replied to via
the modified version.

Have we accumulated enough changes to issue "rc3"?
PS:  The ISC "developmental release" page still says "rc1".

> > I would still like "-4" to be an alias for "-b" especially since other
> > programs regularly recognize "-4" and "-6" to mean IPv4-only and
IPv6-only
> > respectively.  Let "-b" remain but as a depreciated option for
backwards
> > compatibility only.
>
> OK, no problem.  Easy to do!
> I have just added "-4" to both innd and nnrpd.
> I have kept "-b" for nnrpd.
>
> The amusing part is that innd has "-I" but the code never worked (even
> in INN 2.0!).  So I totally removed "-I" to only have "-4" for it.

Looks like it was missing from the getopt string (before modification).

> % innd -I 0.0.0.0
> innd: invalid option -- I
> Usage error.
>
> Modified: innd/innd.c
> ===================================================================
> --- innd/innd.c 2009-05-17 10:19:39 UTC (rev 8473)
> +++ innd/innd.c 2009-05-17 13:12:15 UTC (rev 8474)
> @@ -403,11 +403,16 @@
>
>      /* Parse JCL. */
>      CCcopyargv(av);
> -    while ((i = getopt(ac, av, "6:ac:Cdfi:l:m:o:Nn:P:rst:uH:T:X:")) !=
EOF)
> +    while ((i = getopt(ac, av, "4:6:ac:CdfH:i:l:m:n:No:P:rst:T:uX:")) !=
EOF)
>   switch (i) {
>   default:
>       Usage();
>       /* NOTREACHED */
> +        case '4':
> +            if (innconf->bindaddress)
> +                free(innconf->bindaddress);
> +            innconf->bindaddress = xstrdup(optarg);
> +            break;
>          case '6':
>              if (innconf->bindaddress6)
>                  free(innconf->bindaddress6);
> @@ -434,10 +439,6 @@
>   case 'i':
>       innconf->maxconnections = atoi(optarg);
>       break;
> - case 'I':
> -     if (innconf->bindaddress) free(innconf->bindaddress);
> -     innconf->bindaddress = xstrdup(optarg);
> -     break;
>   case 'l':
>       innconf->maxartsize = atol(optarg);
>       break;
>
> Modified: nnrpd/nnrpd.c
> ===================================================================
> --- nnrpd/nnrpd.c 2009-05-17 10:19:39 UTC (rev 8473)
> +++ nnrpd/nnrpd.c 2009-05-17 13:12:15 UTC (rev 8474)
> @@ -906,20 +906,23 @@
>  #endif /* HAVE_SASL */
>
>  #ifdef HAVE_SSL
> -    while ((i = getopt(argc, argv, "6:c:b:Dfi:I:nop:P:r:s:tS")) != EOF)
> +    while ((i = getopt(argc, argv, "4:6:b:c:Dfi:I:nop:P:r:s:St")) !=
EOF)
>  #else
> -    while ((i = getopt(argc, argv, "6:c:b:Dfi:I:nop:P:r:s:t")) != EOF)
> +    while ((i = getopt(argc, argv, "4:6:b:c:Dfi:I:nop:P:r:s:t")) != EOF)
>  #endif /* HAVE_SSL */
>   switch (i) {
>   default:
>       Usage();
>       /* NOTREACHED */
> +        case '4':                       /* Bind to a certain IPv4
address. */
> +        case 'b':
> +            if (ListenAddr != NULL)
> +                die("-b and -4 may not both be given");

Perhaps, "-b and -4 are the same and both may not be given"?
This way, we're telling admins that they are the same thing.

> +            ListenAddr = xstrdup(optarg);
> +            break;
>          case '6':                       /* Bind to a certain IPv6
address. */
>              ListenAddr6 = xstrdup(optarg);
>              break;
> - case 'b': /* Bind to a certain IPv4 address. */
> -            ListenAddr = xstrdup(optarg);
> -     break;
>   case 'c':                       /* Use alternate readers.conf. */
>       ConfFile = concatpath(innconf->pathetc, optarg);
>       break;

Technical Details
Message-ID: <guq7et$cbo$1@aux.snarked.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
References: <878wnex9f4.fsf@windlord.stanford.edu> <75mc7qF195jsaU1@mid.individual.net> <gu249p$t8$1@snarked.org> <gu2959$3ra$1@news.trigofacile.com> <gu2aqd$11d$1@snarked.org> <gukjtn$apu$1@news.trigofacile.com> <gukkht$eno$1@news.trigofacile.com> <gul0i1$3cm$1@news.trigofacile.com> <gunt05$qrm$1@snarked.org> <gup2n8$t5h$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <guq7et$cbo$1@aux.snarked.org>
Subject: Re: IPv6 changes vs. Documentation, and "nicety" of news.daily - was Re: [ANNOUNCE] INN 2.5.0 release candidate available
Date: Sun, 17 May 2009 16:43:26 -0700
From: "D. Stussy" <spam@bde-arc.ampr.org>
References: <878wnex9f4.fsf@windlord.stanford.edu> <75mc7qF195jsaU1@mid.individual.net> <gu249p$t8$1@snarked.org> <gu2959$3ra$1@news.trigofacile.com> <gu2aqd$11d$1@snarked.org> <gukjtn$apu$1@news.trigofacile.com> <gukkht$eno$1@news.trigofacile.com> <gul0i1$3cm$1@news.trigofacile.com> <gunt05$qrm$1@snarked.org> <gup2n8$t5h$1@news.trigofacile.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.20141118.mbox.gz!border1.nntp.ams.giganews.com!nntp.giganews.com!de-l.enfer-du-nord.net!news.glorb.com!news2.glorb.com!news-xfer.nntp.sonic.net!news.snarked.org!not-for-mail
Newsgroups: news.software.nntp
Lines: 116
Reply-To: "D. Stussy" <replies@newsgroups.kd6lvw.ampr.org>
NNTP-Posting-Host: pool-71-106-211-188.lsanca.dsl-w.verizon.net
X-Trace: aux.snarked.org 1242603805 12664 71.106.211.188 (17 May 2009 23:43:25
 GMT)
X-Complaints-To: newsmaster@snarked.org
NNTP-Posting-Date: Sun, 17 May 2009 23:43:25 +0000 (UTC)
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478