cidr_ipv4_delete

March 26, 2020 Contributors

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.

Parameters

root

The CIDR tree.

ip

The IP address to remove from the tree.

Return Values

This function returns void.

Threading

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.