Electroneum
addr_tree_node Struct Reference

#include <dnstree.h>

Collaboration diagram for addr_tree_node:

Public Attributes

rbnode_type node
 
struct addr_tree_nodeparent
 
struct sockaddr_storage addr
 
socklen_t addrlen
 
int net
 

Detailed Description

Tree of IP addresses. Sorted first by protocol, then by bits. This can be looked up to obtain the enclosing subnet.

The tree itself is a rbtree_type. This is the element node put as first entry in the client structure.

Definition at line 77 of file dnstree.h.

Member Data Documentation

◆ addr

struct sockaddr_storage addr_tree_node::addr

address

Definition at line 83 of file dnstree.h.

◆ addrlen

socklen_t addr_tree_node::addrlen

length of addr

Definition at line 85 of file dnstree.h.

◆ net

int addr_tree_node::net

netblock size

Definition at line 87 of file dnstree.h.

◆ node

rbnode_type addr_tree_node::node

rbtree node, key is this struct : proto and subnet

Definition at line 79 of file dnstree.h.

◆ parent

struct addr_tree_node* addr_tree_node::parent

parent in tree

Definition at line 81 of file dnstree.h.


The documentation for this struct was generated from the following file: