Skip to content

Commit

Permalink
server: Add new to_string_debug() pure virtual member to SendBase
Browse files Browse the repository at this point in the history
This is part of a series of patches instrumenting crash checks.
Classes that implement SendBase can optionally collect debug
information for various scenarios, and create a string here that
presents them in human-readable form when requested.

Signed-off-by: Razvan Cojocaru <[email protected]>
  • Loading branch information
Razvan Cojocaru authored and Jenkins-dev committed Aug 19, 2024
1 parent 2b09604 commit 880ebb0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openvpn/server/manage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// packet encryption, packet authentication, and
// packet compression.
//
// Copyright (C) 2012-2022 OpenVPN Inc.
// Copyright (C) 2012- OpenVPN Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License Version 3
Expand Down Expand Up @@ -69,6 +69,9 @@ struct SendBase : public virtual RC<thread_unsafe_refcount>
// Status
virtual bool is_stopped() const = 0;

// Retrieve any potentially collected debug state.
virtual std::string to_string_debug() const = 0;

// IP-mapped ACL (IPMA) notification
virtual void ipma_notify(const struct ovpn_tun_head_ipma &ipma) = 0;

Expand Down

0 comments on commit 880ebb0

Please sign in to comment.