libnet.h
604 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(u_char *args, const struct pcap_pkthdr *header, const u_char *packet);
int initialize_sniffer(pcap_t** dev_handle, char dev[]);
int ecouteReseau(int argc, char* argv[]);
#endif