mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-07 21:25:12 +02:00
geoip: minor cleanups in help, opts and logic
This commit is contained in:
@@ -13,11 +13,13 @@
|
||||
#ifndef _LINUX_NETFILTER_XT_GEOIP_H
|
||||
#define _LINUX_NETFILTER_XT_GEOIP_H 1
|
||||
|
||||
#define XT_GEOIP_SRC 0x01 /* Perform check on Source IP */
|
||||
#define XT_GEOIP_DST 0x02 /* Perform check on Destination IP */
|
||||
#define XT_GEOIP_INV 0x04 /* Negate the condition */
|
||||
enum {
|
||||
XT_GEOIP_SRC = 1 << 0, /* Perform check on Source IP */
|
||||
XT_GEOIP_DST = 1 << 1, /* Perform check on Destination IP */
|
||||
XT_GEOIP_INV = 1 << 2, /* Negate the condition */
|
||||
|
||||
#define XT_GEOIP_MAX 15 /* Maximum of countries */
|
||||
XT_GEOIP_MAX = 15, /* Maximum of countries */
|
||||
};
|
||||
|
||||
/* Yup, an address range will be passed in with host-order */
|
||||
struct geoip_subnet {
|
||||
|
Reference in New Issue
Block a user