[systemd-devel] [PATCH] networkd: Begin with serial number 1 for netlink requests

Richard Maw richard.maw at codethink.co.uk
Fri Mar 13 03:03:29 PDT 2015


On Thu, Mar 12, 2015 at 06:14:58PM +0000, Richard Maw wrote:
> diff --git a/src/libsystemd/sd-rtnl/sd-rtnl.c b/src/libsystemd/sd-rtnl/sd-rtnl.c
> index ae49c77..5f54acd 100644
> --- a/src/libsystemd/sd-rtnl/sd-rtnl.c
> +++ b/src/libsystemd/sd-rtnl/sd-rtnl.c
> @@ -61,6 +61,11 @@ static int sd_rtnl_new(sd_rtnl **ret) {
>                              sizeof(struct nlmsghdr), sizeof(uint8_t)))
>                  return -ENOMEM;
>  
> +        /* Change notification responses have sequence 0, so we must
> +         * start our request sequence numbers at 1, or we may confuse our
> +         * responses with notifications from the kernel */
> +        rtnl->sequence = 1;

Whoops, sorry about the transcription error there. Thanks for fixing it
up Tom Gundersen.


More information about the systemd-devel mailing list