Skip to main content

Name

cidrrange_ipv4_merge — Inserts a node, merging adjacent nodes with the same value

Synopsis

#include "cidrtree/cidrrange.h"

| void **cidrrange_ipv4_merge** ( | root, |   | |   | ip, |   | |   | mask, |   | |   | orientation); |   |

cidrrange_ipv4 * <var class="pdparam">root</var>; struct in_addr <var class="pdparam">ip</var>; u_int32_t <var class="pdparam">mask</var>; u_int32_t <var class="pdparam">orientation</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Inserts a node, merging adjacent nodes with the same value.

Inserts a node in the range. If the newly inserted value is directly adjacent to other nodes that have the same value, then the adjacent nodes will be merged to form a single range, reducing the overall memory footprint of the range.

Parameters

root

the root of the range

ip

the ip of the node

mask

the mask of the node

orientation

CIDRRANGE_NEGATIVE or CIDRRANGE_POSITIVE

Was this page helpful?