#include "common.h"
#include "bogons.h"
#include "settings.h"
#include "lib/file.h"
#include "lib/misc.h"
#include "lib/glib-missing.h"
#include "lib/iprange.h"
#include "lib/walloc.h"
#include "lib/watcher.h"
#include "if/gnet_property_priv.h"
#include "if/bridge/c2ui.h"
#include "lib/override.h"
Defines | |
#define | THERE GUINT_TO_POINTER(0x2) |
Functions | |
RCSID ("$Id:bogons.c, v 1.19 2005/10/24 17:58:02 cbiere Exp $") | |
gint | bogons_load (FILE *f) |
Load bogons data from the supplied FILE. | |
void | bogons_changed (const gchar *filename, gpointer unused_udata) |
Watcher callback, invoked when the file from which we read the bogus addresses changed. | |
void | bogons_retrieve (void) |
Loads the bogons.txt into memory. | |
void | bogons_init (void) |
Called on startup. | |
void | bogons_close (void) |
Frees all entries in the hostiles. | |
gboolean | bogons_check (const host_addr_t ha) |
Check the given IP against the entries in the bogus IP database. | |
Variables | |
const gchar | bogons_file [] = "bogons.txt" |
const gchar | bogons_what [] = "Bogus IP addresses" |
gpointer | bogons_db |
The database of bogus CIDR ranges. |
|
|
|
Watcher callback, invoked when the file from which we read the bogus addresses changed.
|
|
Check the given IP against the entries in the bogus IP database.
|
|
Frees all entries in the hostiles.
|
|
Called on startup. Loads the bogons.txt into memory. |
|
Load bogons data from the supplied FILE.
|
|
Loads the bogons.txt into memory. Choosing the first file we find among the several places we look at, typically:
The selected file will then be monitored and a reloading will occur shortly after a modification. |
|
|
|
The database of bogus CIDR ranges.
|
|
|
|
|