A userspace application that filters DHCP floods to protect a DHCP server. It uses the Netfilter userspace packet queuing API.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

dp_blacklist.h 418B

12345678910111213141516171819
  1. #ifndef __DP_BLACKLIST
  2. #define __DP_BLACKLIST 1
  3. #include <uthash.h>
  4. #include "dp_helpers.h"
  5. typedef struct dp_blacklist {
  6. unsigned char remoteid[256];
  7. int len;
  8. time_t expire;
  9. UT_hash_handle hh;
  10. } dp_blacklist;
  11. void dp_blacklist_add (dp_conf*, unsigned char *, int);
  12. int dp_blacklist_check (dp_conf*, unsigned char *, int);
  13. void dp_blacklist_cleanup (dp_conf*);
  14. #endif // __DP_MACRO