#include <sys/param.h>
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <net/if.h>
#include <netinet/in.h>
#include <netinet/if_ether.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_parse.h>
#include <netgraph/ng_rfc1490.h>
Go to the source code of this file.
◆ ERROUT
#define ERROUT |
( |
|
x | ) |
do { error = (x); goto done; } while (0) |
◆ HDLC_UI
◆ MAX_ENCAPS_HDR
◆ NLPID_CLNP
◆ NLPID_ESIS
◆ NLPID_IP
◆ NLPID_ISIS
◆ NLPID_PPP
◆ NLPID_Q933
◆ NLPID_SNAP
◆ OUICMP
#define OUICMP |
( |
|
P, |
|
|
|
A, |
|
|
|
B, |
|
|
|
C |
|
) |
| ((P)[0]==(A) && (P)[1]==(B) && (P)[2]==(C)) |
◆ priv_p
◆ anonymous enum
Enumerator |
---|
NG_RFC1490_ENCAP_IETF_IP | |
NG_RFC1490_ENCAP_IETF_SNAP | |
NG_RFC1490_ENCAP_CISCO | |
Definition at line 86 of file ng_rfc1490.c.
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
rfc1490 |
, |
|
|
& |
typestruct |
|
) |
| |
◆ ng_rfc1490_constructor()
static int ng_rfc1490_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_rfc1490_disconnect()
static int ng_rfc1490_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_rfc1490_newhook()
static int ng_rfc1490_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ ng_rfc1490_rcvdata()
Definition at line 306 of file ng_rfc1490.c.
References ERROUT, HDLC_UI, MAX_ENCAPS_HDR, NG_FREE_ITEM, NG_FREE_M, NG_FWD_NEW_DATA, NG_HOOK_NODE, NG_NODE_PRIVATE, NG_RFC1490_ENCAP_CISCO, NG_RFC1490_ENCAP_IETF_IP, NG_RFC1490_ENCAP_IETF_SNAP, NGI_GET_M, NLPID_CLNP, NLPID_ESIS, NLPID_IP, NLPID_ISIS, NLPID_PPP, NLPID_Q933, NLPID_SNAP, and OUICMP.
◆ ng_rfc1490_rcvmsg()
Definition at line 212 of file ng_rfc1490.c.
References ng_mesg::ng_msghdr::arglen, ng_mesg::ng_msghdr::cmd, ng_mesg::data, ERROUT, ng_mesg::header, ng_rfc1490_encap_t::method, ng_rfc1490_encap_t::name, NG_FREE_MSG, NG_MKRESPONSE, NG_NODE_PRIVATE, NG_RESPOND_MSG, ng_rfc1490_encaps, NGI_GET_MSG, NGM_RFC1490_COOKIE, NGM_RFC1490_GET_ENCAP, NGM_RFC1490_SET_ENCAP, and ng_mesg::ng_msghdr::typecookie.
◆ ng_rfc1490_shutdown()
static int ng_rfc1490_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ ng_rfc1490_cmds
Initial value:= {
{
"setencap",
NULL
},
{
"getencap",
NULL,
},
{ 0 }
}
const struct ng_parse_type ng_parse_string_type
#define NGM_RFC1490_COOKIE
Definition at line 123 of file ng_rfc1490.c.
◆ ng_rfc1490_constructor
◆ ng_rfc1490_disconnect
◆ ng_rfc1490_encaps
◆ ng_rfc1490_newhook
◆ ng_rfc1490_rcvdata
◆ ng_rfc1490_rcvmsg
◆ ng_rfc1490_shutdown
◆ typestruct
Initial value:= {
}
static ng_constructor_t ng_rfc1490_constructor
static ng_rcvdata_t ng_rfc1490_rcvdata
static const struct ng_cmdlist ng_rfc1490_cmds[]
static ng_newhook_t ng_rfc1490_newhook
static ng_rcvmsg_t ng_rfc1490_rcvmsg
static ng_disconnect_t ng_rfc1490_disconnect
static ng_shutdown_t ng_rfc1490_shutdown
#define NG_RFC1490_NODE_TYPE
Definition at line 142 of file ng_rfc1490.c.