netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
xt_sctp.h File Reference
#include <linux/types.h>
Include dependency graph for xt_sctp.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  xt_sctp_flag_info
 
struct  xt_sctp_info
 

Macros

#define XT_SCTP_SRC_PORTS   0x01
 
#define XT_SCTP_DEST_PORTS   0x02
 
#define XT_SCTP_CHUNK_TYPES   0x04
 
#define XT_SCTP_VALID_FLAGS   0x07
 
#define XT_NUM_SCTP_FLAGS   4
 
#define SCTP_CHUNK_MATCH_ANY   0x01 /* Match if any of the chunk types are present */
 
#define SCTP_CHUNK_MATCH_ALL   0x02 /* Match if all of the chunk types are present */
 
#define SCTP_CHUNK_MATCH_ONLY   0x04 /* Match if these are the only chunk types present */
 
#define bytes(type)   (sizeof(type) * 8)
 
#define SCTP_CHUNKMAP_SET(chunkmap, type)
 
#define SCTP_CHUNKMAP_CLEAR(chunkmap, type)
 
#define SCTP_CHUNKMAP_IS_SET(chunkmap, type)
 
#define SCTP_CHUNKMAP_RESET(chunkmap)   memset((chunkmap), 0, sizeof(chunkmap))
 
#define SCTP_CHUNKMAP_SET_ALL(chunkmap)   memset((chunkmap), ~0U, sizeof(chunkmap))
 
#define SCTP_CHUNKMAP_COPY(destmap, srcmap)   memcpy((destmap), (srcmap), sizeof(srcmap))
 
#define SCTP_CHUNKMAP_IS_CLEAR(chunkmap)   __sctp_chunkmap_is_clear((chunkmap), ARRAY_SIZE(chunkmap))
 
#define SCTP_CHUNKMAP_IS_ALL_SET(chunkmap)   __sctp_chunkmap_is_all_set((chunkmap), ARRAY_SIZE(chunkmap))
 

Macro Definition Documentation

#define SCTP_CHUNK_MATCH_ALL   0x02 /* Match if all of the chunk types are present */
#define SCTP_CHUNK_MATCH_ANY   0x01 /* Match if any of the chunk types are present */
#define SCTP_CHUNK_MATCH_ONLY   0x04 /* Match if these are the only chunk types present */
#define SCTP_CHUNKMAP_CLEAR (   chunkmap,
  type 
)
Value:
do { \
(chunkmap)[type / bytes(__u32)] &= \
~(1 << (type % bytes(__u32))); \
} while (0)
struct expr
#define bytes(type)
Definition: xt_sctp.h:38
#define SCTP_CHUNKMAP_COPY (   destmap,
  srcmap 
)    memcpy((destmap), (srcmap), sizeof(srcmap))
#define SCTP_CHUNKMAP_IS_ALL_SET (   chunkmap)    __sctp_chunkmap_is_all_set((chunkmap), ARRAY_SIZE(chunkmap))
#define SCTP_CHUNKMAP_IS_CLEAR (   chunkmap)    __sctp_chunkmap_is_clear((chunkmap), ARRAY_SIZE(chunkmap))
#define SCTP_CHUNKMAP_IS_SET (   chunkmap,
  type 
)
Value:
({ \
((chunkmap)[type / bytes (__u32)] & \
(1 << (type % bytes (__u32)))) ? 1: 0; \
})
struct expr
#define bytes(type)
Definition: xt_sctp.h:38
#define SCTP_CHUNKMAP_RESET (   chunkmap)    memset((chunkmap), 0, sizeof(chunkmap))
#define SCTP_CHUNKMAP_SET (   chunkmap,
  type 
)
Value:
do { \
(chunkmap)[type / bytes(__u32)] |= \
1 << (type % bytes(__u32)); \
} while (0)
struct expr
#define bytes(type)
Definition: xt_sctp.h:38
#define SCTP_CHUNKMAP_SET_ALL (   chunkmap)    memset((chunkmap), ~0U, sizeof(chunkmap))
#define XT_NUM_SCTP_FLAGS   4
#define XT_SCTP_CHUNK_TYPES   0x04
#define XT_SCTP_DEST_PORTS   0x02
#define XT_SCTP_SRC_PORTS   0x01
#define XT_SCTP_VALID_FLAGS   0x07