blob: 21a9a14fbf85104d309081cf6aea92b297d3d0a4 [file] [log] [blame]
Colin Cross07a58322022-02-08 19:45:27 -08001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef __UAPI_MCTP_H
20#define __UAPI_MCTP_H
21#include <linux/types.h>
22#include <linux/socket.h>
23#include <linux/netdevice.h>
24typedef __u8 mctp_eid_t;
25struct mctp_addr {
26 mctp_eid_t s_addr;
27};
28struct sockaddr_mctp {
29 __kernel_sa_family_t smctp_family;
30 __u16 __smctp_pad0;
31 unsigned int smctp_network;
32 struct mctp_addr smctp_addr;
33 __u8 smctp_type;
34 __u8 smctp_tag;
35 __u8 __smctp_pad1;
36};
37struct sockaddr_mctp_ext {
38 struct sockaddr_mctp smctp_base;
39 int smctp_ifindex;
40 __u8 smctp_halen;
41 __u8 __smctp_pad0[3];
42 __u8 smctp_haddr[MAX_ADDR_LEN];
43};
44#define MCTP_NET_ANY 0x0
45#define MCTP_ADDR_NULL 0x00
46#define MCTP_ADDR_ANY 0xff
47#define MCTP_TAG_MASK 0x07
48#define MCTP_TAG_OWNER 0x08
49#define MCTP_OPT_ADDR_EXT 1
50#endif