mirror of
https://github.com/pavel-odintsov/fastnetmon
synced 2024-05-27 08:56:19 +02:00
Made sflow plugin cross platform. Addresses include duplication
This commit is contained in:
parent
459e0cd90e
commit
5aa2d52cee
|
@ -1,7 +1,12 @@
|
|||
#ifndef FASTNETMON_TYPES_H
|
||||
#define FASTNETMON_TYPES_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <netinet/in.h> // struct in6_addr
|
||||
#endif
|
||||
|
||||
#include <stdint.h> // uint32_t
|
||||
#include <sys/time.h> // struct timeval
|
||||
|
||||
|
|
|
@ -8,16 +8,18 @@
|
|||
#include "../libsflow/libsflow.hpp"
|
||||
#include "sflow_collector.hpp"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <arpa/inet.h>
|
||||
#include <netinet/in.h>
|
||||
#endif
|
||||
|
||||
#include <sys/socket.h>
|
||||
|
||||
// UDP server
|
||||
#include <netinet/in.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include "../fast_library.hpp"
|
||||
#include "../fastnetmon_plugin.hpp"
|
||||
|
|
Loading…
Reference in New Issue