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

Go to the source code of this file.

Data Structures

union  xfrm_address_t
 
struct  xfrm_id
 
struct  xfrm_sec_ctx
 
struct  xfrm_selector
 
struct  xfrm_lifetime_cfg
 
struct  xfrm_lifetime_cur
 
struct  xfrm_replay_state
 
struct  xfrm_replay_state_esn
 
struct  xfrm_algo
 
struct  xfrm_algo_auth
 
struct  xfrm_algo_aead
 
struct  xfrm_stats
 
struct  xfrm_user_sec_ctx
 
struct  xfrm_user_tmpl
 
struct  xfrm_encap_tmpl
 
struct  xfrm_userpolicy_type
 
struct  xfrm_mark
 
struct  xfrmu_sadhinfo
 
struct  xfrmu_spdinfo
 
struct  xfrmu_spdhinfo
 
struct  xfrm_usersa_info
 
struct  xfrm_usersa_id
 
struct  xfrm_aevent_id
 
struct  xfrm_userspi_info
 
struct  xfrm_userpolicy_info
 
struct  xfrm_userpolicy_id
 
struct  xfrm_user_acquire
 
struct  xfrm_user_expire
 
struct  xfrm_user_polexpire
 
struct  xfrm_usersa_flush
 
struct  xfrm_user_report
 
struct  xfrm_user_kmaddress
 
struct  xfrm_user_migrate
 
struct  xfrm_user_mapping
 

Macros

#define XFRM_SC_DOI_RESERVED   0
 
#define XFRM_SC_DOI_LSM   1
 
#define XFRM_SC_ALG_RESERVED   0
 
#define XFRM_SC_ALG_SELINUX   1
 
#define XFRM_INF   (~(__u64)0)
 
#define XFRMA_REPLAY_ESN_MAX   4096
 
#define XFRM_MODE_TRANSPORT   0
 
#define XFRM_MODE_TUNNEL   1
 
#define XFRM_MODE_ROUTEOPTIMIZATION   2
 
#define XFRM_MODE_IN_TRIGGER   3
 
#define XFRM_MODE_BEET   4
 
#define XFRM_MODE_MAX   5
 
#define XFRM_MSG_NEWSA   XFRM_MSG_NEWSA
 
#define XFRM_MSG_DELSA   XFRM_MSG_DELSA
 
#define XFRM_MSG_GETSA   XFRM_MSG_GETSA
 
#define XFRM_MSG_NEWPOLICY   XFRM_MSG_NEWPOLICY
 
#define XFRM_MSG_DELPOLICY   XFRM_MSG_DELPOLICY
 
#define XFRM_MSG_GETPOLICY   XFRM_MSG_GETPOLICY
 
#define XFRM_MSG_ALLOCSPI   XFRM_MSG_ALLOCSPI
 
#define XFRM_MSG_ACQUIRE   XFRM_MSG_ACQUIRE
 
#define XFRM_MSG_EXPIRE   XFRM_MSG_EXPIRE
 
#define XFRM_MSG_UPDPOLICY   XFRM_MSG_UPDPOLICY
 
#define XFRM_MSG_UPDSA   XFRM_MSG_UPDSA
 
#define XFRM_MSG_POLEXPIRE   XFRM_MSG_POLEXPIRE
 
#define XFRM_MSG_FLUSHSA   XFRM_MSG_FLUSHSA
 
#define XFRM_MSG_FLUSHPOLICY   XFRM_MSG_FLUSHPOLICY
 
#define XFRM_MSG_NEWAE   XFRM_MSG_NEWAE
 
#define XFRM_MSG_GETAE   XFRM_MSG_GETAE
 
#define XFRM_MSG_REPORT   XFRM_MSG_REPORT
 
#define XFRM_MSG_MIGRATE   XFRM_MSG_MIGRATE
 
#define XFRM_MSG_NEWSADINFO   XFRM_MSG_NEWSADINFO
 
#define XFRM_MSG_GETSADINFO   XFRM_MSG_GETSADINFO
 
#define XFRM_MSG_NEWSPDINFO   XFRM_MSG_NEWSPDINFO
 
#define XFRM_MSG_GETSPDINFO   XFRM_MSG_GETSPDINFO
 
#define XFRM_MSG_MAPPING   XFRM_MSG_MAPPING
 
#define XFRM_MSG_MAX   (__XFRM_MSG_MAX - 1)
 
#define XFRM_NR_MSGTYPES   (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE)
 
#define XFRM_AE_MAX   (__XFRM_AE_MAX - 1)
 
#define XFRMA_MAX   (__XFRMA_MAX - 1)
 
#define XFRMA_SAD_MAX   (__XFRMA_SAD_MAX - 1)
 
#define XFRMA_SPD_MAX   (__XFRMA_SPD_MAX - 1)
 
#define XFRM_STATE_NOECN   1
 
#define XFRM_STATE_DECAP_DSCP   2
 
#define XFRM_STATE_NOPMTUDISC   4
 
#define XFRM_STATE_WILDRECV   8
 
#define XFRM_STATE_ICMP   16
 
#define XFRM_STATE_AF_UNSPEC   32
 
#define XFRM_STATE_ALIGN4   64
 
#define XFRM_STATE_ESN   128
 
#define XFRM_POLICY_ALLOW   0
 
#define XFRM_POLICY_BLOCK   1
 
#define XFRM_POLICY_LOCALOK   1 /* Allow user to override global policy */
 
#define XFRM_POLICY_ICMP   2
 
#define XFRMGRP_ACQUIRE   1
 
#define XFRMGRP_EXPIRE   2
 
#define XFRMGRP_SA   4
 
#define XFRMGRP_POLICY   8
 
#define XFRMGRP_REPORT   0x20
 
#define XFRMNLGRP_NONE   XFRMNLGRP_NONE
 
#define XFRMNLGRP_ACQUIRE   XFRMNLGRP_ACQUIRE
 
#define XFRMNLGRP_EXPIRE   XFRMNLGRP_EXPIRE
 
#define XFRMNLGRP_SA   XFRMNLGRP_SA
 
#define XFRMNLGRP_POLICY   XFRMNLGRP_POLICY
 
#define XFRMNLGRP_AEVENTS   XFRMNLGRP_AEVENTS
 
#define XFRMNLGRP_REPORT   XFRMNLGRP_REPORT
 
#define XFRMNLGRP_MIGRATE   XFRMNLGRP_MIGRATE
 
#define XFRMNLGRP_MAPPING   XFRMNLGRP_MAPPING
 
#define XFRMNLGRP_MAX   (__XFRMNLGRP_MAX - 1)
 

Enumerations

enum  { XFRM_POLICY_TYPE_MAIN = 0, XFRM_POLICY_TYPE_SUB = 1, XFRM_POLICY_TYPE_MAX = 2, XFRM_POLICY_TYPE_ANY = 255 }
 
enum  {
  XFRM_POLICY_IN = 0, XFRM_POLICY_OUT = 1, XFRM_POLICY_FWD = 2, XFRM_POLICY_MASK = 3,
  XFRM_POLICY_MAX = 3
}
 
enum  { XFRM_SHARE_ANY, XFRM_SHARE_SESSION, XFRM_SHARE_USER, XFRM_SHARE_UNIQUE }
 
enum  {
  XFRM_MSG_BASE = 0x10, XFRM_MSG_NEWSA = 0x10, XFRM_MSG_NEWSA = 0x10, XFRM_MSG_DELSA,
  XFRM_MSG_DELSA, XFRM_MSG_GETSA, XFRM_MSG_GETSA, XFRM_MSG_NEWPOLICY,
  XFRM_MSG_NEWPOLICY, XFRM_MSG_DELPOLICY, XFRM_MSG_DELPOLICY, XFRM_MSG_GETPOLICY,
  XFRM_MSG_GETPOLICY, XFRM_MSG_ALLOCSPI, XFRM_MSG_ALLOCSPI, XFRM_MSG_ACQUIRE,
  XFRM_MSG_ACQUIRE, XFRM_MSG_EXPIRE, XFRM_MSG_EXPIRE, XFRM_MSG_UPDPOLICY,
  XFRM_MSG_UPDPOLICY, XFRM_MSG_UPDSA, XFRM_MSG_UPDSA, XFRM_MSG_POLEXPIRE,
  XFRM_MSG_POLEXPIRE, XFRM_MSG_FLUSHSA, XFRM_MSG_FLUSHSA, XFRM_MSG_FLUSHPOLICY,
  XFRM_MSG_FLUSHPOLICY, XFRM_MSG_NEWAE, XFRM_MSG_NEWAE, XFRM_MSG_GETAE,
  XFRM_MSG_GETAE, XFRM_MSG_REPORT, XFRM_MSG_REPORT, XFRM_MSG_MIGRATE,
  XFRM_MSG_MIGRATE, XFRM_MSG_NEWSADINFO, XFRM_MSG_NEWSADINFO, XFRM_MSG_GETSADINFO,
  XFRM_MSG_GETSADINFO, XFRM_MSG_NEWSPDINFO, XFRM_MSG_NEWSPDINFO, XFRM_MSG_GETSPDINFO,
  XFRM_MSG_GETSPDINFO, XFRM_MSG_MAPPING, XFRM_MSG_MAPPING, __XFRM_MSG_MAX
}
 
enum  xfrm_ae_ftype_t {
  XFRM_AE_UNSPEC, XFRM_AE_RTHR =1, XFRM_AE_RVAL =2, XFRM_AE_LVAL =4,
  XFRM_AE_ETHR =8, XFRM_AE_CR =16, XFRM_AE_CE =32, XFRM_AE_CU =64
}
 
enum  xfrm_attr_type_t {
  XFRMA_UNSPEC, XFRMA_ALG_AUTH, XFRMA_ALG_CRYPT, XFRMA_ALG_COMP,
  XFRMA_ENCAP, XFRMA_TMPL, XFRMA_SA, XFRMA_POLICY,
  XFRMA_SEC_CTX, XFRMA_LTIME_VAL, XFRMA_REPLAY_VAL, XFRMA_REPLAY_THRESH,
  XFRMA_ETIMER_THRESH, XFRMA_SRCADDR, XFRMA_COADDR, XFRMA_LASTUSED,
  XFRMA_POLICY_TYPE, XFRMA_MIGRATE, XFRMA_ALG_AEAD, XFRMA_KMADDRESS,
  XFRMA_ALG_AUTH_TRUNC, XFRMA_MARK, XFRMA_TFCPAD, XFRMA_REPLAY_ESN_VAL
}
 
enum  xfrm_sadattr_type_t { XFRMA_SAD_UNSPEC, XFRMA_SAD_CNT, XFRMA_SAD_HINFO }
 
enum  xfrm_spdattr_type_t { XFRMA_SPD_UNSPEC, XFRMA_SPD_INFO, XFRMA_SPD_HINFO }
 
enum  xfrm_nlgroups {
  XFRMNLGRP_NONE, XFRMNLGRP_NONE, XFRMNLGRP_ACQUIRE, XFRMNLGRP_ACQUIRE,
  XFRMNLGRP_EXPIRE, XFRMNLGRP_EXPIRE, XFRMNLGRP_SA, XFRMNLGRP_SA,
  XFRMNLGRP_POLICY, XFRMNLGRP_POLICY, XFRMNLGRP_AEVENTS, XFRMNLGRP_AEVENTS,
  XFRMNLGRP_REPORT, XFRMNLGRP_REPORT, XFRMNLGRP_MIGRATE, XFRMNLGRP_MIGRATE,
  XFRMNLGRP_MAPPING, XFRMNLGRP_MAPPING, __XFRMNLGRP_MAX
}
 

Macro Definition Documentation

#define XFRM_AE_MAX   (__XFRM_AE_MAX - 1)

Definition at line 265 of file xfrm.h.

#define XFRM_INF   (~(__u64)0)

Definition at line 61 of file xfrm.h.

#define XFRM_MODE_BEET   4

Definition at line 151 of file xfrm.h.

#define XFRM_MODE_IN_TRIGGER   3

Definition at line 150 of file xfrm.h.

#define XFRM_MODE_MAX   5

Definition at line 152 of file xfrm.h.

#define XFRM_MODE_ROUTEOPTIMIZATION   2

Definition at line 149 of file xfrm.h.

#define XFRM_MODE_TRANSPORT   0

Definition at line 147 of file xfrm.h.

#define XFRM_MODE_TUNNEL   1

Definition at line 148 of file xfrm.h.

#define XFRM_MSG_ACQUIRE   XFRM_MSG_ACQUIRE

Definition at line 175 of file xfrm.h.

#define XFRM_MSG_ALLOCSPI   XFRM_MSG_ALLOCSPI

Definition at line 173 of file xfrm.h.

#define XFRM_MSG_DELPOLICY   XFRM_MSG_DELPOLICY

Definition at line 168 of file xfrm.h.

#define XFRM_MSG_DELSA   XFRM_MSG_DELSA

Definition at line 161 of file xfrm.h.

#define XFRM_MSG_EXPIRE   XFRM_MSG_EXPIRE

Definition at line 177 of file xfrm.h.

#define XFRM_MSG_FLUSHPOLICY   XFRM_MSG_FLUSHPOLICY

Definition at line 190 of file xfrm.h.

#define XFRM_MSG_FLUSHSA   XFRM_MSG_FLUSHSA

Definition at line 188 of file xfrm.h.

#define XFRM_MSG_GETAE   XFRM_MSG_GETAE

Definition at line 195 of file xfrm.h.

#define XFRM_MSG_GETPOLICY   XFRM_MSG_GETPOLICY

Definition at line 170 of file xfrm.h.

#define XFRM_MSG_GETSA   XFRM_MSG_GETSA

Definition at line 163 of file xfrm.h.

#define XFRM_MSG_GETSADINFO   XFRM_MSG_GETSADINFO

Definition at line 206 of file xfrm.h.

#define XFRM_MSG_GETSPDINFO   XFRM_MSG_GETSPDINFO

Definition at line 211 of file xfrm.h.

#define XFRM_MSG_MAPPING   XFRM_MSG_MAPPING

Definition at line 214 of file xfrm.h.

#define XFRM_MSG_MAX   (__XFRM_MSG_MAX - 1)

Definition at line 217 of file xfrm.h.

#define XFRM_MSG_MIGRATE   XFRM_MSG_MIGRATE

Definition at line 201 of file xfrm.h.

#define XFRM_MSG_NEWAE   XFRM_MSG_NEWAE

Definition at line 193 of file xfrm.h.

#define XFRM_MSG_NEWPOLICY   XFRM_MSG_NEWPOLICY

Definition at line 166 of file xfrm.h.

#define XFRM_MSG_NEWSA   XFRM_MSG_NEWSA

Definition at line 159 of file xfrm.h.

#define XFRM_MSG_NEWSADINFO   XFRM_MSG_NEWSADINFO

Definition at line 204 of file xfrm.h.

#define XFRM_MSG_NEWSPDINFO   XFRM_MSG_NEWSPDINFO

Definition at line 209 of file xfrm.h.

#define XFRM_MSG_POLEXPIRE   XFRM_MSG_POLEXPIRE

Definition at line 185 of file xfrm.h.

#define XFRM_MSG_REPORT   XFRM_MSG_REPORT

Definition at line 198 of file xfrm.h.

#define XFRM_MSG_UPDPOLICY   XFRM_MSG_UPDPOLICY

Definition at line 180 of file xfrm.h.

#define XFRM_MSG_UPDSA   XFRM_MSG_UPDSA

Definition at line 182 of file xfrm.h.

#define XFRM_NR_MSGTYPES   (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE)

Definition at line 219 of file xfrm.h.

#define XFRM_POLICY_ALLOW   0

Definition at line 398 of file xfrm.h.

#define XFRM_POLICY_BLOCK   1

Definition at line 399 of file xfrm.h.

#define XFRM_POLICY_ICMP   2

Definition at line 403 of file xfrm.h.

#define XFRM_POLICY_LOCALOK   1 /* Allow user to override global policy */

Definition at line 401 of file xfrm.h.

#define XFRM_SC_ALG_RESERVED   0

Definition at line 41 of file xfrm.h.

#define XFRM_SC_ALG_SELINUX   1

Definition at line 42 of file xfrm.h.

#define XFRM_SC_DOI_LSM   1

Definition at line 38 of file xfrm.h.

#define XFRM_SC_DOI_RESERVED   0

Definition at line 37 of file xfrm.h.

#define XFRM_STATE_AF_UNSPEC   32

Definition at line 365 of file xfrm.h.

#define XFRM_STATE_ALIGN4   64

Definition at line 366 of file xfrm.h.

#define XFRM_STATE_DECAP_DSCP   2

Definition at line 361 of file xfrm.h.

#define XFRM_STATE_ESN   128

Definition at line 367 of file xfrm.h.

#define XFRM_STATE_ICMP   16

Definition at line 364 of file xfrm.h.

#define XFRM_STATE_NOECN   1

Definition at line 360 of file xfrm.h.

#define XFRM_STATE_NOPMTUDISC   4

Definition at line 362 of file xfrm.h.

#define XFRM_STATE_WILDRECV   8

Definition at line 363 of file xfrm.h.

#define XFRMA_MAX   (__XFRMA_MAX - 1)

Definition at line 302 of file xfrm.h.

#define XFRMA_REPLAY_ESN_MAX   4096

Definition at line 87 of file xfrm.h.

#define XFRMA_SAD_MAX   (__XFRMA_SAD_MAX - 1)

Definition at line 316 of file xfrm.h.

#define XFRMA_SPD_MAX   (__XFRMA_SPD_MAX - 1)

Definition at line 330 of file xfrm.h.

#define XFRMGRP_ACQUIRE   1

Definition at line 476 of file xfrm.h.

#define XFRMGRP_EXPIRE   2

Definition at line 477 of file xfrm.h.

#define XFRMGRP_POLICY   8

Definition at line 479 of file xfrm.h.

#define XFRMGRP_REPORT   0x20

Definition at line 480 of file xfrm.h.

#define XFRMGRP_SA   4

Definition at line 478 of file xfrm.h.

#define XFRMNLGRP_ACQUIRE   XFRMNLGRP_ACQUIRE

Definition at line 487 of file xfrm.h.

#define XFRMNLGRP_AEVENTS   XFRMNLGRP_AEVENTS

Definition at line 495 of file xfrm.h.

#define XFRMNLGRP_EXPIRE   XFRMNLGRP_EXPIRE

Definition at line 489 of file xfrm.h.

#define XFRMNLGRP_MAPPING   XFRMNLGRP_MAPPING

Definition at line 501 of file xfrm.h.

#define XFRMNLGRP_MAX   (__XFRMNLGRP_MAX - 1)

Definition at line 504 of file xfrm.h.

#define XFRMNLGRP_MIGRATE   XFRMNLGRP_MIGRATE

Definition at line 499 of file xfrm.h.

#define XFRMNLGRP_NONE   XFRMNLGRP_NONE

Definition at line 485 of file xfrm.h.

#define XFRMNLGRP_POLICY   XFRMNLGRP_POLICY

Definition at line 493 of file xfrm.h.

#define XFRMNLGRP_REPORT   XFRMNLGRP_REPORT

Definition at line 497 of file xfrm.h.

#define XFRMNLGRP_SA   XFRMNLGRP_SA

Definition at line 491 of file xfrm.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
XFRM_POLICY_TYPE_MAIN 
XFRM_POLICY_TYPE_SUB 
XFRM_POLICY_TYPE_MAX 
XFRM_POLICY_TYPE_ANY 

Definition at line 125 of file xfrm.h.

anonymous enum
Enumerator:
XFRM_POLICY_IN 
XFRM_POLICY_OUT 
XFRM_POLICY_FWD 
XFRM_POLICY_MASK 
XFRM_POLICY_MAX 

Definition at line 132 of file xfrm.h.

anonymous enum
Enumerator:
XFRM_SHARE_ANY 
XFRM_SHARE_SESSION 
XFRM_SHARE_USER 
XFRM_SHARE_UNIQUE 

Definition at line 140 of file xfrm.h.

anonymous enum
Enumerator:
XFRM_MSG_BASE 
XFRM_MSG_NEWSA 
XFRM_MSG_NEWSA 
XFRM_MSG_DELSA 
XFRM_MSG_DELSA 
XFRM_MSG_GETSA 
XFRM_MSG_GETSA 
XFRM_MSG_NEWPOLICY 
XFRM_MSG_NEWPOLICY 
XFRM_MSG_DELPOLICY 
XFRM_MSG_DELPOLICY 
XFRM_MSG_GETPOLICY 
XFRM_MSG_GETPOLICY 
XFRM_MSG_ALLOCSPI 
XFRM_MSG_ALLOCSPI 
XFRM_MSG_ACQUIRE 
XFRM_MSG_ACQUIRE 
XFRM_MSG_EXPIRE 
XFRM_MSG_EXPIRE 
XFRM_MSG_UPDPOLICY 
XFRM_MSG_UPDPOLICY 
XFRM_MSG_UPDSA 
XFRM_MSG_UPDSA 
XFRM_MSG_POLEXPIRE 
XFRM_MSG_POLEXPIRE 
XFRM_MSG_FLUSHSA 
XFRM_MSG_FLUSHSA 
XFRM_MSG_FLUSHPOLICY 
XFRM_MSG_FLUSHPOLICY 
XFRM_MSG_NEWAE 
XFRM_MSG_NEWAE 
XFRM_MSG_GETAE 
XFRM_MSG_GETAE 
XFRM_MSG_REPORT 
XFRM_MSG_REPORT 
XFRM_MSG_MIGRATE 
XFRM_MSG_MIGRATE 
XFRM_MSG_NEWSADINFO 
XFRM_MSG_NEWSADINFO 
XFRM_MSG_GETSADINFO 
XFRM_MSG_GETSADINFO 
XFRM_MSG_NEWSPDINFO 
XFRM_MSG_NEWSPDINFO 
XFRM_MSG_GETSPDINFO 
XFRM_MSG_GETSPDINFO 
XFRM_MSG_MAPPING 
XFRM_MSG_MAPPING 
__XFRM_MSG_MAX 

Definition at line 155 of file xfrm.h.

Enumerator:
XFRM_AE_UNSPEC 
XFRM_AE_RTHR 
XFRM_AE_RVAL 
XFRM_AE_LVAL 
XFRM_AE_ETHR 
XFRM_AE_CR 
XFRM_AE_CE 
XFRM_AE_CU 

Definition at line 254 of file xfrm.h.

Enumerator:
XFRMA_UNSPEC 
XFRMA_ALG_AUTH 
XFRMA_ALG_CRYPT 
XFRMA_ALG_COMP 
XFRMA_ENCAP 
XFRMA_TMPL 
XFRMA_SA 
XFRMA_POLICY 
XFRMA_SEC_CTX 
XFRMA_LTIME_VAL 
XFRMA_REPLAY_VAL 
XFRMA_REPLAY_THRESH 
XFRMA_ETIMER_THRESH 
XFRMA_SRCADDR 
XFRMA_COADDR 
XFRMA_LASTUSED 
XFRMA_POLICY_TYPE 
XFRMA_MIGRATE 
XFRMA_ALG_AEAD 
XFRMA_KMADDRESS 
XFRMA_ALG_AUTH_TRUNC 
XFRMA_MARK 
XFRMA_TFCPAD 
XFRMA_REPLAY_ESN_VAL 

Definition at line 275 of file xfrm.h.

Enumerator:
XFRMNLGRP_NONE 
XFRMNLGRP_NONE 
XFRMNLGRP_ACQUIRE 
XFRMNLGRP_ACQUIRE 
XFRMNLGRP_EXPIRE 
XFRMNLGRP_EXPIRE 
XFRMNLGRP_SA 
XFRMNLGRP_SA 
XFRMNLGRP_POLICY 
XFRMNLGRP_POLICY 
XFRMNLGRP_AEVENTS 
XFRMNLGRP_AEVENTS 
XFRMNLGRP_REPORT 
XFRMNLGRP_REPORT 
XFRMNLGRP_MIGRATE 
XFRMNLGRP_MIGRATE 
XFRMNLGRP_MAPPING 
XFRMNLGRP_MAPPING 
__XFRMNLGRP_MAX 

Definition at line 483 of file xfrm.h.

Enumerator:
XFRMA_SAD_UNSPEC 
XFRMA_SAD_CNT 
XFRMA_SAD_HINFO 

Definition at line 310 of file xfrm.h.

Enumerator:
XFRMA_SPD_UNSPEC 
XFRMA_SPD_INFO 
XFRMA_SPD_HINFO 

Definition at line 324 of file xfrm.h.