2018-04-04 16:10:27 +00:00
|
|
|
#ifndef LLARP_XR_H
|
|
|
|
#define LLARP_XR_H
|
|
|
|
#include <llarp/buffer.h>
|
|
|
|
#include <llarp/net.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2018-05-22 15:54:19 +00:00
|
|
|
struct llarp_xr
|
|
|
|
{
|
2018-04-04 16:10:27 +00:00
|
|
|
struct in6_addr gateway;
|
|
|
|
struct in6_addr netmask;
|
|
|
|
struct in6_addr source;
|
|
|
|
uint64_t lifetime;
|
|
|
|
};
|
|
|
|
|
2018-05-22 15:54:19 +00:00
|
|
|
bool
|
|
|
|
llarp_xr_bencode(struct llarp_xr* xr, llarp_buffer_t* buff);
|
|
|
|
bool
|
|
|
|
llarp_xr_bdecode(struct llarp_xr* xr, llarp_buffer_t* buff);
|
2018-04-05 14:43:16 +00:00
|
|
|
|
2018-04-04 16:10:27 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|