Advertisement
Guest User

Untitled

a guest
May 26th, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. iptrie: a retrieval tree optimized for ip addresses
  2.  
  3. functions:
  4. iptrie_init: initiate a iptrieroot_t structure
  5. iptrie_free: free a iptrieroot_t structure
  6. iptrie_alloc: internal memory allocation routine, uses chunks to save overhead
  7. iptrie_insert: insert a value into the iptrie, with a unique ip address
  8. iptrie_optimize: optimize an iptrie aka remove all items that have value NULL
  9. iptrie_search: find the value according to the ip address given
  10. iptrie_list: lists all ip addresses accordingly with their value
  11. iptrie_callback: enumerate all ip addresses and have the ability to remove certain values (setting them to NULL) returns amount of values changed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement