Training courses
Kernel and Embedded Linux
Bootlin training courses
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
/* $NetBSD: ip_pool.h,v 1.3 2012/07/22 14:27:51 darrenr Exp $ */ /* * Copyright (C) 2012 by Darren Reed. * * See the IPFILTER.LICENCE file for details on licencing. * * Id: ip_pool.h,v 1.1.1.2 2012/07/22 13:45:31 darrenr Exp */ #ifndef __IP_POOL_H__ #define __IP_POOL_H__ #include "netinet/ip_lookup.h" #include "radix_ipf.h" #define IP_POOL_NOMATCH 0 #define IP_POOL_POSITIVE 1 typedef struct ip_pool_node { ipf_rdx_node_t ipn_nodes[2]; addrfamily_t ipn_addr; addrfamily_t ipn_mask; int ipn_uid; int ipn_info; int ipn_ref; char ipn_name[FR_GROUPLEN]; U_QUAD_T ipn_hits; U_QUAD_T ipn_bytes; u_long ipn_die; struct ip_pool_node *ipn_next, **ipn_pnext; struct ip_pool_node *ipn_dnext, **ipn_pdnext; struct ip_pool_s *ipn_owner; } ip_pool_node_t; typedef struct ip_pool_s { struct ip_pool_s *ipo_next; struct ip_pool_s **ipo_pnext; ipf_rdx_head_t *ipo_head; ip_pool_node_t *ipo_list; ip_pool_node_t **ipo_tail; ip_pool_node_t *ipo_nextaddr; void *ipo_radix; u_long ipo_hits; int ipo_unit; int ipo_flags; int ipo_ref; char ipo_name[FR_GROUPLEN]; } ip_pool_t; #define IPOOL_DELETE 0x01 #define IPOOL_ANON 0x02 typedef struct ipf_pool_stat { u_long ipls_pools; u_long ipls_tables; u_long ipls_nodes; ip_pool_t *ipls_list[LOOKUP_POOL_SZ]; } ipf_pool_stat_t; extern ipf_lookup_t ipf_pool_backend; #ifndef _KERNEL extern void ipf_pool_dump(ipf_main_softc_t *, void *); #endif #endif /* __IP_POOL_H__ */