Page MenuHomeFreeBSD

if_ovpn: include peer counters in a OVPN_NOTIF_DEL_PEER message
ClosedPublic

Authored by kp on Dec 5 2022, 4:31 PM.
Tags
None
Referenced Files
F174359628: D37606.id114128.diff
Fri, Oct 2, 4:24 PM
F174351335: D37606.id113839.diff
Fri, Oct 2, 3:12 PM
Unknown Object (File)
Wed, Sep 30, 6:41 PM
Unknown Object (File)
Sun, Sep 13, 2:54 PM
Unknown Object (File)
Sat, Sep 12, 6:49 PM
Unknown Object (File)
Fri, Sep 11, 7:54 PM
Unknown Object (File)
Fri, Sep 11, 4:51 PM
Unknown Object (File)
Fri, Sep 11, 8:52 AM

Details

Summary

When we remove a peer userspace can no longer retrieve its counters. To
ensure that userspace can get a full count of the entire session we now
include the counters in the deletion message.

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 48616
Build 45502: arc lint + arc unit

Event Timeline

zlei added inline comments.
sys/net/if_ovpn.c
445

Maybe integrate D37607 firstly ?

sys/net/if_ovpn.c
445

I did consider that, but it means introducing the OVPN_COUNTER and OVPN_PEER_COUNTER macros separately.
Also rewriting history significantly, because I did the cleanup work last.

There's good arguments for either order, I think, but I don't think it's very important either way.

This revision was not accepted when it landed; it landed in state Needs Review.Dec 14 2022, 5:51 AM
This revision was automatically updated to reflect the committed changes.