Go to the documentation of this file.
48 #include <linux/types.h>
49 #include <linux/list.h>
50 #include <linux/socket.h>
52 #include <linux/time.h>
58 #define DECLARE_PRIMITIVE(name) \
60 int sctp_primitive_ ## name(struct net *net, struct sctp_association *asoc, \
63 sctp_event_t event_type; sctp_subtype_t subtype; \
65 struct sctp_endpoint *ep; \
67 event_type = SCTP_EVENT_T_PRIMITIVE; \
68 subtype = SCTP_ST_PRIMITIVE(SCTP_PRIMITIVE_ ## name); \
69 state = asoc ? asoc->state : SCTP_STATE_CLOSED; \
70 ep = asoc ? asoc->ep : NULL; \
72 error = sctp_do_sm(net, event_type, subtype, state, ep, asoc, \