[mythtv] HDHomeRun discover broadcast
Daniel Kristjansson
danielk at cuymedia.net
Tue Oct 31 16:11:43 UTC 2006
On Tue, 2006-10-31 at 10:42 -0500, Jim Paris wrote:
> > 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.
>
> 4) Identify the HDHomeRun by IP address rather than ID and avoid the
> issue. I provided a patch to do this here:
> http://svn.mythtv.org/trac/ticket/2609
>
> 5) Use SO_BINDTODEVICE. Unfortunately, this requires root, but it
> adds no new dependencies. I've written and attached a small test
> program that uses this to send a UDP packet out on all interfaces.
6) Dynamically load the libraries at runtime if they are installed,
otherwise revert to the old code, and also add defines and configure
detection so that this code is only compiled if the needed headers
exist. Then this is a dependency that the package maintainer must
install, but the libraries are not required at run time and hence
not a required dependency for the package.
I think all the other options except 1 and 4 are non-starters.
-- Daniel
More information about the mythtv-dev
mailing list