Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

It's computer hardware, of course it's worth having <g> -- Espy on #Debian


computers / comp.sys.tandem / Re: TNSX socket IP designation

SubjectAuthor
* TNSX socket IP designationSRSeedBurners
`* Re: TNSX socket IP designationBill Honaker
 `* Re: TNSX socket IP designationBill Honaker
  `* Re: TNSX socket IP designationRandall
   `* Re: TNSX socket IP designationBill Honaker
    `- Re: TNSX socket IP designationRandall

1
TNSX socket IP designation

<6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=583&group=comp.sys.tandem#583

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:ac8:6b41:0:b0:3ae:d88a:7d1d with SMTP id x1-20020ac86b41000000b003aed88a7d1dmr1051463qts.538.1674669131099;
Wed, 25 Jan 2023 09:52:11 -0800 (PST)
X-Received: by 2002:a0d:d403:0:b0:506:484c:ccf9 with SMTP id
w3-20020a0dd403000000b00506484cccf9mr847502ywd.118.1674669130850; Wed, 25 Jan
2023 09:52:10 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border-2.nntp.ord.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.tandem
Date: Wed, 25 Jan 2023 09:52:10 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=23.151.80.1; posting-account=EIqXBgoAAACZGpBWhVWvgxHE6yYUsBPN
NNTP-Posting-Host: 23.151.80.1
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com>
Subject: TNSX socket IP designation
From: sterling...@gmail.com (SRSeedBurners)
Injection-Date: Wed, 25 Jan 2023 17:52:11 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Lines: 15
 by: SRSeedBurners - Wed, 25 Jan 2023 17:52 UTC

We are transitioning to our new x-series systems. Probably using wrong terminology here but - our new tcpip topology is going to use a provider stack name (e.g. $ZTC10) which will have TWO tcpip numbers associated with it (e.g. 69.25.1.2 & 69.25.1.5). On our current TNSE systems we have one IP number per stack (i.e. $ZTC10 is 69.25.1.2). The new system is using a active-active failover so that if one CLIM goes down the other takes over without skipping a beat. I have no idea how that works but....

My question: is there a way to pick which IP address is used in our code? We currently get a socket using

socket_set_inet_name(STACK_NAME);
socket = socket_nw(AF_INET,SOCK_STREAM,ITPROTO_TCP,2D,2D);

I was told that it's going to round-robin now between the addresses. Can't have that.

Re: TNSX socket IP designation

<7ns2thp6t6cdpaorjbdhjk9ien0j403obt@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=584&group=comp.sys.tandem#584

  copy link   Newsgroups: comp.sys.tandem
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail
From: no_spam_...@x_i_d.com (Bill Honaker)
Newsgroups: comp.sys.tandem
Subject: Re: TNSX socket IP designation
Organization: XID, Ltd.
Message-ID: <7ns2thp6t6cdpaorjbdhjk9ien0j403obt@4ax.com>
References: <6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 14
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Wed, 25 Jan 2023 12:21:39 -0600
X-Received-Bytes: 1733
 by: Bill Honaker - Wed, 25 Jan 2023 18:21 UTC

On Wed, 25 Jan 2023 09:52:10 -0800 (PST), SRSeedBurners <sterlingranch@gmail.com> wrote:

>We are transitioning to our new x-series systems. Probably using wrong terminology here but - our new tcpip topology is going to use a provider stack name (e.g. $ZTC10) which will have TWO tcpip numbers associated with it (e.g. 69.25.1.2 & 69.25.1.5). On our current TNSE systems we have one IP number per stack (i.e. $ZTC10 is 69.25.1.2). The new system is using a active-active failover so that if one CLIM goes down the other takes over without skipping a beat. I have no idea how that works but....
>
>My question: is there a way to pick which IP address is used in our code? We currently get a socket using
>
>socket_set_inet_name(STACK_NAME);
>socket = socket_nw(AF_INET,SOCK_STREAM,ITPROTO_TCP,2D,2D);
>
>I was told that it's going to round-robin now between the addresses. Can't have that.

Look into the call to 'bind(), placed after the socket_nw() completes'. This works for clients (connect_nw) or servers (listen).

Bill

Re: TNSX socket IP designation

<1j36thdlhn20817oqd17tn18j8dstouijt@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=586&group=comp.sys.tandem#586

  copy link   Newsgroups: comp.sys.tandem
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx05.iad.POSTED!not-for-mail
From: no_spam_...@x_i_d.com (Bill Honaker)
Newsgroups: comp.sys.tandem
Subject: Re: TNSX socket IP designation
Organization: XID, Ltd.
Message-ID: <1j36thdlhn20817oqd17tn18j8dstouijt@4ax.com>
References: <6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com> <7ns2thp6t6cdpaorjbdhjk9ien0j403obt@4ax.com>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 40
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Thu, 26 Jan 2023 17:40:30 -0600
X-Received-Bytes: 2630
 by: Bill Honaker - Thu, 26 Jan 2023 23:40 UTC

On Wed, 25 Jan 2023 12:21:39 -0600, Bill Honaker <no_spam_bhonaker__@x_i_d.com> wrote:

>On Wed, 25 Jan 2023 09:52:10 -0800 (PST), SRSeedBurners <sterlingranch@gmail.com> wrote:
>
>>We are transitioning to our new x-series systems. Probably using wrong terminology here but - our new tcpip topology is going to use a provider stack name (e.g. $ZTC10) which will have TWO tcpip numbers associated with it (e.g. 69.25.1.2 & 69.25.1.5). On our current TNSE systems we have one IP number per stack (i.e. $ZTC10 is 69.25.1.2). The new system is using a active-active failover so that if one CLIM goes down the other takes over without skipping a beat. I have no idea how that works but....
>>
>>My question: is there a way to pick which IP address is used in our code? We currently get a socket using
>>
>>socket_set_inet_name(STACK_NAME);
>>socket = socket_nw(AF_INET,SOCK_STREAM,ITPROTO_TCP,2D,2D);
>>
>>I was told that it's going to round-robin now between the addresses. Can't have that.
>
>Look into the call to 'bind(), placed after the socket_nw() completes'. This works for clients (connect_nw) or servers (listen).
>
>Bill

In C, the code would be something like this (there may need to be some casts):

#include <socket.h>
#include <in.h>
#include <netdb.h>
int error, socket;
struct sockaddr_in addr;
long tag;

addr.sa_family = AF_INET;
addr.sin_port = 2323;
addr.sin_addr = inet_addr("192.168.1.1");
error = bind (socket, &addr, sizeof(addr), address_len);
or
error = bind_nw (socket, &addr, sizeof(addr), tag);

Compile this with extensions on. Note that the address you put in must be one of the subnets that is defined to run in the stack (eg $ZTC0).

If you need an IPV6 addrses, usea sockaddr_in6 instead of a sockaddr_in and fill it in appropriately.

Good luck, let us know if you get it working (with maybe a simple example!
Bill

Re: TNSX socket IP designation

<030243ce-9e9b-4bbc-b92d-d1e2a1d88b24n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=587&group=comp.sys.tandem#587

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:ac8:5cc7:0:b0:3b8:3391:bddd with SMTP id s7-20020ac85cc7000000b003b83391bdddmr12622qta.416.1674846686584;
Fri, 27 Jan 2023 11:11:26 -0800 (PST)
X-Received: by 2002:a25:324a:0:b0:80b:9933:c860 with SMTP id
y71-20020a25324a000000b0080b9933c860mr1445578yby.553.1674846686338; Fri, 27
Jan 2023 11:11:26 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.tandem
Date: Fri, 27 Jan 2023 11:11:26 -0800 (PST)
In-Reply-To: <1j36thdlhn20817oqd17tn18j8dstouijt@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fea8:3f9d:3b00:e02c:7320:77c0:daa9;
posting-account=6VebZwoAAAAgrpUtsowyjrKRLNlqxnXo
NNTP-Posting-Host: 2607:fea8:3f9d:3b00:e02c:7320:77c0:daa9
References: <6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com>
<7ns2thp6t6cdpaorjbdhjk9ien0j403obt@4ax.com> <1j36thdlhn20817oqd17tn18j8dstouijt@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <030243ce-9e9b-4bbc-b92d-d1e2a1d88b24n@googlegroups.com>
Subject: Re: TNSX socket IP designation
From: rsbec...@nexbridge.com (Randall)
Injection-Date: Fri, 27 Jan 2023 19:11:26 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 3969
 by: Randall - Fri, 27 Jan 2023 19:11 UTC

On Thursday, January 26, 2023 at 6:40:33 p.m. UTC-5, Bill Honaker wrote:
> On Wed, 25 Jan 2023 12:21:39 -0600, Bill Honaker <no_spam_bhonaker__@x_i_d.com> wrote:
>
> >On Wed, 25 Jan 2023 09:52:10 -0800 (PST), SRSeedBurners <sterli...@gmail..com> wrote:
> >
> >>We are transitioning to our new x-series systems. Probably using wrong terminology here but - our new tcpip topology is going to use a provider stack name (e.g. $ZTC10) which will have TWO tcpip numbers associated with it (e.g. 69.25.1.2 & 69.25.1.5). On our current TNSE systems we have one IP number per stack (i.e. $ZTC10 is 69.25.1.2). The new system is using a active-active failover so that if one CLIM goes down the other takes over without skipping a beat. I have no idea how that works but....
> >>
> >>My question: is there a way to pick which IP address is used in our code? We currently get a socket using
> >>
> >>socket_set_inet_name(STACK_NAME);
> >>socket = socket_nw(AF_INET,SOCK_STREAM,ITPROTO_TCP,2D,2D);
> >>
> >>I was told that it's going to round-robin now between the addresses. Can't have that.
> >
> >Look into the call to 'bind(), placed after the socket_nw() completes'. This works for clients (connect_nw) or servers (listen).
> >
> >Bill
> In C, the code would be something like this (there may need to be some casts):
>
> #include <socket.h>
> #include <in.h>
> #include <netdb.h>
> int error, socket;
> struct sockaddr_in addr;
> long tag;
>
>
> addr.sa_family = AF_INET;
> addr.sin_port = 2323;
> addr.sin_addr = inet_addr("192.168.1.1");
> error = bind (socket, &addr, sizeof(addr), address_len);
> or
> error = bind_nw (socket, &addr, sizeof(addr), tag);
>
> Compile this with extensions on. Note that the address you put in must be one of the subnets that is defined to run in the stack (eg $ZTC0).
>
> If you need an IPV6 addrses, usea sockaddr_in6 instead of a sockaddr_in and fill it in appropriately.
>
> Good luck, let us know if you get it working (with maybe a simple example!
> Bill

Depends on whether this is in Guardian or OSS. bind_nw, AFAIK, is no longer supported in OSS. You might have to use other defines also, like _XOPEN_SOURCE_EXTENDED 1, and _XOPEN_SOURCE, to make the right definitions available.. I am not sure you can pick in IPv6 address. Whether this works also depends on whether your stack is multi-home or not. If it not, picking the appropriate =TCPIP^PROCESS^NAME define value may be sufficient without changing code.

Re: TNSX socket IP designation

<8he8thhl3uf3fal8ucsmcg9cgcbko8i7d5@4ax.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=588&group=comp.sys.tandem#588

  copy link   Newsgroups: comp.sys.tandem
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx12.iad.POSTED!not-for-mail
From: no_spam_...@x_i_d.com (Bill Honaker)
Newsgroups: comp.sys.tandem
Subject: Re: TNSX socket IP designation
Organization: XID, Ltd.
Message-ID: <8he8thhl3uf3fal8ucsmcg9cgcbko8i7d5@4ax.com>
References: <6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com> <7ns2thp6t6cdpaorjbdhjk9ien0j403obt@4ax.com> <1j36thdlhn20817oqd17tn18j8dstouijt@4ax.com> <030243ce-9e9b-4bbc-b92d-d1e2a1d88b24n@googlegroups.com>
X-Newsreader: Forte Agent 6.00/32.1186
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 47
X-Complaints-To: abuse@easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Fri, 27 Jan 2023 14:55:39 -0600
X-Received-Bytes: 3548
 by: Bill Honaker - Fri, 27 Jan 2023 20:55 UTC

On Fri, 27 Jan 2023 11:11:26 -0800 (PST), Randall <rsbecker@nexbridge.com> wrote:

>On Thursday, January 26, 2023 at 6:40:33 p.m. UTC-5, Bill Honaker wrote:
>> On Wed, 25 Jan 2023 12:21:39 -0600, Bill Honaker <no_spam_bhonaker__@x_i_d.com> wrote:
>>
>> >On Wed, 25 Jan 2023 09:52:10 -0800 (PST), SRSeedBurners <sterli...@gmail.com> wrote:
>> >
>> >>We are transitioning to our new x-series systems. Probably using wrong terminology here but - our new tcpip topology is going to use a provider stack name (e.g. $ZTC10) which will have TWO tcpip numbers associated with it (e.g. 69.25.1.2 & 69.25.1.5). On our current TNSE systems we have one IP number per stack (i.e. $ZTC10 is 69.25.1.2). The new system is using a active-active failover so that if one CLIM goes down the other takes over without skipping a beat. I have no idea how that works but....
>> >>
>> >>My question: is there a way to pick which IP address is used in our code? We currently get a socket using
>> >>
>> >>socket_set_inet_name(STACK_NAME);
>> >>socket = socket_nw(AF_INET,SOCK_STREAM,ITPROTO_TCP,2D,2D);
>> >>
>> >>I was told that it's going to round-robin now between the addresses. Can't have that.
>> >
>> >Look into the call to 'bind(), placed after the socket_nw() completes'. This works for clients (connect_nw) or servers (listen).
>> >
>> >Bill
>> In C, the code would be something like this (there may need to be some casts):
>>
>> #include <socket.h>
>> #include <in.h>
>> #include <netdb.h>
>> int error, socket;
>> struct sockaddr_in addr;
>> long tag;
>>
>>
>> addr.sa_family = AF_INET;
>> addr.sin_port = 2323;
>> addr.sin_addr = inet_addr("192.168.1.1");
>> error = bind (socket, &addr, sizeof(addr), address_len);
>> or
>> error = bind_nw (socket, &addr, sizeof(addr), tag);
>>
>> Compile this with extensions on. Note that the address you put in must be one of the subnets that is defined to run in the stack (eg $ZTC0).
>>
>> If you need an IPV6 addrses, usea sockaddr_in6 instead of a sockaddr_in and fill it in appropriately.
>>
>> Good luck, let us know if you get it working (with maybe a simple example!
>> Bill
>
>Depends on whether this is in Guardian or OSS. bind_nw, AFAIK, is no longer supported in OSS. You might have to use other defines also, like _XOPEN_SOURCE_EXTENDED 1, and _XOPEN_SOURCE, to make the right definitions available. I am not sure you can pick in IPv6 address. Whether this works also depends on whether your stack is multi-home or not. If it not, picking the appropriate =TCPIP^PROCESS^NAME define value may be sufficient without changing code.

Since the OP had socket_nw() in his example I assumed Guardian.

Re: TNSX socket IP designation

<2d4b621c-788b-4091-873b-321b47eed984n@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=589&group=comp.sys.tandem#589

  copy link   Newsgroups: comp.sys.tandem
X-Received: by 2002:a37:b05:0:b0:71d:6621:be94 with SMTP id 5-20020a370b05000000b0071d6621be94mr44105qkl.147.1674944209371;
Sat, 28 Jan 2023 14:16:49 -0800 (PST)
X-Received: by 2002:a25:324a:0:b0:80b:9933:c860 with SMTP id
y71-20020a25324a000000b0080b9933c860mr1881176yby.553.1674944209146; Sat, 28
Jan 2023 14:16:49 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.sys.tandem
Date: Sat, 28 Jan 2023 14:16:48 -0800 (PST)
In-Reply-To: <8he8thhl3uf3fal8ucsmcg9cgcbko8i7d5@4ax.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2607:fea8:3f9d:3b00:b1c8:6307:8494:d5e7;
posting-account=6VebZwoAAAAgrpUtsowyjrKRLNlqxnXo
NNTP-Posting-Host: 2607:fea8:3f9d:3b00:b1c8:6307:8494:d5e7
References: <6ae1ab03-5a82-4629-bb7d-c05c60e63b85n@googlegroups.com>
<7ns2thp6t6cdpaorjbdhjk9ien0j403obt@4ax.com> <1j36thdlhn20817oqd17tn18j8dstouijt@4ax.com>
<030243ce-9e9b-4bbc-b92d-d1e2a1d88b24n@googlegroups.com> <8he8thhl3uf3fal8ucsmcg9cgcbko8i7d5@4ax.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2d4b621c-788b-4091-873b-321b47eed984n@googlegroups.com>
Subject: Re: TNSX socket IP designation
From: rsbec...@nexbridge.com (Randall)
Injection-Date: Sat, 28 Jan 2023 22:16:49 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 4563
 by: Randall - Sat, 28 Jan 2023 22:16 UTC

On Friday, January 27, 2023 at 3:55:42 p.m. UTC-5, Bill Honaker wrote:
> On Fri, 27 Jan 2023 11:11:26 -0800 (PST), Randall <rsbe...@nexbridge.com> wrote:
>
> >On Thursday, January 26, 2023 at 6:40:33 p.m. UTC-5, Bill Honaker wrote:
> >> On Wed, 25 Jan 2023 12:21:39 -0600, Bill Honaker <no_spam_bhonaker__@x_i_d.com> wrote:
> >>
> >> >On Wed, 25 Jan 2023 09:52:10 -0800 (PST), SRSeedBurners <sterli...@gmail.com> wrote:
> >> >
> >> >>We are transitioning to our new x-series systems. Probably using wrong terminology here but - our new tcpip topology is going to use a provider stack name (e.g. $ZTC10) which will have TWO tcpip numbers associated with it (e.g. 69.25.1.2 & 69.25.1.5). On our current TNSE systems we have one IP number per stack (i.e. $ZTC10 is 69.25.1.2). The new system is using a active-active failover so that if one CLIM goes down the other takes over without skipping a beat. I have no idea how that works but....
> >> >>
> >> >>My question: is there a way to pick which IP address is used in our code? We currently get a socket using
> >> >>
> >> >>socket_set_inet_name(STACK_NAME);
> >> >>socket = socket_nw(AF_INET,SOCK_STREAM,ITPROTO_TCP,2D,2D);
> >> >>
> >> >>I was told that it's going to round-robin now between the addresses. Can't have that.
> >> >
> >> >Look into the call to 'bind(), placed after the socket_nw() completes'. This works for clients (connect_nw) or servers (listen).
> >> >
> >> >Bill
> >> In C, the code would be something like this (there may need to be some casts):
> >>
> >> #include <socket.h>
> >> #include <in.h>
> >> #include <netdb.h>
> >> int error, socket;
> >> struct sockaddr_in addr;
> >> long tag;
> >>
> >>
> >> addr.sa_family = AF_INET;
> >> addr.sin_port = 2323;
> >> addr.sin_addr = inet_addr("192.168.1.1");
> >> error = bind (socket, &addr, sizeof(addr), address_len);
> >> or
> >> error = bind_nw (socket, &addr, sizeof(addr), tag);
> >>
> >> Compile this with extensions on. Note that the address you put in must be one of the subnets that is defined to run in the stack (eg $ZTC0).
> >>
> >> If you need an IPV6 addrses, usea sockaddr_in6 instead of a sockaddr_in and fill it in appropriately.
> >>
> >> Good luck, let us know if you get it working (with maybe a simple example!
> >> Bill
> >
> >Depends on whether this is in Guardian or OSS. bind_nw, AFAIK, is no longer supported in OSS. You might have to use other defines also, like _XOPEN_SOURCE_EXTENDED 1, and _XOPEN_SOURCE, to make the right definitions available. I am not sure you can pick in IPv6 address. Whether this works also depends on whether your stack is multi-home or not. If it not, picking the appropriate =TCPIP^PROCESS^NAME define value may be sufficient without changing code.
> Since the OP had socket_nw() in his example I assumed Guardian.

Me too, but at one point in time, socket_nw() was not excluded explicitly from OSS. No RVU was given by the OP.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor