diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/linux-headers/linux/qrtr.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/linux-headers/linux/qrtr.h')
-rw-r--r-- | contrib/libs/linux-headers/linux/qrtr.h | 98 |
1 files changed, 49 insertions, 49 deletions
diff --git a/contrib/libs/linux-headers/linux/qrtr.h b/contrib/libs/linux-headers/linux/qrtr.h index 22375f296c..4bbada40ec 100644 --- a/contrib/libs/linux-headers/linux/qrtr.h +++ b/contrib/libs/linux-headers/linux/qrtr.h @@ -1,49 +1,49 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _LINUX_QRTR_H -#define _LINUX_QRTR_H - -#include <linux/socket.h> -#include <linux/types.h> - -#define QRTR_NODE_BCAST 0xffffffffu -#define QRTR_PORT_CTRL 0xfffffffeu - -struct sockaddr_qrtr { - __kernel_sa_family_t sq_family; - __u32 sq_node; - __u32 sq_port; -}; - -enum qrtr_pkt_type { - QRTR_TYPE_DATA = 1, - QRTR_TYPE_HELLO = 2, - QRTR_TYPE_BYE = 3, - QRTR_TYPE_NEW_SERVER = 4, - QRTR_TYPE_DEL_SERVER = 5, - QRTR_TYPE_DEL_CLIENT = 6, - QRTR_TYPE_RESUME_TX = 7, - QRTR_TYPE_EXIT = 8, - QRTR_TYPE_PING = 9, - QRTR_TYPE_NEW_LOOKUP = 10, - QRTR_TYPE_DEL_LOOKUP = 11, -}; - -struct qrtr_ctrl_pkt { - __le32 cmd; - - union { - struct { - __le32 service; - __le32 instance; - __le32 node; - __le32 port; - } server; - - struct { - __le32 node; - __le32 port; - } client; - }; -} __attribute__((packed)); - -#endif /* _LINUX_QRTR_H */ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _LINUX_QRTR_H +#define _LINUX_QRTR_H + +#include <linux/socket.h> +#include <linux/types.h> + +#define QRTR_NODE_BCAST 0xffffffffu +#define QRTR_PORT_CTRL 0xfffffffeu + +struct sockaddr_qrtr { + __kernel_sa_family_t sq_family; + __u32 sq_node; + __u32 sq_port; +}; + +enum qrtr_pkt_type { + QRTR_TYPE_DATA = 1, + QRTR_TYPE_HELLO = 2, + QRTR_TYPE_BYE = 3, + QRTR_TYPE_NEW_SERVER = 4, + QRTR_TYPE_DEL_SERVER = 5, + QRTR_TYPE_DEL_CLIENT = 6, + QRTR_TYPE_RESUME_TX = 7, + QRTR_TYPE_EXIT = 8, + QRTR_TYPE_PING = 9, + QRTR_TYPE_NEW_LOOKUP = 10, + QRTR_TYPE_DEL_LOOKUP = 11, +}; + +struct qrtr_ctrl_pkt { + __le32 cmd; + + union { + struct { + __le32 service; + __le32 instance; + __le32 node; + __le32 port; + } server; + + struct { + __le32 node; + __le32 port; + } client; + }; +} __attribute__((packed)); + +#endif /* _LINUX_QRTR_H */ |