cidrrange_val_ipv4_merge
Name
cidrrange_val_ipv4_merge — Inserts a node, merging adjacent nodes with the same value
Synopsis
#include "cidrtree/cidrrange.h"
| void **cidrrange_val_ipv4_merge** (
| root, | |
| | ip, | |
| | mask, | |
| | data)
; | |
cidrrange_val_ipv4 * <var class="pdparam">root</var>
;
struct in_addr <var class="pdparam">ip</var>
;
u_int32_t <var class="pdparam">mask</var>
;
ec_blobject * <var class="pdparam">data</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.
- root
-
the root of the range
- ip
-
the ip of the node
- mask
-
the mask of the node
- data
-
the value of the node