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
F81686783: D29143.id85382.diff
Fri, Apr 19, 10:50 PM
Unknown Object (File)
Mar 7 2024, 6:53 PM
Unknown Object (File)
Jan 17 2024, 2:35 PM
Unknown Object (File)
Dec 20 2023, 5:49 AM
Unknown Object (File)
Dec 14 2023, 10:45 PM
Unknown Object (File)
Sep 19 2023, 12:52 AM
Unknown Object (File)
Aug 31 2023, 5:30 AM
Unknown Object (File)
Aug 16 2023, 9:17 AM
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.