mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
28 lines
480 B
C++
28 lines
480 B
C++
#ifndef LLARP_EXIT_POLICY_HPP
|
|
#define LLARP_EXIT_POLICY_HPP
|
|
|
|
#include <util/bencode.hpp>
|
|
|
|
namespace llarp
|
|
{
|
|
namespace exit
|
|
{
|
|
struct Policy final : public llarp::IBEncodeMessage
|
|
{
|
|
~Policy();
|
|
|
|
uint64_t proto;
|
|
uint64_t port;
|
|
uint64_t drop;
|
|
|
|
bool
|
|
DecodeKey(const llarp_buffer_t& k, llarp_buffer_t* val) override;
|
|
|
|
bool
|
|
BEncode(llarp_buffer_t* buf) const override;
|
|
};
|
|
} // namespace exit
|
|
} // namespace llarp
|
|
|
|
#endif
|