Go to the documentation of this file.
4 #include <linux/types.h>
37 #define XFRM_SC_DOI_RESERVED 0
38 #define XFRM_SC_DOI_LSM 1
41 #define XFRM_SC_ALG_RESERVED 0
42 #define XFRM_SC_ALG_SELINUX 1
61 #define XFRM_INF (~(__u64)0)
87 #define XFRMA_REPLAY_ESN_MAX 4096
147 #define XFRM_MODE_TRANSPORT 0
148 #define XFRM_MODE_TUNNEL 1
149 #define XFRM_MODE_ROUTEOPTIMIZATION 2
150 #define XFRM_MODE_IN_TRIGGER 3
151 #define XFRM_MODE_BEET 4
152 #define XFRM_MODE_MAX 5
159 #define XFRM_MSG_NEWSA XFRM_MSG_NEWSA
161 #define XFRM_MSG_DELSA XFRM_MSG_DELSA
163 #define XFRM_MSG_GETSA XFRM_MSG_GETSA
166 #define XFRM_MSG_NEWPOLICY XFRM_MSG_NEWPOLICY
168 #define XFRM_MSG_DELPOLICY XFRM_MSG_DELPOLICY
170 #define XFRM_MSG_GETPOLICY XFRM_MSG_GETPOLICY
173 #define XFRM_MSG_ALLOCSPI XFRM_MSG_ALLOCSPI
175 #define XFRM_MSG_ACQUIRE XFRM_MSG_ACQUIRE
177 #define XFRM_MSG_EXPIRE XFRM_MSG_EXPIRE
180 #define XFRM_MSG_UPDPOLICY XFRM_MSG_UPDPOLICY
182 #define XFRM_MSG_UPDSA XFRM_MSG_UPDSA
185 #define XFRM_MSG_POLEXPIRE XFRM_MSG_POLEXPIRE
188 #define XFRM_MSG_FLUSHSA XFRM_MSG_FLUSHSA
190 #define XFRM_MSG_FLUSHPOLICY XFRM_MSG_FLUSHPOLICY
193 #define XFRM_MSG_NEWAE XFRM_MSG_NEWAE
195 #define XFRM_MSG_GETAE XFRM_MSG_GETAE
198 #define XFRM_MSG_REPORT XFRM_MSG_REPORT
201 #define XFRM_MSG_MIGRATE XFRM_MSG_MIGRATE
204 #define XFRM_MSG_NEWSADINFO XFRM_MSG_NEWSADINFO
206 #define XFRM_MSG_GETSADINFO XFRM_MSG_GETSADINFO
209 #define XFRM_MSG_NEWSPDINFO XFRM_MSG_NEWSPDINFO
211 #define XFRM_MSG_GETSPDINFO XFRM_MSG_GETSPDINFO
214 #define XFRM_MSG_MAPPING XFRM_MSG_MAPPING
217 #define XFRM_MSG_MAX (__XFRM_MSG_MAX - 1)
219 #define XFRM_NR_MSGTYPES (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE)
265 #define XFRM_AE_MAX (__XFRM_AE_MAX - 1)
302 #define XFRMA_MAX (__XFRMA_MAX - 1)
316 #define XFRMA_SAD_MAX (__XFRMA_SAD_MAX - 1)
330 #define XFRMA_SPD_MAX (__XFRMA_SPD_MAX - 1)
360 #define XFRM_STATE_NOECN 1
361 #define XFRM_STATE_DECAP_DSCP 2
362 #define XFRM_STATE_NOPMTUDISC 4
363 #define XFRM_STATE_WILDRECV 8
364 #define XFRM_STATE_ICMP 16
365 #define XFRM_STATE_AF_UNSPEC 32
366 #define XFRM_STATE_ALIGN4 64
367 #define XFRM_STATE_ESN 128
398 #define XFRM_POLICY_ALLOW 0
399 #define XFRM_POLICY_BLOCK 1
401 #define XFRM_POLICY_LOCALOK 1
403 #define XFRM_POLICY_ICMP 2
476 #define XFRMGRP_ACQUIRE 1
477 #define XFRMGRP_EXPIRE 2
479 #define XFRMGRP_POLICY 8
480 #define XFRMGRP_REPORT 0x20
485 #define XFRMNLGRP_NONE XFRMNLGRP_NONE
487 #define XFRMNLGRP_ACQUIRE XFRMNLGRP_ACQUIRE
489 #define XFRMNLGRP_EXPIRE XFRMNLGRP_EXPIRE
491 #define XFRMNLGRP_SA XFRMNLGRP_SA
493 #define XFRMNLGRP_POLICY XFRMNLGRP_POLICY
495 #define XFRMNLGRP_AEVENTS XFRMNLGRP_AEVENTS
497 #define XFRMNLGRP_REPORT XFRMNLGRP_REPORT
499 #define XFRMNLGRP_MIGRATE XFRMNLGRP_MIGRATE
501 #define XFRMNLGRP_MAPPING XFRMNLGRP_MAPPING
504 #define XFRMNLGRP_MAX (__XFRMNLGRP_MAX - 1)