Go to the source code of this file.
Data Structures | |
| struct | iprange_stats_t | 
| Statistics.  More... | |
Typedefs | |
| typedef void(* | iprange_free_t )(gpointer value, gpointer udata) | 
| typedef gpointer(* | iprange_clone_t )(gpointer value) | 
Enumerations | |
| enum | iprange_err_t {  IPR_ERR_OK = 0, IPR_ERR_BAD_PREFIX, IPR_ERR_RANGE_CLASH, IPR_ERR_RANGE_DUP, IPR_ERR_RANGE_SUBNET, IPR_ERR_RANGE_OVERLAP, IPR_ERROR_COUNT }  | 
| Error codes.  More... | |
Functions | |
| const gchar * | iprange_strerror (iprange_err_t errnum) | 
| gpointer | iprange_make (iprange_free_t freecb, iprange_clone_t clonecb) | 
| Create a new IP range database.   | |
| void | iprange_free_each (gpointer db, gpointer udata) | 
| Free values stored in the IP range database, then destroy database.   | |
| iprange_err_t | iprange_add_cidr (gpointer db, guint32 net, guint bits, gpointer udata) | 
| Add CIDR network to the database.   | |
| iprange_err_t | iprange_add_cidr_force (gpointer db, guint32 net, guint bits, gpointer udata, gpointer cdata) | 
| Add CIDR network to the database, forcing entry if new range supersedes an older range.   | |
| gpointer | iprange_get (gpointer db, guint32 ip) | 
| Retrieve value associated with an IP address, i.e.   | |
| void | iprange_get_stats (gpointer db, iprange_stats_t *stats) | 
| Get statistics about the database.   | |
      
  | 
  
| 
 
  | 
  
      
  | 
  
| 
 
  | 
  
      
  | 
  
      
  | 
  ||||||||||||||||||||
| 
 Add CIDR network to the database. 
 
 
  | 
  
      
  | 
  ||||||||||||||||||||||||
| 
 Add CIDR network to the database, forcing entry if new range supersedes an older range. 
 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Free values stored in the IP range database, then destroy database. 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Retrieve value associated with an IP address, i.e. that of the range containing it.  | 
  
      
  | 
  ||||||||||||
| 
 Get statistics about the database. 
 
  | 
  
      
  | 
  ||||||||||||
| 
 Create a new IP range database. 
  | 
  
      
  | 
  
| 
 
 
  | 
  
 
1.3.6