diff options
| author | Anton <anton@picapica> | 2017-12-02 20:32:19 +0400 |
|---|---|---|
| committer | Anton <anton@picapica> | 2017-12-02 20:32:19 +0400 |
| commit | 233a812bb060ef68aa606a55d478efaf62b44c9b (patch) | |
| tree | ed94b43cf3436c05da6c6d775e48d5b5ee564e89 /PICA_netconf.h | |
| parent | 0f726c30f5f11990d325bc5e55015c42c80cd9d2 (diff) | |
| download | pica-pica-233a812bb060ef68aa606a55d478efaf62b44c9b.tar.gz pica-pica-233a812bb060ef68aa606a55d478efaf62b44c9b.zip | |
moved PICA_is_reserved_addr_ipv4() to new file PICA_netconf.c
Diffstat (limited to 'PICA_netconf.h')
| -rw-r--r-- | PICA_netconf.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/PICA_netconf.h b/PICA_netconf.h new file mode 100644 index 0000000..bab5738 --- /dev/null +++ b/PICA_netconf.h @@ -0,0 +1,21 @@ +#ifndef PICA_NETCONF_H +#define PICA_NETCONF_H + +#ifndef WIN32 + +#include <netinet/in.h> + +#else + +#define _WIN32_WINNT 0x501 +#include <winsock2.h> +#include <ws2tcpip.h> + +typedef u_long in_addr_t; +typedef u_short in_port_t; +#endif + +int PICA_is_reserved_addr_ipv4(in_addr_t); + +#endif + |
