Returns some node statistics and the current timeout values in a .Vt "struct ng_netflow_info" .
NGM_NETFLOW_IFINFO
Returns information about the iface N hook. The hook number is passed as an argument.
NGM_NETFLOW_SETDLT
Sets data link type on the iface N hook. Currently, supported types are raw IP datagrams and Ethernet. This messsage type uses .Vt "struct ng_netflow_setdlt" as an argument:
struct ng_netflow_setdlt {
uint16_t iface; /* which iface to operate on */
uint8_t dlt; /* DLT_XXX from bpf.h */
};
The requested iface N hook must already be connected, otherwise message send operation will return an error.
NGM_NETFLOW_SETIFINDEX
In some cases, ng_netflow may be unable to determine the input interface index of a packet. This can happen if traffic enters the ng_netflow node before it comes to the system interfaces input queue. An example of such a setup is capturing a traffic between synchronous data line and ng_iface(4). In this case, the input index should be associated with a given hook. The interfaces index can be determined via if_nametoindex(3) from userland. This message requires .Vt "struct ng_netflow_setifindex" as an argument:
struct ng_netflow_setifindex {
u_int16_t iface; /* which iface to operate on */
u_int16_t index; /* new index */
};
The requested iface N hook must already be connected, otherwise the message send operation will return an error.
NGM_NETFLOW_SETTIMEOUTS
Sets values in seconds for NetFlow active/inactive timeouts. This message requires .Vt "struct ng_netflow_settimeouts" as an argument:
struct ng_netflow_settimeouts {
uint32_t inactive_timeout;
uint32_t active_timeout;
};
NGM_NETFLOW_SHOW
This control message asks a node to dump the entire contents of the flow cache. It is called from flowctl(8), not directly from ngctl(8). See also BUGS section.