libnet.h 526 Bytes
#ifndef __LIBNET_H__
#define __LIBNET_H__

#include <pcap.h>


int boucleServeur(int socket, void(* fctConnex)(int));
int lanceThread(void(* fonction) (void *), void* arg, int size);
void* reponseConnexion(void* sock);
int initialisationServeur(char* service);
int initializeSocketUDP(char* service);
int sendUDPBroadcast(char* message, int port);
int sendUDPUnicast(char* address, char* message, int port);
void arp_detect();
int initialize_sniffer(pcap_t** dev_handle, char dev[]);
int ecouteReseau(char* device);



#endif