[systemd-devel] [PATCH] network: Implement fallback DHCPv6 prefix handling for older kernels

Alexander Sverdlin alexander.sverdlin at gmail.com
Thu Apr 9 11:15:03 PDT 2015


Hi!

On 09/04/15 12:45, Patrik Flykt wrote:
>> Hmm, in general, we really should try to create the same binaries,
>> > regardless if we are built on an old or new kernel. And the binaries
>> > should work as good as possible, regardless which kernel version they
>> > are running on. But with the change above the binary built on a newer
>> > kernel work differently from an older kernel, even though we added the
>> > definition to missing.h to make the distinction go away...
>> > 
>> > Or in other words: we try to do runtime compat, not just compile time
>> > compat, so that we don't strictly have to sync kernel and userspace
>> > updated.
> Hmm, I was suspecting that for a moment. I need to come up with a better
> runtime solution for version 2 of the patch then.

You should construct and send netlink packet as for kernel 3.14, but be
prepared, you will get error back on 3.13, because the parameter is unknown.
So you just need to handle the error gacefully, not fail.

Alex.


More information about the systemd-devel mailing list