network/nexthop: NextHop.id is always positive when nexthop_configure() is called
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 12 Dec 2023 09:40:43 +0000 (18:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Dec 2023 09:57:43 +0000 (18:57 +0900)
commita533473a48ff05e84e7af3d4049dbf458b6c0f94
tree5e9586b8180d068c9a3eb0bfed83834f343ddfc1
parentc624143b5950dedc7b210065f0fee53873d396c5
network/nexthop: NextHop.id is always positive when nexthop_configure() is called

If a nexthop is requested without a valid ID, then nexthop_acquire_id()
assigns an unused ID. So, at the time nexthop_configure() is called, the
ID is always valid.
src/network/networkd-nexthop.c