LIBNL 3.0 classid lookup path

nicolas sitbon nicolas.sitbon at gmail.com
Thu Mar 24 13:40:54 EDT 2011


Le jeudi 24 mars 2011, Thomas Graf <tgraf at infradead.org> a écrit :
> 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?
>

absolutely!



More information about the libnl mailing list