Skip to main content

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

Was this page helpful?