[Bug 276363] if_wg: Fix bug in calculate_padding() for the 'p_mtu = 0' case

[email protected]
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276363

--- Comment #4 from [email protected] ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=b891f61ef538a4e9b4658b4b756635c8036a5788

commit b891f61ef538a4e9b4658b4b756635c8036a5788
Author:     Aaron LI <[email protected]>
AuthorDate: 2024-01-17 23:29:23 +0000
Commit:     Kyle Evans <[email protected]>
CommitDate: 2024-01-17 23:29:52 +0000

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

    In practice this is harmless; only keepalive packets may realistically have
    p_mtu == 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

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

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.