Index | Thread | Search

From:
Lloyd <ng2d68@proton.me>
Subject:
Re: [patch] wireguard floods dmesg
To:
Claudio Jeker <cjeker@diehard.n-r-g.com>
Cc:
"tech@openbsd.org" <tech@openbsd.org>
Date:
Thu, 12 Dec 2024 03:53:39 +0000

Download raw body.

Thread
  • Lloyd:

    [patch] wireguard floods dmesg

  • On Wednesday, December 11th, 2024, Claudio Jeker wrote:
    
    > 
    > Is that message actually useful? Shouldn't it be simply removed?
    > 
    
    I examined the code more closely and indeed many of the debugging messages are not very useful for logging purposes.
    
    This didn't make sense, so I looked at the Linux implementation of Wireguard. Under Linux, the debugging messages contain more information such as IP addresses of the remote endpoint that triggered the error. It appears when Wireguard was ported to OpenBSD, these were intentionally removed.
    
    I speculate this is because printk(9) under Linux contains format specifiers to print IP addresses directly from network data structures, whereas log(9)/printf(9) on OpenBSD do not. For simplicity's sake, the information was simply deleted rather than implement a conversion function.
    
    Should this functionality be added/restored?
    
    Regards
    Lloyd
    
    
    
  • Lloyd:

    [patch] wireguard floods dmesg