cidr_ipv4_delete
Name
cidr_ipv4_delete — Decrements the count for an IP address from a CIDR tree
Synopsis
#include "cidrtree/cidrtree.h"
| void **cidr_ipv4_delete** (
| root, | |
| | ip)
; | |
cidrnode_ipv4 *<var class="pdparam">root</var>
;
struct in_addr <var class="pdparam">ip</var>
;
Description
Decrements the count for an IP address from a CIDR tree. If the count is decremented to zero, then we delete the IP address.
- root
-
The CIDR tree.
- ip
-
The IP address to remove from the tree.
This function returns void.
It is legal to call this function in any thread.
See Also
cidrrange_val_ipv4_new, cidrrange_val_ipv4_free, cidrrange_val_ipv4_query, and cidrrange_val_ipv4_update.