Page MenuHomeFreeBSD

if_wg: export tx_bytes, rx_bytes, and last_handshake
ClosedPublic

Authored by kevans on Mar 9 2021, 11:21 AM.
Tags
None
Referenced Files
F174844199: D29143.id85382.diff
Tue, Oct 6, 11:15 AM
Unknown Object (File)
Mon, Oct 5, 9:57 AM
Unknown Object (File)
Fri, Oct 2, 4:10 AM
Unknown Object (File)
Fri, Sep 25, 11:43 AM
Unknown Object (File)
Fri, Sep 25, 11:20 AM
Unknown Object (File)
Thu, Sep 24, 11:17 PM
Unknown Object (File)
Aug 29 2026, 10:02 AM
Unknown Object (File)
Aug 20 2026, 2:06 PM
Subscribers

Details

Summary

The names are self-explanatory; these are currently only used by the
wg(8) tool, but they are handy data points to have.

MFC after: 3 days
Discussed with: decke

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Mar 9 2021, 11:38 AM
sys/dev/if_wg/module/module.c
487

Why is this conditional?

sys/dev/if_wg/module/module.c
487

My working thought process was to avoid the nvpair allocation since the wg(8) side will assume '0' if these are omitted -- their absence is insignificant.