1 /**************************************************************************** 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_LINUX_RXRPC_H 20 #define _UAPI_LINUX_RXRPC_H 21 #include <linux/types.h> 22 #include <linux/in.h> 23 #include <linux/in6.h> 24 struct sockaddr_rxrpc { 25 __kernel_sa_family_t srx_family; 26 __u16 srx_service; 27 __u16 transport_type; 28 __u16 transport_len; 29 union { 30 __kernel_sa_family_t family; 31 struct sockaddr_in sin; 32 struct sockaddr_in6 sin6; 33 } transport; 34 }; 35 #define RXRPC_SECURITY_KEY 1 36 #define RXRPC_SECURITY_KEYRING 2 37 #define RXRPC_EXCLUSIVE_CONNECTION 3 38 #define RXRPC_MIN_SECURITY_LEVEL 4 39 #define RXRPC_UPGRADEABLE_SERVICE 5 40 #define RXRPC_SUPPORTED_CMSG 6 41 enum rxrpc_cmsg_type { 42 RXRPC_USER_CALL_ID = 1, 43 RXRPC_ABORT = 2, 44 RXRPC_ACK = 3, 45 RXRPC_NET_ERROR = 5, 46 RXRPC_BUSY = 6, 47 RXRPC_LOCAL_ERROR = 7, 48 RXRPC_NEW_CALL = 8, 49 RXRPC_ACCEPT = 9, 50 RXRPC_EXCLUSIVE_CALL = 10, 51 RXRPC_UPGRADE_SERVICE = 11, 52 RXRPC_TX_LENGTH = 12, 53 RXRPC_SET_CALL_TIMEOUT = 13, 54 RXRPC__SUPPORTED 55 }; 56 #define RXRPC_SECURITY_PLAIN 0 57 #define RXRPC_SECURITY_AUTH 1 58 #define RXRPC_SECURITY_ENCRYPT 2 59 #define RXRPC_SECURITY_NONE 0 60 #define RXRPC_SECURITY_RXKAD 2 61 #define RXRPC_SECURITY_RXGK 4 62 #define RXRPC_SECURITY_RXK5 5 63 #define RX_CALL_DEAD - 1 64 #define RX_INVALID_OPERATION - 2 65 #define RX_CALL_TIMEOUT - 3 66 #define RX_EOF - 4 67 #define RX_PROTOCOL_ERROR - 5 68 #define RX_USER_ABORT - 6 69 #define RX_ADDRINUSE - 7 70 #define RX_DEBUGI_BADTYPE - 8 71 #define RXGEN_CC_MARSHAL - 450 72 #define RXGEN_CC_UNMARSHAL - 451 73 #define RXGEN_SS_MARSHAL - 452 74 #define RXGEN_SS_UNMARSHAL - 453 75 #define RXGEN_DECODE - 454 76 #define RXGEN_OPCODE - 455 77 #define RXGEN_SS_XDRFREE - 456 78 #define RXGEN_CC_XDRFREE - 457 79 #define RXKADINCONSISTENCY 19270400 80 #define RXKADPACKETSHORT 19270401 81 #define RXKADLEVELFAIL 19270402 82 #define RXKADTICKETLEN 19270403 83 #define RXKADOUTOFSEQUENCE 19270404 84 #define RXKADNOAUTH 19270405 85 #define RXKADBADKEY 19270406 86 #define RXKADBADTICKET 19270407 87 #define RXKADUNKNOWNKEY 19270408 88 #define RXKADEXPIRED 19270409 89 #define RXKADSEALEDINCON 19270410 90 #define RXKADDATALEN 19270411 91 #define RXKADILLEGALLEVEL 19270412 92 #endif 93