#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/malloc.h>
#include <sys/mbuf.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <netgraph/ng_message.h>
#include <netgraph/netgraph.h>
#include <netgraph/ng_atmllc.h>
#include <net/if.h>
#include <net/ethernet.h>
Go to the source code of this file.
◆ ATM_LLC_SETTYPE
#define ATM_LLC_SETTYPE |
( |
|
X, |
|
|
|
V |
|
) |
| |
Value: do { \
(X)->
type[0] = ((V) >> 8) & 0xff; \
(X)->
type[1] = ((V) & 0xff); \
} while (0)
Definition at line 66 of file ng_atmllc.c.
◆ ATM_LLC_TYPE
#define ATM_LLC_TYPE |
( |
|
X | ) |
(((X)->type[0] << 8) | ((X)->type[1])) |
◆ NG_ATMLLC_HEADER
#define NG_ATMLLC_HEADER "\252\252\3\0\200\302" |
◆ NG_ATMLLC_HEADER_LEN
#define NG_ATMLLC_HEADER_LEN (sizeof(struct atmllc)) |
◆ NG_ATMLLC_TYPE_ETHERNET_FCS
#define NG_ATMLLC_TYPE_ETHERNET_FCS 0x0001 |
◆ NG_ATMLLC_TYPE_ETHERNET_NOFCS
#define NG_ATMLLC_TYPE_ETHERNET_NOFCS 0x0007 |
◆ NG_ATMLLC_TYPE_FDDI_FCS
#define NG_ATMLLC_TYPE_FDDI_FCS 0x0004 |
◆ NG_ATMLLC_TYPE_FDDI_NOFCS
#define NG_ATMLLC_TYPE_FDDI_NOFCS 0x000A |
◆ NETGRAPH_INIT()
NETGRAPH_INIT |
( |
atmllc |
, |
|
|
& |
ng_atmllc_typestruct |
|
) |
| |
◆ ng_atmllc_constructor()
static int ng_atmllc_constructor |
( |
node_p |
node | ) |
|
|
static |
◆ ng_atmllc_disconnect()
static int ng_atmllc_disconnect |
( |
hook_p |
hook | ) |
|
|
static |
◆ ng_atmllc_newhook()
static int ng_atmllc_newhook |
( |
node_p |
node, |
|
|
hook_p |
hook, |
|
|
const char * |
name |
|
) |
| |
|
static |
◆ ng_atmllc_rcvdata()
Definition at line 159 of file ng_atmllc.c.
References ATM_LLC_SETTYPE, ATM_LLC_TYPE, NG_ATMLLC_HEADER, NG_ATMLLC_HEADER_LEN, NG_ATMLLC_TYPE_ETHERNET_FCS, NG_ATMLLC_TYPE_ETHERNET_NOFCS, NG_ATMLLC_TYPE_FDDI_FCS, NG_ATMLLC_TYPE_FDDI_NOFCS, NG_FREE_ITEM, NG_FREE_M, NG_FWD_NEW_DATA, NG_HOOK_NODE, NG_NODE_PRIVATE, and NGI_GET_M.
◆ ng_atmllc_rcvmsg()
◆ ng_atmllc_shutdown()
static int ng_atmllc_shutdown |
( |
node_p |
node | ) |
|
|
static |
◆ ng_atmllc_constructor
◆ ng_atmllc_disconnect
◆ ng_atmllc_newhook
◆ ng_atmllc_rcvdata
◆ ng_atmllc_rcvmsg
◆ ng_atmllc_shutdown
◆ ng_atmllc_typestruct
struct ng_type ng_atmllc_typestruct |
|
static |
Initial value:= {
}
static ng_shutdown_t ng_atmllc_shutdown
static ng_disconnect_t ng_atmllc_disconnect
static ng_newhook_t ng_atmllc_newhook
static ng_constructor_t ng_atmllc_constructor
static ng_rcvmsg_t ng_atmllc_rcvmsg
static ng_rcvdata_t ng_atmllc_rcvdata
#define NG_ATMLLC_NODE_TYPE
Definition at line 79 of file ng_atmllc.c.