netlink: add decoding of NETLINK_XFRM message types
* xlat/nl_xfrm_types.in: New file. * netlink.c: Include "xlat/nl_xfrm_types.h". (nlmsg_types): Add NETLINK_XFRM. Co-authored-by: Fabien Siron <fabien.siron@epita.fr>
This commit is contained in:
parent
c78de345e0
commit
d0231ef60b
@ -32,6 +32,7 @@
|
||||
#include <linux/audit.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <linux/xfrm.h>
|
||||
#include "xlat/netlink_flags.h"
|
||||
#include "xlat/netlink_protocols.h"
|
||||
#include "xlat/netlink_types.h"
|
||||
@ -39,6 +40,7 @@
|
||||
#include "xlat/nl_route_types.h"
|
||||
#include "xlat/nl_selinux_types.h"
|
||||
#include "xlat/nl_sock_diag_types.h"
|
||||
#include "xlat/nl_xfrm_types.h"
|
||||
|
||||
#undef NLMSG_HDRLEN
|
||||
#define NLMSG_HDRLEN NLMSG_ALIGN(sizeof(struct nlmsghdr))
|
||||
@ -101,7 +103,8 @@ static const struct {
|
||||
[NETLINK_AUDIT] = { nl_audit_types, "AUDIT_???" },
|
||||
[NETLINK_ROUTE] = { nl_route_types, "RTM_???" },
|
||||
[NETLINK_SELINUX] = { nl_selinux_types, "SELNL_MSG_???" },
|
||||
[NETLINK_SOCK_DIAG] = { nl_sock_diag_types, "SOCK_DIAG_???" }
|
||||
[NETLINK_SOCK_DIAG] = { nl_sock_diag_types, "SOCK_DIAG_???" },
|
||||
[NETLINK_XFRM] = { nl_xfrm_types, "XFRM_MSG_???" }
|
||||
};
|
||||
|
||||
/*
|
||||
|
34
xlat/nl_xfrm_types.in
Normal file
34
xlat/nl_xfrm_types.in
Normal file
@ -0,0 +1,34 @@
|
||||
XFRM_MSG_NEWSA
|
||||
XFRM_MSG_DELSA
|
||||
XFRM_MSG_GETSA
|
||||
|
||||
XFRM_MSG_NEWPOLICY
|
||||
XFRM_MSG_DELPOLICY
|
||||
XFRM_MSG_GETPOLICY
|
||||
|
||||
XFRM_MSG_ALLOCSPI
|
||||
XFRM_MSG_ACQUIRE
|
||||
XFRM_MSG_EXPIRE
|
||||
|
||||
XFRM_MSG_UPDPOLICY
|
||||
XFRM_MSG_UPDSA
|
||||
|
||||
XFRM_MSG_POLEXPIRE
|
||||
|
||||
XFRM_MSG_FLUSHSA
|
||||
XFRM_MSG_FLUSHPOLICY
|
||||
|
||||
XFRM_MSG_NEWAE
|
||||
XFRM_MSG_GETAE
|
||||
|
||||
XFRM_MSG_REPORT
|
||||
|
||||
XFRM_MSG_MIGRATE
|
||||
|
||||
XFRM_MSG_NEWSADINFO
|
||||
XFRM_MSG_GETSADINFO
|
||||
|
||||
XFRM_MSG_NEWSPDINFO
|
||||
XFRM_MSG_GETSPDINFO
|
||||
|
||||
XFRM_MSG_MAPPING
|
Loading…
x
Reference in New Issue
Block a user