SolarCapture C Bindings
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Functions | Variables
sc_append_to_list.c File Reference
#include <sc_internal.h>
#include <sc_internal/builtin_nodes.h>
#include <solar_capture/nodes/append_to_list.h>

Functions

static void sc_append_to_list_pkts (struct sc_node *node, struct sc_packet_list *pl)
 
static int sc_append_to_list_prep (struct sc_node *node, const struct sc_node_link *const *links, int n_links)
 
static int sc_append_to_list_init (struct sc_node *node, const struct sc_attr *attr, const struct sc_node_factory *factory)
 

Variables

const struct sc_node_factory sc_append_to_list_sc_node_factory
 

Detailed Description

A simple node that appends incoming packets to a packet list. Packets put in the packet list must be explicitly released back to the pool they originated from. The packet list can be accessed via the node's nd_private field. This node does not pass any packets to downstream nodes.

Arguments:

None

Named Input Links:

None

Output Links:

None

Variable Documentation

const struct sc_node_factory sc_append_to_list_sc_node_factory
Initial value:
= {
.nf_node_api_ver = SC_API_VER,
.nf_name = "sc_append_to_list",
.nf_source_file = __FILE__,
.nf_init_fn = sc_append_to_list_init,
}