Closed petrkr closed 3 months ago
I would assume that the change needs to happen in https://github.com/rscada/libmbus/blob/master/mbus/mbus-tcp.c#L60-L69 and needs to get configurable or detectable. most likely another address family needs to be given.
I do not know the linux APIs enough, but should be documented. So "just" need to find time ;-)
Well, I've rewritten part of TCP connect and it works now.
But since how much forks and similar "addons" I see. I am little-bit sad everyone just fork, do own update and not do pull request. But since there are already 15 open PR without any comment it seems to be dead project already.
But problem is if every distro will use this as source for packages, it will never be fixed.
https://github.com/petrkr/libmbus/commit/a6297b406a5a2e6734552a6a1dda954ab41f393a
[petrkr@pkdell libmbus (ipv6 %=)]$ ./bin/mbus-tcp-request-data aaaa::860d:8eff:abcd:d000 1234 10
<?xml version="1.0" encoding="ISO-8859-1"?>
<MBusData>
<SlaveInformation>
<Id>22100477</Id>
<Manufacturer>ACW</Manufacturer>
I'm merged pull request #213 Thanks @petrkr
Tested again from master and it works fine. Thanks
But over IPv4 it works