XINU
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Macros | Functions | Variables
ethloop.h File Reference

Go to the source code of this file.

Data Structures

struct  ethloop
 

Macros

#define ELOOP_BUFSIZE   ELOOP_MTU + ELOOP_LINKHDRSIZE
 
#define ELOOP_CTRL_CLRFLAG   3
 
#define ELOOP_CTRL_GETHOLD   1
 
#define ELOOP_CTRL_SETFLAG   2
 
#define ELOOP_FLAG_DROPALL   0x08
 
#define ELOOP_FLAG_DROPNXT   0x04
 
#define ELOOP_FLAG_HOLDNXT   0x01
 
#define ELOOP_LINKHDRSIZE   ETH_HDR_LEN
 
#define ELOOP_MTU   1500
 
#define ELOOP_NBUF   100
 
#define ELOOP_STATE_ALLOC   1
 
#define ELOOP_STATE_FREE   0
 

Functions

devcall ethloopClose (struct dentry *)
 
devcall ethloopControl (struct dentry *, int, int32, int32)
 
devcall ethloopInit (struct dentry *)
 
devcall ethloopOpen (struct dentry *)
 
devcall ethloopRead (struct dentry *, void *, uint32)
 
devcall ethloopWrite (struct dentry *, void *, uint32)
 

Variables

struct ethloop elooptab []
 

Detailed Description

Id
ethloop.h 2076 2009-09-24 23:05:39Z brylow

Definition in file ethloop.h.

Macro Definition Documentation

◆ ELOOP_BUFSIZE

#define ELOOP_BUFSIZE   ELOOP_MTU + ELOOP_LINKHDRSIZE

Definition at line 15 of file ethloop.h.

◆ ELOOP_CTRL_CLRFLAG

#define ELOOP_CTRL_CLRFLAG   3

Definition at line 20 of file ethloop.h.

◆ ELOOP_CTRL_GETHOLD

#define ELOOP_CTRL_GETHOLD   1

Definition at line 18 of file ethloop.h.

◆ ELOOP_CTRL_SETFLAG

#define ELOOP_CTRL_SETFLAG   2

Definition at line 19 of file ethloop.h.

◆ ELOOP_FLAG_DROPALL

#define ELOOP_FLAG_DROPALL   0x08

drop all written pkts

Definition at line 24 of file ethloop.h.

◆ ELOOP_FLAG_DROPNXT

#define ELOOP_FLAG_DROPNXT   0x04

drop next written pkt

Definition at line 23 of file ethloop.h.

◆ ELOOP_FLAG_HOLDNXT

#define ELOOP_FLAG_HOLDNXT   0x01

place next written pkt in hold

Definition at line 22 of file ethloop.h.

◆ ELOOP_LINKHDRSIZE

#define ELOOP_LINKHDRSIZE   ETH_HDR_LEN

Definition at line 13 of file ethloop.h.

◆ ELOOP_MTU

#define ELOOP_MTU   1500

Definition at line 12 of file ethloop.h.

◆ ELOOP_NBUF

#define ELOOP_NBUF   100

Definition at line 16 of file ethloop.h.

◆ ELOOP_STATE_ALLOC

#define ELOOP_STATE_ALLOC   1

Definition at line 27 of file ethloop.h.

◆ ELOOP_STATE_FREE

#define ELOOP_STATE_FREE   0

Definition at line 26 of file ethloop.h.

Function Documentation

◆ ethloopClose()

devcall ethloopClose ( struct dentry )

◆ ethloopControl()

devcall ethloopControl ( struct dentry ,
int  ,
int32  ,
int32   
)

◆ ethloopInit()

devcall ethloopInit ( struct dentry )

◆ ethloopOpen()

devcall ethloopOpen ( struct dentry )

◆ ethloopRead()

devcall ethloopRead ( struct dentry ,
void *  ,
uint32   
)

◆ ethloopWrite()

devcall ethloopWrite ( struct dentry ,
void *  ,
uint32   
)

Variable Documentation

◆ elooptab

struct ethloop elooptab[]