A userspace application that filters DHCP floods to protect a DHCP server. It uses the Netfilter userspace packet queuing API.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

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