#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/mbuf.h>
#include <sys/malloc.h>
#include <sys/ctype.h>
#include <sys/errno.h>
#include <sys/syslog.h>
#include <sys/types.h>
#include <sys/counter.h>
#include <net/ethernet.h>
#include <netgraph/ng_message.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_vlan_rotate.h>
#include <netgraph/netgraph.h>
Go to the source code of this file.
◆ vlanrotate_p
◆ NETGRAPH_INIT()
◆ ng_vlanrotate_constructor()
static int ng_vlanrotate_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_vlanrotate_disconnect()
static int ng_vlanrotate_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_vlanrotate_gcd()
static int ng_vlanrotate_gcd |
( |
int |
a, |
|
|
int |
b |
|
) |
| |
|
static |
◆ ng_vlanrotate_newhook()
static int ng_vlanrotate_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ ng_vlanrotate_rcvdata()
static int ng_vlanrotate_rcvdata |
( |
hook_p |
hook, |
|
|
item_p |
item |
|
) |
| |
|
static |
Definition at line 373 of file ng_vlan_rotate.c.
References vlanrotate::conf, ng_vlanrotate_kernel_stats::drops, ng_vlanrotate_kernel_stats::excessive, vlanrotate::excessive_hook, ng_vlanrotate_kernel_stats::histogram, ng_vlanrotate_kernel_stats::incomplete, vlanrotate::incomplete_hook, ng_vlanrotate_conf::max, NG_FREE_ITEM, NG_FWD_NEW_DATA, NG_HOOK_NODE, NG_NODE_PRIVATE, NG_VLANROTATE_MAX_VLANS, ng_vlanrotate_rotate(), NGI_GET_M, vlanrotate::ordered_hook, vlanrotate::original_hook, ether_vlan_stack_entry::proto, ng_vlanrotate_conf::rot, vlanrotate::stats, and ether_vlan_stack_header::vlan_stack.
◆ ng_vlanrotate_rcvmsg()
Definition at line 220 of file ng_vlan_rotate.c.
References ng_mesg::ng_msghdr::arglen, ng_mesg::ng_msghdr::cmd, vlanrotate::conf, ng_mesg::data, ng_vlanrotate_kernel_stats::drops, ng_vlanrotate_stat::drops, ng_vlanrotate_kernel_stats::excessive, ng_vlanrotate_stat::excessive, ng_mesg::header, ng_vlanrotate_kernel_stats::histogram, ng_vlanrotate_stat::histogram, ng_vlanrotate_kernel_stats::incomplete, ng_vlanrotate_stat::incomplete, ng_vlanrotate_conf::max, ng_vlanrotate_conf::min, NG_FREE_MSG, NG_MKRESPONSE, NG_NODE_PRIVATE, NG_RESPOND_MSG, NG_VLANROTATE_MAX_VLANS, NGI_GET_MSG, NGM_VLANROTATE_CLR_STAT, NGM_VLANROTATE_COOKIE, NGM_VLANROTATE_GET_CONF, NGM_VLANROTATE_GET_STAT, NGM_VLANROTATE_GETCLR_STAT, NGM_VLANROTATE_SET_CONF, ng_vlanrotate_conf::rot, vlanrotate::stats, and ng_mesg::ng_msghdr::typecookie.
◆ ng_vlanrotate_rotate()
◆ ng_vlanrotate_shutdown()
static int ng_vlanrotate_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ __packed
◆ ng_vlanrotate_cmdlist
◆ ng_vlanrotate_conf_fields
Initial value:= {
{NULL}
}
const struct ng_parse_type ng_parse_int8_type
const struct ng_parse_type ng_parse_uint8_type
Definition at line 63 of file ng_vlan_rotate.c.
◆ ng_vlanrotate_conf_type
Initial value:= {
}
const struct ng_parse_type ng_parse_struct_type
static const struct ng_parse_struct_field ng_vlanrotate_conf_fields[]
Definition at line 69 of file ng_vlan_rotate.c.
◆ ng_vlanrotate_constructor
◆ ng_vlanrotate_disconnect
◆ ng_vlanrotate_newhook
◆ ng_vlanrotate_rcvdata
◆ ng_vlanrotate_rcvmsg
◆ ng_vlanrotate_shutdown
◆ ng_vlanrotate_stat_fields
Initial value:= {
{NULL}
}
const struct ng_parse_type ng_parse_uint64_type
static struct ng_parse_type ng_vlanrotate_stat_hist
Definition at line 83 of file ng_vlan_rotate.c.
◆ ng_vlanrotate_stat_hist
Initial value:= {
}
const struct ng_parse_type ng_parse_fixedarray_type
static struct ng_parse_fixedarray_info ng_vlanrotate_stat_hist_info
Definition at line 79 of file ng_vlan_rotate.c.
◆ ng_vlanrotate_stat_hist_info
Initial value:= {
}
#define NG_VLANROTATE_MAX_VLANS
Definition at line 75 of file ng_vlan_rotate.c.
◆ ng_vlanrotate_stat_type
Initial value:= {
}
static const struct ng_parse_struct_field ng_vlanrotate_stat_fields[]
Definition at line 90 of file ng_vlan_rotate.c.
◆ typestruct
Initial value:= {
}
static ng_constructor_t ng_vlanrotate_constructor
static ng_shutdown_t ng_vlanrotate_shutdown
static ng_rcvmsg_t ng_vlanrotate_rcvmsg
static ng_rcvdata_t ng_vlanrotate_rcvdata
static const struct ng_cmdlist ng_vlanrotate_cmdlist[]
static ng_newhook_t ng_vlanrotate_newhook
static ng_disconnect_t ng_vlanrotate_disconnect
#define NG_VLANROTATE_NODE_TYPE
Definition at line 137 of file ng_vlan_rotate.c.