Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jan 2024 05:39:45 +0000
From:      bugzilla-noreply@freebsd.org
To:        net@FreeBSD.org
Subject:   [Bug 276363] if_wg: Fix bug in calculate_padding() for the 'p_mtu = 0' case
Message-ID:  <bug-276363-7501-jtfCFvsDA2@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-276363-7501@https.bugs.freebsd.org/bugzilla/>
References:  <bug-276363-7501@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D276363

--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=3Dbbda52e814e0c760b2beaeae40a2c76ff=
43d1975

commit bbda52e814e0c760b2beaeae40a2c76ff43d1975
Author:     Aaron LI <aly@aaronly.me>
AuthorDate: 2024-01-17 23:29:23 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2024-01-30 05:37:46 +0000

    if_wg: fix erroneous calculation in calculate_padding() for p_mtu =3D=
=3D 0

    In practice this is harmless; only keepalive packets may realistically =
have
    p_mtu =3D=3D 0, and they'll also have no payload so the math works out =
the same
    either way.  Still, let's prefer technical accuracy and calculate the
amount
    of padding needed rather than the padded length...

    PR:             276363

    (cherry picked from commit b891f61ef538a4e9b4658b4b756635c8036a5788)

 sys/dev/wg/if_wg.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-276363-7501-jtfCFvsDA2>