2018-11-12 16:43:40 +00:00
|
|
|
#ifndef LLARP_EXIT_POLICY_HPP
|
|
|
|
#define LLARP_EXIT_POLICY_HPP
|
2018-12-12 02:52:51 +00:00
|
|
|
|
2019-01-10 19:41:51 +00:00
|
|
|
#include <util/bencode.hpp>
|
2018-11-12 16:43:40 +00:00
|
|
|
|
|
|
|
namespace llarp
|
|
|
|
{
|
|
|
|
namespace exit
|
|
|
|
{
|
|
|
|
struct Policy final : public llarp::IBEncodeMessage
|
|
|
|
{
|
|
|
|
~Policy();
|
|
|
|
|
|
|
|
uint64_t proto;
|
|
|
|
uint64_t port;
|
|
|
|
uint64_t drop;
|
|
|
|
|
|
|
|
bool
|
2019-02-01 01:58:06 +00:00
|
|
|
DecodeKey(const llarp_buffer_t& k, llarp_buffer_t* val) override;
|
2018-11-12 16:43:40 +00:00
|
|
|
|
|
|
|
bool
|
|
|
|
BEncode(llarp_buffer_t* buf) const override;
|
|
|
|
};
|
|
|
|
} // namespace exit
|
|
|
|
} // namespace llarp
|
|
|
|
|
2018-12-12 02:52:51 +00:00
|
|
|
#endif
|