[mythtv] HDHomeRun discover broadcast

Jafa hdtv at silicondust.com
Tue Oct 31 14:21:11 UTC 2006


Isaac Richards wrote:
> On Tuesday 31 October 2006 4:36 am, Jafa wrote:
>   
>> The solution is to iterate all IP addresses on all interfaces to send
>> out subnet-broadcasts.
>>
>> I have this working under Windows using the built in API and under Linux
>> using the netlink/route2 API.
>>
>> The potential issue is that this fix introduces a new library
>> dependency. The Ubuntu distribution includes the library as standard but
>> you need to install libnl-dev and route2-dev for it to compile.
>>
>> What is the policy/process for handling adding library dependencies to
>> MythTV?
>>     
>
> Policy is no new deps unless absolutely necessary.
>   
That is a good policy in general - I have to agree.

Options that spring to mind:

1) Find another way to determine all the subnets across all interfaces.
I have gone through the ifconfig source code - it isn't pretty.
The netlink API was designed for this class of use. Any attempt to avoid 
using the netlink API will result in re-implementing chunks of the 
netlink API.

2) Define these dependencies as "absolutely necessary".
Problem solved by definition :-)

3) Define these dependencies as optional - used if present and generate 
a helpful warning if not present.
For people compiling for themselves it doesn't matter much (unless they 
have a HDHomeRun and they have multiple IP addresses, in which case they 
should install the libraries).
For people building public packages the libraries should be used so that 
it will work for everyone using the packages.

Any thoughts/preference or any other options that spring to mind?

Nick



More information about the mythtv-dev mailing list