[mythtv-users] Mythbackend does not bind to IP addresses of interfaces without carrier

Raymond Wagner raymond at wagnerrp.com
Wed Jun 26 23:20:56 UTC 2013


On 6/26/2013 5:03 PM, Florian Evers wrote:
> Hi Raymond,
>
> Am Mittwoch, 26. Juni 2013, 13:17:46 schrieb Raymond Wagner:
>> We get a list of available addresses on the system through the Qt
>> libraries. If the address you want to use is not being used by
>> MythBackend, it's because we're being told it doesn't currently exist,
>> and so we don't attempt to bind to it.
>
> Okay, that sounds very interesting, so I took a look into the sources. The
> results are as follows:
>
> In the file libs/libmythbase/serverpool.cpp, the available interfaces are
> enumerated and their IP adresses are obtained. Very interesting is line 109.
> Here, the current interface iterator is checked if the interface is
> "isRunning"... and if it is not running, it is skipped!

That line was added here...

http://code.mythtv.org/cgit/mythtv/diff/mythtv/libs/libmythbase/serverpool.cpp?id=34c46f19

...which would suggest it was correcting for an issue where MythTV would 
fail to bind to addresses on interfaces that were not yet running. It is 
possible merely checking for IsUp would have the same effect.


More information about the mythtv-users mailing list