24 #define MAX_FIRST_RADAR_SCANS 1
28 #undef MAX_FIRST_RADAR_SCANS
29 #define MAX_FIRST_RADAR_SCANS 1
33 #define HOOKING_IP_10 0xa000001
34 #define HOOKING_IP_172 0xac100001
35 #define HOOKING_IPV6 0xfec00000
37 #define HOOK_RQ_TIMEOUT 8
79 #define FREE_NODES_SZ(nodes) (sizeof(struct free_nodes_hdr) +\
80 (sizeof(u_char) * (nodes)))
114 #define QSPN_ROUND_PKT_SZ(levels) (sizeof(u_char) + \
115 ((levels) * sizeof(int32_t)) + \
116 ((levels) * sizeof(struct timeval))+\
117 (GCOUNT_LEVELS * sizeof(u_int)))
int put_int_map(PACKET rq_pkt)
Definition: hook.c:512
u_char max_levels
Definition: hook.h:67
int netsukuku_hook(map_gnode *hook_gnode, int hook_level)
Definition: hook.c:1549
int put_bnode_map(PACKET rq_pkt)
Definition: hook.c:583
void set_ip_and_def_gw(char *dev, inet_prefix ip)
int create_gnodes(inet_prefix *ip, int final_level)
Definition: hook.c:771
int put_free_nodes(PACKET rq_pkt)
Definition: hook.c:175
int hook_init(void)
Definition: hook.c:940
uint32_t join_rate
Definition: hook.h:73
int total_hooks
Definition: hook.h:44
#define IINFO_DYNAMIC_VALUE
Definition: endianness.h:25
u_int rnodes_rehooked
Definition: hook.h:48
#define GCOUNT_LEVELS
Definition: qspn.h:69
static const int_info qspn_round_pkt_iinfo
Definition: hook.h:108
u_char nodes
Definition: hook.h:72
#define MAX_IP_INT
Definition: inet.h:24
int put_ext_map(PACKET rq_pkt)
Definition: hook.c:446
uint32_t ipstart[4]
Definition: hook.h:69
#define INT_INFO
Definition: endianness.h:90
struct free_nodes_hdr _PACKED_
u_char level
Definition: hook.h:70
static const int_info free_nodes_hdr_iinfo
Definition: hook.h:75
#define INT_TYPE_32BIT
Definition: endianness.h:35
u_int hook_join_rate
Definition: hook.h:47
int put_qspn_round(PACKET rq_pkt)
Definition: hook.c:360
u_char gid
Definition: hook.h:71