diff options
author | Jeremy Kerr <jk@codeconstruct.com.au> | 2021-07-29 05:20:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-07-29 17:06:50 +0300 |
commit | 60fc63981693f807baa0e404104dedea0e8b4e61 (patch) | |
tree | a5be676efb0bd3e22335299e7c74c58f965c323c /include/uapi/linux/mctp.h | |
parent | 2c8e2e9aec7927b387540a88351b8405ee82b34a (diff) | |
download | linux-60fc63981693f807baa0e404104dedea0e8b4e61.tar.xz |
mctp: Add sockaddr_mctp to uapi
This change introduces the user-visible MCTP header, containing the
protocol-specific addressing definitions.
Signed-off-by: Jeremy Kerr <jk@codeconstruct.com.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/mctp.h')
-rw-r--r-- | include/uapi/linux/mctp.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/uapi/linux/mctp.h b/include/uapi/linux/mctp.h index 2640a589c14c..52b54d13f385 100644 --- a/include/uapi/linux/mctp.h +++ b/include/uapi/linux/mctp.h @@ -9,7 +9,28 @@ #ifndef __UAPI_MCTP_H #define __UAPI_MCTP_H +#include <linux/types.h> + +typedef __u8 mctp_eid_t; + +struct mctp_addr { + mctp_eid_t s_addr; +}; + struct sockaddr_mctp { + unsigned short int smctp_family; + int smctp_network; + struct mctp_addr smctp_addr; + __u8 smctp_type; + __u8 smctp_tag; }; +#define MCTP_NET_ANY 0x0 + +#define MCTP_ADDR_NULL 0x00 +#define MCTP_ADDR_ANY 0xff + +#define MCTP_TAG_MASK 0x07 +#define MCTP_TAG_OWNER 0x08 + #endif /* __UAPI_MCTP_H */ |