blob: 5b60716c979d5ee66ce20b9f0959285317e9ba3a [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris1308ad32017-11-14 17:32:13 -08007#ifndef _UAPI_LINUX_RXRPC_H
8#define _UAPI_LINUX_RXRPC_H
9#include <linux/types.h>
10#include <linux/in.h>
11#include <linux/in6.h>
12struct sockaddr_rxrpc {
Christopher Ferris934ec942018-01-31 15:29:16 -080013 __kernel_sa_family_t srx_family;
14 __u16 srx_service;
15 __u16 transport_type;
16 __u16 transport_len;
Christopher Ferris1308ad32017-11-14 17:32:13 -080017 union {
Christopher Ferris934ec942018-01-31 15:29:16 -080018 __kernel_sa_family_t family;
Christopher Ferris1308ad32017-11-14 17:32:13 -080019 struct sockaddr_in sin;
20 struct sockaddr_in6 sin6;
21 } transport;
22};
23#define RXRPC_SECURITY_KEY 1
24#define RXRPC_SECURITY_KEYRING 2
25#define RXRPC_EXCLUSIVE_CONNECTION 3
26#define RXRPC_MIN_SECURITY_LEVEL 4
27#define RXRPC_UPGRADEABLE_SERVICE 5
28#define RXRPC_SUPPORTED_CMSG 6
29enum rxrpc_cmsg_type {
30 RXRPC_USER_CALL_ID = 1,
31 RXRPC_ABORT = 2,
32 RXRPC_ACK = 3,
33 RXRPC_NET_ERROR = 5,
34 RXRPC_BUSY = 6,
35 RXRPC_LOCAL_ERROR = 7,
36 RXRPC_NEW_CALL = 8,
Christopher Ferris1308ad32017-11-14 17:32:13 -080037 RXRPC_EXCLUSIVE_CALL = 10,
38 RXRPC_UPGRADE_SERVICE = 11,
39 RXRPC_TX_LENGTH = 12,
Christopher Ferris934ec942018-01-31 15:29:16 -080040 RXRPC_SET_CALL_TIMEOUT = 13,
Christopher Ferris25c18d42020-10-14 17:42:58 -070041 RXRPC_CHARGE_ACCEPT = 14,
Christopher Ferris1308ad32017-11-14 17:32:13 -080042 RXRPC__SUPPORTED
43};
44#define RXRPC_SECURITY_PLAIN 0
45#define RXRPC_SECURITY_AUTH 1
46#define RXRPC_SECURITY_ENCRYPT 2
47#define RXRPC_SECURITY_NONE 0
48#define RXRPC_SECURITY_RXKAD 2
49#define RXRPC_SECURITY_RXGK 4
50#define RXRPC_SECURITY_RXK5 5
51#define RX_CALL_DEAD - 1
52#define RX_INVALID_OPERATION - 2
53#define RX_CALL_TIMEOUT - 3
54#define RX_EOF - 4
55#define RX_PROTOCOL_ERROR - 5
56#define RX_USER_ABORT - 6
57#define RX_ADDRINUSE - 7
58#define RX_DEBUGI_BADTYPE - 8
59#define RXGEN_CC_MARSHAL - 450
60#define RXGEN_CC_UNMARSHAL - 451
61#define RXGEN_SS_MARSHAL - 452
62#define RXGEN_SS_UNMARSHAL - 453
63#define RXGEN_DECODE - 454
64#define RXGEN_OPCODE - 455
65#define RXGEN_SS_XDRFREE - 456
66#define RXGEN_CC_XDRFREE - 457
67#define RXKADINCONSISTENCY 19270400
68#define RXKADPACKETSHORT 19270401
69#define RXKADLEVELFAIL 19270402
70#define RXKADTICKETLEN 19270403
71#define RXKADOUTOFSEQUENCE 19270404
72#define RXKADNOAUTH 19270405
73#define RXKADBADKEY 19270406
74#define RXKADBADTICKET 19270407
75#define RXKADUNKNOWNKEY 19270408
76#define RXKADEXPIRED 19270409
77#define RXKADSEALEDINCON 19270410
78#define RXKADDATALEN 19270411
79#define RXKADILLEGALLEVEL 19270412
80#endif