netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
libxt_conntrack.c File Reference
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <xtables.h>
#include <linux/netfilter/xt_conntrack.h>
#include <linux/netfilter/xt_state.h>
#include <linux/netfilter/nf_conntrack_common.h>
Include dependency graph for libxt_conntrack.c:

Data Structures

struct  ip_conntrack_old_tuple
 
struct  xt_conntrack_info
 

Macros

#define XT_STATE_UNTRACKED   (1 << (IP_CT_NUMBER + 1))
 
#define s   struct xt_conntrack_info /* for v0 */
 
#define s   struct xt_conntrack_mtinfo2
 
#define s   struct xt_conntrack_mtinfo3
 
#define cinfo_transform(r, l)
 
#define cinfo2_transform(r, l)   memcpy((r), (l), offsetof(typeof(*(l)), sizeof(*info));
 

Enumerations

enum  {
  O_CTSTATE = 0,
  O_CTPROTO,
  O_CTORIGSRC,
  O_CTORIGDST,
  O_CTREPLSRC,
  O_CTREPLDST,
  O_CTORIGSRCPORT,
  O_CTORIGDSTPORT,
  O_CTREPLSRCPORT,
  O_CTREPLDSTPORT,
  O_CTSTATUS,
  O_CTEXPIRE,
  O_CTDIR
}
 

Functions

void _init (void)
 

Macro Definition Documentation

#define cinfo2_transform (   r,
 
)    memcpy((r), (l), offsetof(typeof(*(l)), sizeof(*info));
#define cinfo_transform (   r,
 
)
Value:
do { \
memcpy((r), (l), offsetof(typeof(*(l)), state_mask)); \
(r)->state_mask = (l)->state_mask; \
(r)->status_mask = (l)->status_mask; \
} while (false);
#define offsetof(TYPE, MEMBER)
Definition: linux_list.h:7
#define s   struct xt_conntrack_info /* for v0 */
#define s   struct xt_conntrack_mtinfo2
#define s   struct xt_conntrack_mtinfo3
#define XT_STATE_UNTRACKED   (1 << (IP_CT_NUMBER + 1))

Enumeration Type Documentation

anonymous enum
Enumerator
O_CTSTATE 
O_CTPROTO 
O_CTORIGSRC 
O_CTORIGDST 
O_CTREPLSRC 
O_CTREPLDST 
O_CTORIGSRCPORT 
O_CTORIGDSTPORT 
O_CTREPLSRCPORT 
O_CTREPLDSTPORT 
O_CTSTATUS 
O_CTEXPIRE 
O_CTDIR 

Function Documentation

void _init ( void  )

References ARRAY_SIZE, and xtables_register_matches().

Here is the call graph for this function: