2016-11-16 18:56:52 +01:00
|
|
|
/***************************************************************************
|
|
|
|
* By Théophile Bastian, 2017
|
|
|
|
* M1 Network course project at ENS Cachan, Juliusz Chroboczek.
|
|
|
|
* License: WTFPL v2 <http://www.wtfpl.net/>
|
|
|
|
**************************************************************************/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstdint>
|
2016-11-20 00:15:09 +01:00
|
|
|
#include <arpa/inet.h>
|
2016-11-16 18:56:52 +01:00
|
|
|
|
|
|
|
typedef uint8_t u8;
|
|
|
|
typedef uint16_t u16;
|
|
|
|
typedef uint32_t u32;
|
2016-11-20 00:15:09 +01:00
|
|
|
typedef uint64_t u64;
|
|
|
|
|
|
|
|
typedef struct sockaddr_in6 SockAddr;
|
|
|
|
|
|
|
|
struct Neighbour {
|
|
|
|
Neighbour(u64 id, const SockAddr& addr) : id(id), addr(addr) {}
|
|
|
|
u64 id;
|
|
|
|
SockAddr addr;
|
|
|
|
};
|
2016-11-16 18:56:52 +01:00
|
|
|
|