Re: [Tlf-devel] change ip addres tlf binds to?
Yes, that was my general plan - but I thought I'd run the general idea by people to see if it was greatly opposed before I made a PR, ha ha.-EricOn September 26, 2018 at 2:15 PM Ervin Hegedüswrote:Hi Eric,On Wed, Sep 26, 2018 at 01:40:05PM -0400, Eric Tamme wrote:I've done a quick change which I think will add the ability toconfigure the IP via a config directive. Can you guys eyeballthe diff and see if it makes sense, or if I have missed anythingmajor?https://gist.github.com/etamme/5fab0f3c13717322b3abb85e8acea28fjust my 2cents: I see you've Github account, with several repos.Why don't you fork the Tlf from https://github.com/Tlf/tlf,create a new branch, apply the patch, and send a PR?:)73, Ervin ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel
Re: [Tlf-devel] change ip addres tlf binds to?
Hi Eric, On Wed, Sep 26, 2018 at 01:40:05PM -0400, Eric Tamme wrote: > I've done a quick change which I think will add the ability to > configure the IP via a config directive. Can you guys eyeball > the diff and see if it makes sense, or if I have missed anything > major? > > > https://gist.github.com/etamme/5fab0f3c13717322b3abb85e8acea28f just my 2cents: I see you've Github account, with several repos. Why don't you fork the Tlf from https://github.com/Tlf/tlf, create a new branch, apply the patch, and send a PR? :) 73, Ervin ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel
Re: [Tlf-devel] change ip addres tlf binds to?
I've done a quick change which I think will add the ability to configure the IP via a config directive. Can you guys eyeball the diff and see if it makes sense, or if I have missed anything major?https://gist.github.com/etamme/5fab0f3c13717322b3abb85e8acea28f-Eric / KK0ECTOn September 26, 2018 at 1:04 PM Hegedüs Ervinwrote:Hi Eric,On Wed, Sep 26, 2018 at 12:16:57PM -0400, Eric Tamme wrote:Hi Tom,I guess my confusion lies in the fact that, there is no way tospecify the bind ip for the socket server to listen on.you're right.Tlf (and nothing more) can't run more services on same ip:port.You can check the source:src/lancode.c: 106 int lanrecv_init(void) { 107 if (lan_active == 0) 108 return (1); 109 110 bzero(_sin, sizeof(lan_sin)); 111 lan_sin.sin_family = AF_INET; 112 lan_sin.sin_addr.s_addr = htonl(INADDR_ANY); 113 lan_sin.sin_port = htons(resolveService(default_lan_service)); 114 lan_sin_len = sizeof(lan_sin);only one receiver exists in one Tlf instance, and the receiversocket is unconfigurable, as you can see. The address will be0.0.0.0 (INADDR_ANY), port will be the default_lan_service (whichdeclared above of this part of code: 66 /* default port to listen for incomming packets and to send packet to */ 67 char default_lan_service[16] = "6788";so, I'm afraid you can't use more Tlf instances on same node_if_you_want_ to connect the nodes. I think there isn't otherrestriction.73, Ervin ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel
Re: [Tlf-devel] change ip addres tlf binds to?
Hi Eric, On Wed, Sep 26, 2018 at 12:16:57PM -0400, Eric Tamme wrote: > Hi Tom, > > I guess my confusion lies in the fact that, there is no way to > specify the bind ip for the socket server to listen on. you're right. Tlf (and nothing more) can't run more services on same ip:port. You can check the source: src/lancode.c: 106 int lanrecv_init(void) { 107 if (lan_active == 0) 108 return (1); 109 110 bzero(_sin, sizeof(lan_sin)); 111 lan_sin.sin_family = AF_INET; 112 lan_sin.sin_addr.s_addr = htonl(INADDR_ANY); 113 lan_sin.sin_port = htons(resolveService(default_lan_service)); 114 lan_sin_len = sizeof(lan_sin); only one receiver exists in one Tlf instance, and the receiver socket is unconfigurable, as you can see. The address will be 0.0.0.0 (INADDR_ANY), port will be the default_lan_service (which declared above of this part of code: 66 /* default port to listen for incomming packets and to send packet to */ 67 char default_lan_service[16] = "6788"; so, I'm afraid you can't use more Tlf instances on same node _if_you_want_ to connect the nodes. I think there isn't other restriction. 73, Ervin ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel
Re: [Tlf-devel] change ip addres tlf binds to?
Hi Tom,I guess my confusion lies in the fact that, there is no way to specify the bind ip for the socket server to listen on. So If I try to run multiple instances on the same machine, they will all try to bind to the same IP and port, and every instance after the first will fail to do so because the port is in use.Is this not the case?-EricOn September 26, 2018 at 11:51 AM Thomas Beierleinwrote:Hi Eric,Am Wed, 26 Sep 2018 10:12:29 -0400 (EDT)schrieb Eric Tamme :I am looking into using TLF for a multi op field day setup. I amthinking of potentially running multiple instances of TLF on the samerasberry pi server, each in their own directory etc, but I would liketo network them together to share logging etc.Tlf supports that by sending UDP packets to any configured address. You can use ADDNODE=[:] to choose which addresses (andport) to send the packets to. You need one ADDNODE for every IPaddress, node combination. By default tlf uses port 6788, so it isenough to configure the ip-address.To recognize the sending program each one needs an unique nodeidentifier. Use THISNODE= for that.e.g.ADDNODE=127.0.0.1ADDNODE=192.168.3.12THISNODE=Cwill broadcast to localhost and 192.168.3.12 and marks each outgoingpacket as coming from node C. You can have more than one node at anip-address.The connection can be used to transferlog data to keep logs in syncpacket data from a cluster (only one node needs a cluster connection)bandmap spot data from any node (for worked stations or from a band monitoring station)run frequency of the nodetalk data between the stations andtime synchronisation if neededSee the section "LAN connection" in the old document from Rein PA0Rhttp://tlf.github.io/tlfdoc.old/tlfdoc.html#lan .It may be a bit outdated, but give you a start.73, de Tom DL1JBE>-- "Do what is needful!"Ursula LeGuin: Earthsea--___Tlf-devel mailing listTlf-devel@nongnu.orghttps://lists.nongnu.org/mailman/listinfo/tlf-devel ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel
Re: [Tlf-devel] change ip addres tlf binds to?
Hi Eric, Am Wed, 26 Sep 2018 10:12:29 -0400 (EDT) schrieb Eric Tamme : > I am looking into using TLF for a multi op field day setup. I am > thinking of potentially running multiple instances of TLF on the same > rasberry pi server, each in their own directory etc, but I would like > to network them together to share logging etc. > Tlf supports that by sending UDP packets to any configured address. You can use ADDNODE=[:] to choose which addresses (and port) to send the packets to. You need one ADDNODE for every IP address, node combination. By default tlf uses port 6788, so it is enough to configure the ip-address. To recognize the sending program each one needs an unique node identifier. Use THISNODE= for that. e.g. ADDNODE=127.0.0.1 ADDNODE=192.168.3.12 THISNODE=C will broadcast to localhost and 192.168.3.12 and marks each outgoing packet as coming from node C. You can have more than one node at an ip-address. The connection can be used to transfer * log data to keep logs in sync * packet data from a cluster (only one node needs a cluster connection) * bandmap spot data from any node (for worked stations or from a band monitoring station) * run frequency of the node * talk data between the stations and * time synchronisation if needed See the section "LAN connection" in the old document from Rein PA0R http://tlf.github.io/tlfdoc.old/tlfdoc.html#lan . It may be a bit outdated, but give you a start. 73, de Tom DL1JBE > -- "Do what is needful!" Ursula LeGuin: Earthsea -- ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel
[Tlf-devel] change ip addres tlf binds to?
I am looking into using TLF for a multi op field day setup. I am thinking of potentially running multiple instances of TLF on the same rasberry pi server, each in their own directory etc, but I would like to network them together to share logging etc.I see that TLF is bound to 0.0.0.0 via netstat, is there a config directive to tell TLF to bind to a specific IP e.g.: BIND_IP=127.0.0.2 ?Thanks again,Eric / KK0ECT ___ Tlf-devel mailing list Tlf-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tlf-devel