[Dnsmasq-discuss] NETLINK_NO_ENOBUFS not defined on old platforms
Simon Kelley
simon at thekelleys.org.uk
Thu Mar 19 22:01:55 GMT 2020
http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commit;h=0506a5ed4e56863627c54aedad30ad61221292ef
should handle both old kernel header files and old kernels, in any
combination.
Cheers,
Simon.
On 19/03/2020 13:16, Petr Gotthard wrote:
> Hello,
>
> The commit
> http://thekelleys.org.uk/gitweb/?p=dnsmasq.git;a=commitdiff;h=1627d577af03cdf747285e79fa747b6aaae8033f
>
> introduced NETLINK_NO_ENOBUFS, which is not available on some ancient platforms (which are however still in use).
>
> The build of 2.81rc4 fails on these platforms now.
> Would it be possible to have #ifdefs around that, please?
>
>
> Regards,
> Petr
>
> diff -Nru dnsmasq-2.81rc4/src/netlink.c dnsmasq-2.81rc4.modified/src/netlink.c
> --- dnsmasq-2.81rc4/src/netlink.c 2020-03-19 13:54:37.804346907 +0100
> +++ dnsmasq-2.81rc4.modified/src/netlink.c 2020-03-19 13:53:14.868860449 +0100
> @@ -79,7 +79,9 @@
> }
>
> if (daemon->netlinkfd == -1 ||
> +#ifdef NETLINK_NO_ENOBUFS
> setsockopt(daemon->netlinkfd, SOL_NETLINK, NETLINK_NO_ENOBUFS, &opt, sizeof(opt)) == -1 ||
> +#endif
> getsockname(daemon->netlinkfd, (struct sockaddr *)&addr, &slen) == -1)
> die(_("cannot create netlink socket: %s"), NULL, EC_MISC);
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
>
More information about the Dnsmasq-discuss
mailing list