mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-21 03:54:59 +02:00
geoip: use tabs not spaces and indent
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* ipt_geoip.h header file for libipt_geoip.c and ipt_geoip.c
|
||||
*
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
@@ -10,8 +10,8 @@
|
||||
* Samuel Jean
|
||||
* Nicolas Bouliane
|
||||
*/
|
||||
#ifndef _XT_GEOIP_H
|
||||
#define _XT_GEOIP_H
|
||||
#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 */
|
||||
@@ -20,29 +20,28 @@
|
||||
#define XT_GEOIP_MAX 15 /* Maximum of countries */
|
||||
|
||||
struct geoip_subnet {
|
||||
u_int32_t begin;
|
||||
u_int32_t end;
|
||||
u_int32_t begin;
|
||||
u_int32_t end;
|
||||
};
|
||||
|
||||
struct geoip_info {
|
||||
struct geoip_subnet *subnets;
|
||||
u_int32_t count;
|
||||
u_int32_t ref;
|
||||
u_int16_t cc;
|
||||
struct geoip_info *next;
|
||||
struct geoip_info *prev;
|
||||
struct geoip_subnet *subnets;
|
||||
u_int32_t count;
|
||||
u_int32_t ref;
|
||||
u_int16_t cc;
|
||||
struct geoip_info *next;
|
||||
struct geoip_info *prev;
|
||||
};
|
||||
|
||||
struct xt_geoip_match_info {
|
||||
u_int8_t flags;
|
||||
u_int8_t count;
|
||||
u_int16_t cc[XT_GEOIP_MAX];
|
||||
u_int8_t flags;
|
||||
u_int8_t count;
|
||||
u_int16_t cc[XT_GEOIP_MAX];
|
||||
|
||||
/* Used internally by the kernel */
|
||||
struct geoip_info *mem[XT_GEOIP_MAX];
|
||||
/* Used internally by the kernel */
|
||||
struct geoip_info *mem[XT_GEOIP_MAX];
|
||||
};
|
||||
|
||||
#define COUNTRY(cc) (cc >> 8), (cc & 0x00FF)
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* _LINUX_NETFILTER_XT_GEOIP_H */
|
||||
|
Reference in New Issue
Block a user