mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-10-29 11:05:43 +00:00
23 lines
361 B
C
23 lines
361 B
C
#ifndef LLARP_XR_H
|
|
#define LLARP_XR_H
|
|
|
|
#include <buffer.h>
|
|
#include <net.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
struct llarp_xr
|
|
{
|
|
struct in6_addr gateway;
|
|
struct in6_addr netmask;
|
|
struct in6_addr source;
|
|
uint64_t lifetime;
|
|
};
|
|
|
|
bool
|
|
llarp_xr_bencode(struct llarp_xr* xr, llarp_buffer_t* buff);
|
|
bool
|
|
llarp_xr_bdecode(struct llarp_xr* xr, llarp_buffer_t* buff);
|
|
|
|
#endif
|