Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
primitive.c File Reference
#include <linux/types.h>
#include <linux/list.h>
#include <linux/socket.h>
#include <linux/ip.h>
#include <linux/time.h>
#include <linux/gfp.h>
#include <net/sock.h>
#include <net/sctp/sctp.h>
#include <net/sctp/sm.h>

Go to the source code of this file.

Macros

#define DECLARE_PRIMITIVE(name)
 

Functions

 DECLARE_PRIMITIVE (SHUTDOWN)
 
 DECLARE_PRIMITIVE (ABORT)
 
 DECLARE_PRIMITIVE (SEND)
 
 DECLARE_PRIMITIVE (REQUESTHEARTBEAT)
 
 DECLARE_PRIMITIVE (ASCONF)
 

Macro Definition Documentation

#define DECLARE_PRIMITIVE (   name)
Value:
/* This is called in the code as sctp_primitive_ ## name. */ \
int sctp_primitive_ ## name(struct net *net, struct sctp_association *asoc, \
void *arg) { \
int error = 0; \
\
subtype = SCTP_ST_PRIMITIVE(SCTP_PRIMITIVE_ ## name); \
state = asoc ? asoc->state : SCTP_STATE_CLOSED; \
ep = asoc ? asoc->ep : NULL; \
\
error = sctp_do_sm(net, event_type, subtype, state, ep, asoc, \
arg, GFP_KERNEL); \
return error; \
}

Definition at line 58 of file primitive.c.

Function Documentation

DECLARE_PRIMITIVE ( SHUTDOWN  )
DECLARE_PRIMITIVE ( ABORT  )
DECLARE_PRIMITIVE ( SEND  )
DECLARE_PRIMITIVE ( REQUESTHEARTBEAT  )
DECLARE_PRIMITIVE ( ASCONF  )