mirror of
https://github.com/OpenVPN/openvpn3.git
synced 2024-09-19 19:52:15 +02:00
server: Add new to_string_debug() pure virtual member to SendBase
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 <razvan.cojocaru@openvpn.com>
This commit is contained in:
parent
2b0960452d
commit
880ebb081a
@ -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
|
||||
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user