Subject: Re: [PATCH] ppp: add IFLA_PPP_UNIT netlink attribute

From: Jakub Kicinski <[email-masked]>
Date: Thu, 12 Mar 2026 18:01:37 -0700

On Wed, 11 Mar 2026 08:35:26 +0100 Martin Olivier wrote:
> +	if (data[IFLA_PPP_UNIT])
> +		conf.unit = nla_get_s32(data[IFLA_PPP_UNIT]);

You can also use nla_get_s32_default(data[IFLA_PPP_UNIT], 0)
but that one is more of an acquired taste.