On Friday 18 March 2016 12:53:37 Matthias Schiffer wrote: [...]
Thanks for the build testing, I haven't put too much thought into the compat issues yet. The genl_register_family_with_ops error should be easy to fix, the struct netlink_skb_parms differences might be more problematic.
The genl_register_family_with_ops error can most likely be solved by
https://git.kernel.org/cgit/linux/kernel/git/backports/backports.git/tree/ba...
The netlink_skb_parms most likely can be fixed by redefining NETLINK_CB to something which casts to a structure with the name portid for the field pid for Linux < 3.7.
struct netlink_skb_parms_compat { struct scm_creds creds; __u32 portid; /* was renamed in 3.7 from "pid" */ __u32 dst_group; __u32 flags; struct sock *sk; };
Kind regards, Sven