Skip to content

Commit 60fc639

Browse files
jk-ozlabsdavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2c8e2e9 commit 60fc639

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

include/uapi/linux/mctp.h

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,28 @@
99
#ifndef __UAPI_MCTP_H
1010
#define __UAPI_MCTP_H
1111

12+
#include <linux/types.h>
13+
14+
typedef __u8 mctp_eid_t;
15+
16+
struct mctp_addr {
17+
mctp_eid_t s_addr;
18+
};
19+
1220
struct sockaddr_mctp {
21+
unsigned short int smctp_family;
22+
int smctp_network;
23+
struct mctp_addr smctp_addr;
24+
__u8 smctp_type;
25+
__u8 smctp_tag;
1326
};
1427

28+
#define MCTP_NET_ANY 0x0
29+
30+
#define MCTP_ADDR_NULL 0x00
31+
#define MCTP_ADDR_ANY 0xff
32+
33+
#define MCTP_TAG_MASK 0x07
34+
#define MCTP_TAG_OWNER 0x08
35+
1536
#endif /* __UAPI_MCTP_H */

0 commit comments

Comments
 (0)