Blame view

includes/libnet.h 604 Bytes
32c9271a   skhinach   modif
1
2
3
  #ifndef __LIBNET_H__
  #define __LIBNET_H__
  
a69a94a7   skhinach   Ajout de gestion ...
4
5
6
  #include <pcap.h>
  
  
32c9271a   skhinach   modif
7
8
9
10
11
12
13
  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);
a69a94a7   skhinach   Ajout de gestion ...
14
15
16
17
  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[]);
  
32c9271a   skhinach   modif
18
19
20
  
  
  #endif