Page MenuHomeFreeBSD

if_ovpn: cleanup offsetof() use
ClosedPublic

Authored by kp on Dec 5 2022, 4:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 15, 7:29 AM
Unknown Object (File)
Thu, Aug 15, 6:36 AM
Unknown Object (File)
Sat, Aug 10, 4:51 AM
Unknown Object (File)
Sat, Jul 27, 3:15 PM
Unknown Object (File)
Jul 4 2024, 7:19 AM
Unknown Object (File)
Jul 4 2024, 4:50 AM
Unknown Object (File)
Jul 4 2024, 12:24 AM
Unknown Object (File)
Jul 1 2024, 10:05 PM

Details

Summary

Move the use of the `offsetof(struct ovpn_counters, fieldname) /
sizeof(uint64_t)` construct into a macro.
This removes a fair bit of code duplication and should make things a
little easier to read.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

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