A userspace application that filters DHCP floods to protect a DHCP server. It uses the Netfilter userspace packet queuing API.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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