cidrrange_val_ipv4_new

March 26, 2020 Contributors

Name

cidrrange_val_ipv4_new — Create a new list of IPv4 CIDR blocks

Synopsis

#include "cidrtree/cidrrange.h"

| cidrrange_val_ipv4 * **cidrrange_val_ipv4_new** ( | default_value); |   |

ec_blobject * <var class="pdparam">default_value</var>;

Description

Create a new list of IPv4 CIDR blocks.

Parameters

default_value

The address of an “ec_blobject”. This is the ec_blobject returned when no ranges match a query.

Return Values

Returns the address of a newly allocated cidrrange_val_ipv4 list. The caller is responsible for invoking cidrrange_val_ipv4_free to release the allocated resources.

The following typedef applies to this data type:

typedef Skiplist cidrrange_val_ipv4;

Threading

It is legal to call this function in any thread.

See Also

cidr_ipv4_delete, cidrrange_val_ipv4_free, cidrrange_val_ipv4_query, and cidrrange_val_ipv4_update.