]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Zero `struct weightened_nhop` fields in nhgrp_get_addition_group().
authorAlexander V. Chernikov <melifaro@FreeBSD.org>
Sat, 20 Mar 2021 08:26:03 +0000 (08:26 +0000)
committerAlexander V. Chernikov <melifaro@FreeBSD.org>
Sun, 28 Mar 2021 20:41:56 +0000 (20:41 +0000)
commit823a80f4f9037b6b9611aaceb21f53115d1e64f1
tree1f5194733d2e729323c785d1075c657fc79b107b
parent1048c56784c0e1d044b6828b030f326e48eaba28
Zero `struct weightened_nhop` fields in nhgrp_get_addition_group().

`struct weightened_nhop` has spare 32bit between the fields due to
 the alignment (on amd64).
Not zeroing these spare bits results in duplicating nhop groups
 in the kernel due to the way how comparison works.

(cherry picked from commit 6f43c72b472ee78e04f1ebd347ca0ae7787ee876)
sys/net/route/nhgrp_ctl.c