Symbol: XFRM_MSG_BASE
include/uapi/linux/xfrm.h
234
#define XFRM_NR_MSGTYPES (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE)
net/xfrm/xfrm_compat.c
304
u16 type = nlh_src->nlmsg_type - XFRM_MSG_BASE;
net/xfrm/xfrm_compat.c
338
u16 type = nlh_src->nlmsg_type - XFRM_MSG_BASE;
net/xfrm/xfrm_compat.c
601
u16 type = h32->nlmsg_type - XFRM_MSG_BASE;
net/xfrm/xfrm_compat.c
75
[XFRM_MSG_NEWSA - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_usersa_info),
net/xfrm/xfrm_compat.c
76
[XFRM_MSG_DELSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_id),
net/xfrm/xfrm_compat.c
77
[XFRM_MSG_GETSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_id),
net/xfrm/xfrm_compat.c
78
[XFRM_MSG_NEWPOLICY - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_userpolicy_info),
net/xfrm/xfrm_compat.c
79
[XFRM_MSG_DELPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_compat.c
80
[XFRM_MSG_GETPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_compat.c
81
[XFRM_MSG_ALLOCSPI - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_userspi_info),
net/xfrm/xfrm_compat.c
82
[XFRM_MSG_ACQUIRE - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_user_acquire),
net/xfrm/xfrm_compat.c
83
[XFRM_MSG_EXPIRE - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_user_expire),
net/xfrm/xfrm_compat.c
84
[XFRM_MSG_UPDPOLICY - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_userpolicy_info),
net/xfrm/xfrm_compat.c
85
[XFRM_MSG_UPDSA - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_usersa_info),
net/xfrm/xfrm_compat.c
86
[XFRM_MSG_POLEXPIRE - XFRM_MSG_BASE] = XMSGSIZE(compat_xfrm_user_polexpire),
net/xfrm/xfrm_compat.c
87
[XFRM_MSG_FLUSHSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_flush),
net/xfrm/xfrm_compat.c
88
[XFRM_MSG_FLUSHPOLICY - XFRM_MSG_BASE] = 0,
net/xfrm/xfrm_compat.c
89
[XFRM_MSG_NEWAE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_aevent_id),
net/xfrm/xfrm_compat.c
90
[XFRM_MSG_GETAE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_aevent_id),
net/xfrm/xfrm_compat.c
91
[XFRM_MSG_REPORT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_report),
net/xfrm/xfrm_compat.c
92
[XFRM_MSG_MIGRATE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_compat.c
93
[XFRM_MSG_NEWSADINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_compat.c
94
[XFRM_MSG_GETSADINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_compat.c
95
[XFRM_MSG_NEWSPDINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_compat.c
96
[XFRM_MSG_GETSPDINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_compat.c
97
[XFRM_MSG_MAPPING - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_mapping)
net/xfrm/xfrm_user.c
3305
[XFRM_MSG_NEWSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_info),
net/xfrm/xfrm_user.c
3306
[XFRM_MSG_DELSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_id),
net/xfrm/xfrm_user.c
3307
[XFRM_MSG_GETSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_id),
net/xfrm/xfrm_user.c
3308
[XFRM_MSG_NEWPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_info),
net/xfrm/xfrm_user.c
3309
[XFRM_MSG_DELPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_user.c
3310
[XFRM_MSG_GETPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_user.c
3311
[XFRM_MSG_ALLOCSPI - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userspi_info),
net/xfrm/xfrm_user.c
3312
[XFRM_MSG_ACQUIRE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_acquire),
net/xfrm/xfrm_user.c
3313
[XFRM_MSG_EXPIRE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_expire),
net/xfrm/xfrm_user.c
3314
[XFRM_MSG_UPDPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_info),
net/xfrm/xfrm_user.c
3315
[XFRM_MSG_UPDSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_info),
net/xfrm/xfrm_user.c
3316
[XFRM_MSG_POLEXPIRE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_polexpire),
net/xfrm/xfrm_user.c
3317
[XFRM_MSG_FLUSHSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_flush),
net/xfrm/xfrm_user.c
3318
[XFRM_MSG_FLUSHPOLICY - XFRM_MSG_BASE] = 0,
net/xfrm/xfrm_user.c
3319
[XFRM_MSG_NEWAE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_aevent_id),
net/xfrm/xfrm_user.c
3320
[XFRM_MSG_GETAE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_aevent_id),
net/xfrm/xfrm_user.c
3321
[XFRM_MSG_REPORT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_report),
net/xfrm/xfrm_user.c
3322
[XFRM_MSG_MIGRATE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_user.c
3323
[XFRM_MSG_GETSADINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_user.c
3324
[XFRM_MSG_NEWSPDINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_user.c
3325
[XFRM_MSG_GETSPDINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_user.c
3326
[XFRM_MSG_SETDEFAULT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_default),
net/xfrm/xfrm_user.c
3327
[XFRM_MSG_GETDEFAULT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_default),
net/xfrm/xfrm_user.c
3392
[XFRM_MSG_NEWSA - XFRM_MSG_BASE] = { .doit = xfrm_add_sa },
net/xfrm/xfrm_user.c
3393
[XFRM_MSG_DELSA - XFRM_MSG_BASE] = { .doit = xfrm_del_sa },
net/xfrm/xfrm_user.c
3394
[XFRM_MSG_GETSA - XFRM_MSG_BASE] = { .doit = xfrm_get_sa,
net/xfrm/xfrm_user.c
3397
[XFRM_MSG_NEWPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_add_policy },
net/xfrm/xfrm_user.c
3398
[XFRM_MSG_DELPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_get_policy },
net/xfrm/xfrm_user.c
3399
[XFRM_MSG_GETPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_get_policy,
net/xfrm/xfrm_user.c
3403
[XFRM_MSG_ALLOCSPI - XFRM_MSG_BASE] = { .doit = xfrm_alloc_userspi },
net/xfrm/xfrm_user.c
3404
[XFRM_MSG_ACQUIRE - XFRM_MSG_BASE] = { .doit = xfrm_add_acquire },
net/xfrm/xfrm_user.c
3405
[XFRM_MSG_EXPIRE - XFRM_MSG_BASE] = { .doit = xfrm_add_sa_expire },
net/xfrm/xfrm_user.c
3406
[XFRM_MSG_UPDPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_add_policy },
net/xfrm/xfrm_user.c
3407
[XFRM_MSG_UPDSA - XFRM_MSG_BASE] = { .doit = xfrm_add_sa },
net/xfrm/xfrm_user.c
3408
[XFRM_MSG_POLEXPIRE - XFRM_MSG_BASE] = { .doit = xfrm_add_pol_expire},
net/xfrm/xfrm_user.c
3409
[XFRM_MSG_FLUSHSA - XFRM_MSG_BASE] = { .doit = xfrm_flush_sa },
net/xfrm/xfrm_user.c
3410
[XFRM_MSG_FLUSHPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_flush_policy },
net/xfrm/xfrm_user.c
3411
[XFRM_MSG_NEWAE - XFRM_MSG_BASE] = { .doit = xfrm_new_ae },
net/xfrm/xfrm_user.c
3412
[XFRM_MSG_GETAE - XFRM_MSG_BASE] = { .doit = xfrm_get_ae },
net/xfrm/xfrm_user.c
3413
[XFRM_MSG_MIGRATE - XFRM_MSG_BASE] = { .doit = xfrm_do_migrate },
net/xfrm/xfrm_user.c
3414
[XFRM_MSG_GETSADINFO - XFRM_MSG_BASE] = { .doit = xfrm_get_sadinfo },
net/xfrm/xfrm_user.c
3415
[XFRM_MSG_NEWSPDINFO - XFRM_MSG_BASE] = { .doit = xfrm_set_spdinfo,
net/xfrm/xfrm_user.c
3418
[XFRM_MSG_GETSPDINFO - XFRM_MSG_BASE] = { .doit = xfrm_get_spdinfo },
net/xfrm/xfrm_user.c
3419
[XFRM_MSG_SETDEFAULT - XFRM_MSG_BASE] = { .doit = xfrm_set_default },
net/xfrm/xfrm_user.c
3420
[XFRM_MSG_GETDEFAULT - XFRM_MSG_BASE] = { .doit = xfrm_get_default },
net/xfrm/xfrm_user.c
3468
type -= XFRM_MSG_BASE;
net/xfrm/xfrm_user.c
3490
if ((type == (XFRM_MSG_GETSA - XFRM_MSG_BASE) ||
net/xfrm/xfrm_user.c
3491
type == (XFRM_MSG_GETPOLICY - XFRM_MSG_BASE)) &&
net/xfrm/xfrm_user.c
3515
err = xfrm_reject_unused_attr((type + XFRM_MSG_BASE), attrs, extack);