Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
garp.h File Reference
#include <net/stp.h>

Go to the source code of this file.

Data Structures

struct  garp_pdu_hdr
 
struct  garp_msg_hdr
 
struct  garp_attr_hdr
 
struct  garp_skb_cb
 
struct  garp_attr
 
struct  garp_application
 
struct  garp_applicant
 
struct  garp_port
 

Macros

#define GARP_PROTOCOL_ID   0x1
 
#define GARP_END_MARK   0x0
 
#define GARP_APPLICANT_MAX   (__GARP_APPLICANT_MAX - 1)
 
#define GARP_EVENT_MAX   (__GARP_EVENT_MAX - 1)
 
#define GARP_APPLICATION_MAX   (__GARP_APPLICATION_MAX - 1)
 

Enumerations

enum  garp_attr_event {
  GARP_LEAVE_ALL, GARP_JOIN_EMPTY, GARP_JOIN_IN, GARP_LEAVE_EMPTY,
  GARP_LEAVE_IN, GARP_EMPTY
}
 
enum  garp_applicant_state {
  GARP_APPLICANT_INVALID, GARP_APPLICANT_VA, GARP_APPLICANT_AA, GARP_APPLICANT_QA,
  GARP_APPLICANT_LA, GARP_APPLICANT_VP, GARP_APPLICANT_AP, GARP_APPLICANT_QP,
  GARP_APPLICANT_VO, GARP_APPLICANT_AO, GARP_APPLICANT_QO, __GARP_APPLICANT_MAX
}
 
enum  garp_event {
  GARP_EVENT_REQ_JOIN, GARP_EVENT_REQ_LEAVE, GARP_EVENT_R_JOIN_IN, GARP_EVENT_R_JOIN_EMPTY,
  GARP_EVENT_R_EMPTY, GARP_EVENT_R_LEAVE_IN, GARP_EVENT_R_LEAVE_EMPTY, GARP_EVENT_TRANSMIT_PDU,
  __GARP_EVENT_MAX
}
 
enum  garp_action { GARP_ACTION_NONE, GARP_ACTION_S_JOIN_IN, GARP_ACTION_S_LEAVE_EMPTY }
 
enum  garp_applications { GARP_APPLICATION_GVRP, __GARP_APPLICATION_MAX }
 

Functions

int garp_register_application (struct garp_application *app)
 
void garp_unregister_application (struct garp_application *app)
 
int garp_init_applicant (struct net_device *dev, struct garp_application *app)
 
void garp_uninit_applicant (struct net_device *dev, struct garp_application *app)
 
int garp_request_join (const struct net_device *dev, const struct garp_application *app, const void *data, u8 len, u8 type)
 
void garp_request_leave (const struct net_device *dev, const struct garp_application *app, const void *data, u8 len, u8 type)
 

Macro Definition Documentation

#define GARP_APPLICANT_MAX   (__GARP_APPLICANT_MAX - 1)

Definition at line 57 of file garp.h.

#define GARP_APPLICATION_MAX   (__GARP_APPLICATION_MAX - 1)

Definition at line 90 of file garp.h.

#define GARP_END_MARK   0x0

Definition at line 7 of file garp.h.

#define GARP_EVENT_MAX   (__GARP_EVENT_MAX - 1)

Definition at line 70 of file garp.h.

#define GARP_PROTOCOL_ID   0x1

Definition at line 6 of file garp.h.

Enumeration Type Documentation

Enumerator:
GARP_ACTION_NONE 
GARP_ACTION_S_JOIN_IN 
GARP_ACTION_S_LEAVE_EMPTY 

Definition at line 72 of file garp.h.

Enumerator:
GARP_APPLICANT_INVALID 
GARP_APPLICANT_VA 
GARP_APPLICANT_AA 
GARP_APPLICANT_QA 
GARP_APPLICANT_LA 
GARP_APPLICANT_VP 
GARP_APPLICANT_AP 
GARP_APPLICANT_QP 
GARP_APPLICANT_VO 
GARP_APPLICANT_AO 
GARP_APPLICANT_QO 
__GARP_APPLICANT_MAX 

Definition at line 43 of file garp.h.

Enumerator:
GARP_APPLICATION_GVRP 
__GARP_APPLICATION_MAX 

Definition at line 86 of file garp.h.

Enumerator:
GARP_LEAVE_ALL 
GARP_JOIN_EMPTY 
GARP_JOIN_IN 
GARP_LEAVE_EMPTY 
GARP_LEAVE_IN 
GARP_EMPTY 

Definition at line 17 of file garp.h.

enum garp_event
Enumerator:
GARP_EVENT_REQ_JOIN 
GARP_EVENT_REQ_LEAVE 
GARP_EVENT_R_JOIN_IN 
GARP_EVENT_R_JOIN_EMPTY 
GARP_EVENT_R_EMPTY 
GARP_EVENT_R_LEAVE_IN 
GARP_EVENT_R_LEAVE_EMPTY 
GARP_EVENT_TRANSMIT_PDU 
__GARP_EVENT_MAX 

Definition at line 59 of file garp.h.

Function Documentation

int garp_init_applicant ( struct net_device dev,
struct garp_application app 
)

Definition at line 559 of file garp.c.

int garp_register_application ( struct garp_application app)

Definition at line 622 of file garp.c.

int garp_request_join ( const struct net_device dev,
const struct garp_application app,
const void data,
u8  len,
u8  type 
)

Definition at line 344 of file garp.c.

void garp_request_leave ( const struct net_device dev,
const struct garp_application app,
const void data,
u8  len,
u8  type 
)

Definition at line 364 of file garp.c.

void garp_uninit_applicant ( struct net_device dev,
struct garp_application app 
)

Definition at line 600 of file garp.c.

void garp_unregister_application ( struct garp_application app)

Definition at line 630 of file garp.c.