Download raw body.
wg(4) logging enhancement - revised patch
On Monday, December 30th, 2024, Stuart Henderson wrote: > Rather than sprinkling ISSET(...IFF_DEBUG) all over the place and adding > extra indented blocks, using something analogous to the DPRINTF macro > would be easier to read, and probably reduce the number of times it > overflows to another line. IIRC I did this because some of the messages utilized addlog to build the messages and I thought using a macro made it more cryptic and confusing. If concise > verbose then I can rework it, no problem. FWIW I wasn't familiar with the code standard until Vitaliy pointed it out. > I don't know wg(4) particularly well, but are there any concerns > regarding locking with things like this - i.e. 1, accessing information > from peer->p_endpoint, and 2. building up the log entry using addlog? Some of the other network drivers are using addlog - ppp(4) and pf(4). In particular the IP address printing code was taken from pf and modified.
wg(4) logging enhancement - revised patch