OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::TunBuilderCapture::Route Class Reference

Route class that must use canonical form. More...

#include <capture.hpp>

Inheritance diagram for openvpn::TunBuilderCapture::Route:
[legend]
Collaboration diagram for openvpn::TunBuilderCapture::Route:
[legend]

Public Member Functions

void validate (const std::string &title) const
 Validates the route.
 
- Public Member Functions inherited from openvpn::TunBuilderCapture::RouteBase
std::string to_string () const
 Converts the route to a human-readable string.
 
Json::Value to_json () const
 Serializes the route to a JSON object.
 
void from_json (const Json::Value &root, const std::string &title)
 Deserializes the route from a JSON object.
 

Additional Inherited Members

- Public Attributes inherited from openvpn::TunBuilderCapture::RouteBase
std::string address
 
unsigned char prefix_length = 0
 
int metric = -1
 
std::string gateway
 
bool ipv6 = false
 
bool net30 = false
 
- Protected Member Functions inherited from openvpn::TunBuilderCapture::RouteBase
void validate_ (const std::string &title, const bool require_canonical) const
 Protected validation method used by derived classes.
 
- Static Protected Attributes inherited from openvpn::TunBuilderCapture::RouteBase
static constexpr int net30_prefix_length = 30
 

Detailed Description

Route class that must use canonical form.

Extends RouteBase to represent a route that must be in canonical form.

Definition at line 312 of file capture.hpp.

Member Function Documentation

◆ validate()

void openvpn::TunBuilderCapture::Route::validate ( const std::string &  title) const
inline

Validates the route.

Performs validation using true for the canonical parameter, requiring canonical form.

Parameters
titleA string identifier used in validation messages.

Definition at line 320 of file capture.hpp.


The documentation for this class was generated from the following file: