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
Unknown Object (File)
Tue, Feb 25, 11:26 AM
Unknown Object (File)
Mon, Feb 24, 8:57 AM
Unknown Object (File)
Mon, Feb 24, 6:39 AM
Unknown Object (File)
Fri, Feb 21, 6:19 PM
Unknown Object (File)
Wed, Feb 19, 5:55 PM
Unknown Object (File)
Jan 26 2025, 9:38 PM
Unknown Object (File)
Jan 25 2025, 6:05 PM
Unknown Object (File)
Jan 25 2025, 5:23 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 37689
Build 34578: arc lint + arc unit

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.