Skip to main content

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

Was this page helpful?