pbiering / ipv6calc

ipv6calc
https://www.deepspace6.net/projects/ipv6calc.html
Other
45 stars 15 forks source link

LGPLness in lib #5

Closed dtaht closed 7 years ago

dtaht commented 7 years ago

I have to admit that I have lust in my heart to be able to lift bits of ipv6calc into a simpler library mostly dedicated to dealing with prefix pools quickly (sse2 and arm intrinsics for the fast stuff). But to do that, I'd have to license it LGPL, and it looks as though ipv6calc the program is GPLv2 (which is fine) and most of the libraries could be LGPL, except that they aren't.

pbiering commented 7 years ago

would you mean split up existing libraries, e.g.

/usr/lib64/libipv6calc.so.0.99.2
/usr/lib64/libipv6calc_db_wrapper.so.0.99.2

into more? Then first a set of functions must be defined which can be used by 3rd party tools linked to new library...unfortunatly code isn't really clean enough structured. I've started working on some abstraction layers to keep at least here the API stable enogh, see mod_ipv6calc which tries to use partially abstracted functions.

Also then only the abstracted functions should be marked as "exportable".

BTW: most of the "intelligence" is in the library and not in the binaries.

So the major work would be

dtaht commented 7 years ago

Yep. Too difficult to do to your codebase. What I started doing instead was start from scratch with lots of ranting.

I am a pretty dedicated user of ipv6calc (and thank you for it!), but it's the busted prefix distribution/splitting/searching from within a variety of C and C++ daemons that has been making me crazy, and that's what I'm going to try to address in the coming months.