Thread View: news.software.nntp
5 messages
5 total messages
Started by Jimbo
Sun, 04 Jan 1998 00:00
Q: INN on port 120
Author: Jimbo
Date: Sun, 04 Jan 1998 00:00
Date: Sun, 04 Jan 1998 00:00
11 lines
846 bytes
846 bytes
I read the docs, drank my coffee, tried it but still can't get it to work :( I tried the '-p 120' switch to INN in rc.news and also recompiled INN with NNTP_PORT set to 120 in configdata.h but it still comes up on 119 :( Could someone tell me how to get INN to run on port 120 ? Jim
Re: Q: INN on port 120
Author: Christopher D Dukes
Date: Sun, 04 Jan 1998 00:00
Date: Sun, 04 Jan 1998 00:00
27 lines
2037 bytes
2037 bytes
In article <68p11s$p59$1@defiant.cistron.nl>, Miquel van Smoorenburg <miquels@cistron.nl> wrote: >In article <68orhc$nm8$1@news2.soco.de>, Jimbo <noc@bricbrac.de> wrote: >>I read the docs, drank my coffee, tried it but still can't get it to work :( >> >>I tried the '-p 120' switch to INN in rc.news and also recompiled INN >>with NNTP_PORT set to 120 in configdata.h but it still comes up on 119 :( > >The -p option is not for a TCP port, it's for an already-opened file >descriptor (innstart uses it) on TCP port 119. > >>Could someone tell me how to get INN to run on port 120 ? > >Well it's hardcoded in the source, not even getservbyname() is used. You'll >have to recompile .. Hrm, I wonder how hard it would be to hack inndstart to offer an option for the port. -- The following must be destroyed. Microsoft, Lyons Partnership, CyberPromo. Balkanize USENET! Vote from the rooftops!! The best thing in RTP is now SMOG! Sending unsolicited commercial massmail to this account may result in a network outage for your site. Have a nice day. "Confutatis maledictis, flammis acribus addictis" -- MS commercial
Re: Q: INN on port 120
Author: Miquel van Smoorenburg
Date: Sun, 04 Jan 1998 00:00
Date: Sun, 04 Jan 1998 00:00
21 lines
1341 bytes
1341 bytes
In article <68orhc$nm8$1@news2.soco.de>, Jimbo <noc@bricbrac.de> wrote:
>I read the docs, drank my coffee, tried it but still can't get it to work :(
>
>I tried the '-p 120' switch to INN in rc.news and also recompiled INN
>with NNTP_PORT set to 120 in configdata.h but it still comes up on 119 :(
The -p option is not for a TCP port, it's for an already-opened file
descriptor (innstart uses it) on TCP port 119.
>Could someone tell me how to get INN to run on port 120 ?
Well it's hardcoded in the source, not even getservbyname() is used. You'll
have to recompile ..
Mike.
--
Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed
miquels@cistron.nl | awake all night wondering if there is a doG
Re: Q: INN on port 120
Author: Miquel van Smoorenburg
Date: Sun, 04 Jan 1998 00:00
Date: Sun, 04 Jan 1998 00:00
27 lines
1598 bytes
1598 bytes
In article <68p1fc$4go$1@uni00nw.unity.ncsu.edu>,
Christopher D Dukes <cddukes@cc04du.unity.ncsu.edu> wrote:
>In article <68p11s$p59$1@defiant.cistron.nl>,
>Miquel van Smoorenburg <miquels@cistron.nl> wrote:
>>In article <68orhc$nm8$1@news2.soco.de>, Jimbo <noc@bricbrac.de> wrote:
>>
>>>Could someone tell me how to get INN to run on port 120 ?
>>
>>Well it's hardcoded in the source, not even getservbyname() is used. You'll
>>have to recompile ..
>
>Hrm, I wonder how hard it would be to hack inndstart to offer an option
>for the port.
Not very. I have a patch that makes it an option in inn.conf, and
in fact that's in the Debian INN package (undocumented, but I needed
it myself ..)
Dunno what inn-1.8 does about it, probably something similar
Mike.
--
Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed
miquels@cistron.nl | awake all night wondering if there is a doG
Re: Q: INN on port 120
Author: John Milburn
Date: Mon, 05 Jan 1998 00:00
Date: Mon, 05 Jan 1998 00:00
85 lines
3302 bytes
3302 bytes
cddukes@cc04du.unity.ncsu.edu (Christopher D Dukes) writes:
>Miquel van Smoorenburg <miquels@cistron.nl> wrote:
>>>Could someone tell me how to get INN to run on port 120 ?
>>Well it's hardcoded in the source, not even getservbyname() is used. You'll
>>have to recompile ..
>Hrm, I wonder how hard it would be to hack inndstart to offer an option
>for the port.
Not very hard. With the following applied, call inndstart with "-P 120"
and you will run innd on port 120. Can be added to the "FLAGS" variable
in rc.news. I think Steiner Haug did this many moons ago. Applies well to
INN-1.[457]*.
-jem
*** innd/inndstart.c.orig Wed Oct 8 00:18:04 1997
--- innd/inndstart.c Thu Nov 13 22:35:35 1997
***************
*** 62,67 ****
--- 62,69 ----
struct sockaddr_in server;
register int i;
register int j;
+ int argnext = 1;
+ u_short nntp_port = NNTP_PORT;
#if defined(SO_REUSEADDR)
int on;
#endif /* defined(SO_REUSEADDR) */
***************
*** 73,78 ****
--- 75,87 ----
struct stat Sb;
(void)openlog("inndstart", L_OPENLOG_FLAGS, LOG_INN_PROG);
+
+ /* Any other options than -P <port> are passed to innd */
+ if (ac >= 3 && strncmp(av[1], "-P", 2) == 0) {
+ nntp_port = atoi(av[2]);
+ argnext += 2;
+ ac -= 2;
+ }
/* Make sure INND directory exists. */
if (stat(INNDDIR, &Sb) < 0 || !S_ISDIR(Sb.st_mode)) {
***************
*** 100,106 ****
syslog(L_ERROR, "inndstart cant setsockopt %m");
#endif /* defined(SO_REUSEADDR) */
(void)memset((POINTER)&server, 0, sizeof server);
! server.sin_port = htons(NNTP_PORT);
server.sin_family = AF_INET;
server.sin_addr.s_addr = htonl(INADDR_ANY);
if (bind(i, (struct sockaddr *)&server, sizeof server) < 0) {
--- 109,115 ----
syslog(L_ERROR, "inndstart cant setsockopt %m");
#endif /* defined(SO_REUSEADDR) */
(void)memset((POINTER)&server, 0, sizeof server);
! server.sin_port = htons(nntp_port);
server.sin_family = AF_INET;
server.sin_addr.s_addr = htonl(INADDR_ANY);
if (bind(i, (struct sockaddr *)&server, sizeof server) < 0) {
***************
*** 120,126 ****
#else
argv[j++] = _PATH_INND;
argv[j++] = pflag;
! for (i = 1; av[i]; ) {
if (strncmp(av[i], "-p", 2) != 0)
argv[j++] = av[i++];
else
--- 129,135 ----
#else
argv[j++] = _PATH_INND;
argv[j++] = pflag;
! for (i = argnext; av[i]; ) {
if (strncmp(av[i], "-p", 2) != 0)
argv[j++] = av[i++];
else
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads