2018-04-08 12:18:16 +00:00
|
|
|
#ifndef LLARP_NET_H
|
|
|
|
#define LLARP_NET_H
|
2018-01-08 13:49:05 +00:00
|
|
|
|
2018-05-22 15:54:19 +00:00
|
|
|
#include <arpa/inet.h>
|
2018-01-08 13:49:05 +00:00
|
|
|
#include <netinet/in.h>
|
2018-05-22 15:54:19 +00:00
|
|
|
#include <stdbool.h>
|
2018-01-29 14:27:24 +00:00
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/types.h>
|
2018-05-18 13:17:58 +00:00
|
|
|
#ifdef __linux__
|
|
|
|
#include <linux/if_packet.h>
|
|
|
|
#endif
|
2018-01-08 13:49:05 +00:00
|
|
|
|
2018-05-17 20:00:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2018-05-22 15:54:19 +00:00
|
|
|
|
|
|
|
bool
|
|
|
|
llarp_getifaddr(const char* ifname, int af, struct sockaddr* addr);
|
|
|
|
|
2018-05-17 20:00:58 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2018-01-08 13:49:05 +00:00
|
|
|
#endif
|