Re: [PATCH] ppp: add IFLA_PPP_UNIT netlink attribute
From: Jakub Kicinski
Date: Thu Mar 12 2026 - 21:01:44 EST
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.