mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
2c8e2e9aec
commit
60fc639816
1 changed files with 22 additions and 1 deletions
|
@ -9,7 +9,28 @@
|
||||||
#ifndef __UAPI_MCTP_H
|
#ifndef __UAPI_MCTP_H
|
||||||
#define __UAPI_MCTP_H
|
#define __UAPI_MCTP_H
|
||||||
|
|
||||||
struct sockaddr_mctp {
|
#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 */
|
#endif /* __UAPI_MCTP_H */
|
||||||
|
|
Loading…
Add table
Reference in a new issue