RE: [Linux-decnet-user] Closing DECNET connections
Brought to you by:
chrissie_c,
ph3-der-loewe
|
From: Lhota R. <rl...@co...> - 2002-04-18 08:51:44
|
> If you do that command on VMS then the Linux connections will timeout.
>=20
The problem is, that I unfortunatelly dont have access to VAX/VMS
machines at all because they belong to our customer (I am implementing
part of SLM and all I have are DECNET addresses of VAX machines). So my
only possibility is to clear connections from Linux, which is impossible
or only possible by rebooting the machine. Or am I wrong?
Robert
> -----Original Message-----
> From: Patrick Caulfield [mailto:pa...@ty...]
> Sent: Wednesday, April 17, 2002 4:44 PM
> To: Lin...@li...
> Subject: Re: [Linux-decnet-user] Closing DECNET connections
>=20
>=20
> On Wed, Apr 17, 2002 at 04:27:49PM +0200, Lhota Robert wrote:
> > Thank you very much for the timeout option. I think it solves my
> > problem. I had to comment out the section:
> >=20
> > if (options & DNF_TIMEOUT)
> > {
> > int status;
> > fd_set in_fd;
> >=20
> > FD_ZERO(&in_fd);=20
> > ...
> >=20
> > because it caused the program exit with "Timeout" every=20
> time when used
> > with options -t -w together (f.e. dnping -t -w 10 11.42). Instead of
> > that I extended the alarm to the all program by commenting=20
> out alarm(0)
> > function. I am not c-coder at all but this works for me now.
>=20
> Aha typo! here's the fix:
> diff -u -r1.4 dnping.c
>=20
> --- dnping.c 17 Apr 2002 07:42:31 -0000 1.4
> +++ dnping.c 17 Apr 2002 14:41:19 -0000
> @@ -423,7 +423,7 @@
> timeout.tv_sec =3D timeout_sec;
> timeout.tv_usec =3D 0;
> =20
> - status =3D select(sockfd+1, &in_fd, NULL, NULL, &tv);
> + status =3D select(sockfd+1, &in_fd, NULL, NULL, &timeout);
> if (status < 0)
> {
> perror("select");
>=20
>=20
> =20
> > Do I understand it right, that
> > mc ncp sho kno links
> > and
> > NCP DISCONECT LINK=20
> > are VAX machine commands and cannot be used on Linux=20
> implementation of
> > DECNET? Is there than any possibility how to clear the "zombie
> > connections" from Linux? I tried to restart decnet vie=20
> startup scripts
> > (/etc/init.d/decnet on RedHat) but it didn't clear the=20
> connections and
> > even than I could not dnping the hosts that were in the=20
> connections any
> > more (after decnet restart).
>=20
> Yes, those are VMS commands, there is no Linux equivalent=20
> that I know of - and
> you need privileges on VMS to do it.
>=20
> If you do that command on VMS then the Linux connections will timeout.
>=20
> patrick
>=20
>=20
> _______________________________________________
> Linux-decnet-user mailing list
> Lin...@li...
> https://lists.sourceforge.net/lists/listinfo/linux-decnet-user
>=20
|