Symbol: XFRM_MSG_BASE
include/uapi/linux/xfrm.h
237
#define XFRM_NR_MSGTYPES (XFRM_MSG_MAX + 1 - XFRM_MSG_BASE)
net/xfrm/xfrm_compat.c
306
u16 type = nlh_src->nlmsg_type - XFRM_MSG_BASE;
net/xfrm/xfrm_compat.c
340
u16 type = nlh_src->nlmsg_type - XFRM_MSG_BASE;
net/xfrm/xfrm_compat.c
604
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_compat.c
98
[XFRM_MSG_MIGRATE_STATE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_migrate_state),
net/xfrm/xfrm_user.c
3660
[XFRM_MSG_NEWSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_info),
net/xfrm/xfrm_user.c
3661
[XFRM_MSG_DELSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_id),
net/xfrm/xfrm_user.c
3662
[XFRM_MSG_GETSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_id),
net/xfrm/xfrm_user.c
3663
[XFRM_MSG_NEWPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_info),
net/xfrm/xfrm_user.c
3664
[XFRM_MSG_DELPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_user.c
3665
[XFRM_MSG_GETPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_user.c
3666
[XFRM_MSG_ALLOCSPI - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userspi_info),
net/xfrm/xfrm_user.c
3667
[XFRM_MSG_ACQUIRE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_acquire),
net/xfrm/xfrm_user.c
3668
[XFRM_MSG_EXPIRE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_expire),
net/xfrm/xfrm_user.c
3669
[XFRM_MSG_UPDPOLICY - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_info),
net/xfrm/xfrm_user.c
3670
[XFRM_MSG_UPDSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_info),
net/xfrm/xfrm_user.c
3671
[XFRM_MSG_POLEXPIRE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_polexpire),
net/xfrm/xfrm_user.c
3672
[XFRM_MSG_FLUSHSA - XFRM_MSG_BASE] = XMSGSIZE(xfrm_usersa_flush),
net/xfrm/xfrm_user.c
3673
[XFRM_MSG_FLUSHPOLICY - XFRM_MSG_BASE] = 0,
net/xfrm/xfrm_user.c
3674
[XFRM_MSG_NEWAE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_aevent_id),
net/xfrm/xfrm_user.c
3675
[XFRM_MSG_GETAE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_aevent_id),
net/xfrm/xfrm_user.c
3676
[XFRM_MSG_REPORT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_report),
net/xfrm/xfrm_user.c
3677
[XFRM_MSG_MIGRATE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_id),
net/xfrm/xfrm_user.c
3678
[XFRM_MSG_GETSADINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_user.c
3679
[XFRM_MSG_NEWSPDINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_user.c
3680
[XFRM_MSG_GETSPDINFO - XFRM_MSG_BASE] = sizeof(u32),
net/xfrm/xfrm_user.c
3681
[XFRM_MSG_MAPPING - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_mapping),
net/xfrm/xfrm_user.c
3682
[XFRM_MSG_SETDEFAULT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_default),
net/xfrm/xfrm_user.c
3683
[XFRM_MSG_GETDEFAULT - XFRM_MSG_BASE] = XMSGSIZE(xfrm_userpolicy_default),
net/xfrm/xfrm_user.c
3684
[XFRM_MSG_MIGRATE_STATE - XFRM_MSG_BASE] = XMSGSIZE(xfrm_user_migrate_state),
net/xfrm/xfrm_user.c
3749
[XFRM_MSG_NEWSA - XFRM_MSG_BASE] = { .doit = xfrm_add_sa },
net/xfrm/xfrm_user.c
3750
[XFRM_MSG_DELSA - XFRM_MSG_BASE] = { .doit = xfrm_del_sa },
net/xfrm/xfrm_user.c
3751
[XFRM_MSG_GETSA - XFRM_MSG_BASE] = { .doit = xfrm_get_sa,
net/xfrm/xfrm_user.c
3754
[XFRM_MSG_NEWPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_add_policy },
net/xfrm/xfrm_user.c
3755
[XFRM_MSG_DELPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_get_policy },
net/xfrm/xfrm_user.c
3756
[XFRM_MSG_GETPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_get_policy,
net/xfrm/xfrm_user.c
3760
[XFRM_MSG_ALLOCSPI - XFRM_MSG_BASE] = { .doit = xfrm_alloc_userspi },
net/xfrm/xfrm_user.c
3761
[XFRM_MSG_ACQUIRE - XFRM_MSG_BASE] = { .doit = xfrm_add_acquire },
net/xfrm/xfrm_user.c
3762
[XFRM_MSG_EXPIRE - XFRM_MSG_BASE] = { .doit = xfrm_add_sa_expire },
net/xfrm/xfrm_user.c
3763
[XFRM_MSG_UPDPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_add_policy },
net/xfrm/xfrm_user.c
3764
[XFRM_MSG_UPDSA - XFRM_MSG_BASE] = { .doit = xfrm_add_sa },
net/xfrm/xfrm_user.c
3765
[XFRM_MSG_POLEXPIRE - XFRM_MSG_BASE] = { .doit = xfrm_add_pol_expire},
net/xfrm/xfrm_user.c
3766
[XFRM_MSG_FLUSHSA - XFRM_MSG_BASE] = { .doit = xfrm_flush_sa },
net/xfrm/xfrm_user.c
3767
[XFRM_MSG_FLUSHPOLICY - XFRM_MSG_BASE] = { .doit = xfrm_flush_policy },
net/xfrm/xfrm_user.c
3768
[XFRM_MSG_NEWAE - XFRM_MSG_BASE] = { .doit = xfrm_new_ae },
net/xfrm/xfrm_user.c
3769
[XFRM_MSG_GETAE - XFRM_MSG_BASE] = { .doit = xfrm_get_ae },
net/xfrm/xfrm_user.c
3770
[XFRM_MSG_MIGRATE - XFRM_MSG_BASE] = { .doit = xfrm_do_migrate },
net/xfrm/xfrm_user.c
3771
[XFRM_MSG_GETSADINFO - XFRM_MSG_BASE] = { .doit = xfrm_get_sadinfo },
net/xfrm/xfrm_user.c
3772
[XFRM_MSG_NEWSPDINFO - XFRM_MSG_BASE] = { .doit = xfrm_set_spdinfo,
net/xfrm/xfrm_user.c
3775
[XFRM_MSG_GETSPDINFO - XFRM_MSG_BASE] = { .doit = xfrm_get_spdinfo },
net/xfrm/xfrm_user.c
3776
[XFRM_MSG_SETDEFAULT - XFRM_MSG_BASE] = { .doit = xfrm_set_default },
net/xfrm/xfrm_user.c
3777
[XFRM_MSG_GETDEFAULT - XFRM_MSG_BASE] = { .doit = xfrm_get_default },
net/xfrm/xfrm_user.c
3778
[XFRM_MSG_MIGRATE_STATE - XFRM_MSG_BASE] = { .doit = xfrm_do_migrate_state },
net/xfrm/xfrm_user.c
3850
type -= XFRM_MSG_BASE;
net/xfrm/xfrm_user.c
3872
if ((type == (XFRM_MSG_GETSA - XFRM_MSG_BASE) ||
net/xfrm/xfrm_user.c
3873
type == (XFRM_MSG_GETPOLICY - XFRM_MSG_BASE)) &&
net/xfrm/xfrm_user.c
3897
err = xfrm_reject_unused_attr((type + XFRM_MSG_BASE), attrs, extack);