mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-09 13:10:25 +00:00
18 lines
319 B
C
18 lines
319 B
C
#ifndef LLARP_NET_H
|
|
#define LLARP_NET_H
|
|
#if defined(__MINGW32__)
|
|
#include <winsock2.h>
|
|
#include <ws2tcpip.h>
|
|
#else
|
|
#include <arpa/inet.h>
|
|
#include <netinet/in.h>
|
|
#include <sys/socket.h>
|
|
#endif
|
|
#include <stdbool.h>
|
|
#include <sys/types.h>
|
|
|
|
bool
|
|
llarp_getifaddr(const char* ifname, int af, struct sockaddr* addr);
|
|
|
|
#endif
|