LIBNL 3.0 classid lookup path

Thomas Graf tgraf at infradead.org
Thu Mar 24 12:52:40 EDT 2011


On Thu, Mar 24, 2011 at 05:02:11PM +0100, Sitbon Nicolas wrote:
> I'm currently looking for potential issues for migrating my
> application from libnl 2.0 to the newest 3.0.
> 
> It seems libnl try to read the file /etc/libnl/classid, /etc/libnl
> comes from SYSCONFDIR (lib/route/classid.c:313) which is a compile
> time constant. My problem is that I don't know where my clients will
> install my application (libnl is shipped with it and it's a closed
> source application) so I can't configure (--sysconfdir) the path at
> compile time. Do you think it might be possible to add a way to
> modify the path to classid at runtime (environment variable)?

I guess adding support for recognizing an environment variable
NLSYSCONFDIR would solve your problem?



More information about the libnl mailing list