1 /* 2 * This header was generated from the Linux kernel headers by update_headers.py, 3 * to provide necessary information from kernel to userspace, such as constants, 4 * structures, and macros, and thus, contains no copyrightable information. 5 */ 6 #ifndef _UAPI_LINUX_RXRPC_H 7 #define _UAPI_LINUX_RXRPC_H 8 #include <linux/types.h> 9 #include <linux/in.h> 10 #include <linux/in6.h> 11 struct sockaddr_rxrpc { 12 __kernel_sa_family_t srx_family; 13 __u16 srx_service; 14 __u16 transport_type; 15 __u16 transport_len; 16 union { 17 __kernel_sa_family_t family; 18 struct sockaddr_in sin; 19 struct sockaddr_in6 sin6; 20 } transport; 21 }; 22 #define RXRPC_SECURITY_KEY 1 23 #define RXRPC_SECURITY_KEYRING 2 24 #define RXRPC_EXCLUSIVE_CONNECTION 3 25 #define RXRPC_MIN_SECURITY_LEVEL 4 26 #define RXRPC_UPGRADEABLE_SERVICE 5 27 #define RXRPC_SUPPORTED_CMSG 6 28 enum rxrpc_cmsg_type { 29 RXRPC_USER_CALL_ID = 1, 30 RXRPC_ABORT = 2, 31 RXRPC_ACK = 3, 32 RXRPC_NET_ERROR = 5, 33 RXRPC_BUSY = 6, 34 RXRPC_LOCAL_ERROR = 7, 35 RXRPC_NEW_CALL = 8, 36 RXRPC_ACCEPT = 9, 37 RXRPC_EXCLUSIVE_CALL = 10, 38 RXRPC_UPGRADE_SERVICE = 11, 39 RXRPC_TX_LENGTH = 12, 40 RXRPC_SET_CALL_TIMEOUT = 13, 41 RXRPC__SUPPORTED 42 }; 43 #define RXRPC_SECURITY_PLAIN 0 44 #define RXRPC_SECURITY_AUTH 1 45 #define RXRPC_SECURITY_ENCRYPT 2 46 #define RXRPC_SECURITY_NONE 0 47 #define RXRPC_SECURITY_RXKAD 2 48 #define RXRPC_SECURITY_RXGK 4 49 #define RXRPC_SECURITY_RXK5 5 50 #define RX_CALL_DEAD -1 51 #define RX_INVALID_OPERATION -2 52 #define RX_CALL_TIMEOUT -3 53 #define RX_EOF -4 54 #define RX_PROTOCOL_ERROR -5 55 #define RX_USER_ABORT -6 56 #define RX_ADDRINUSE -7 57 #define RX_DEBUGI_BADTYPE -8 58 #define RXGEN_CC_MARSHAL -450 59 #define RXGEN_CC_UNMARSHAL -451 60 #define RXGEN_SS_MARSHAL -452 61 #define RXGEN_SS_UNMARSHAL -453 62 #define RXGEN_DECODE -454 63 #define RXGEN_OPCODE -455 64 #define RXGEN_SS_XDRFREE -456 65 #define RXGEN_CC_XDRFREE -457 66 #define RXKADINCONSISTENCY 19270400 67 #define RXKADPACKETSHORT 19270401 68 #define RXKADLEVELFAIL 19270402 69 #define RXKADTICKETLEN 19270403 70 #define RXKADOUTOFSEQUENCE 19270404 71 #define RXKADNOAUTH 19270405 72 #define RXKADBADKEY 19270406 73 #define RXKADBADTICKET 19270407 74 #define RXKADUNKNOWNKEY 19270408 75 #define RXKADEXPIRED 19270409 76 #define RXKADSEALEDINCON 19270410 77 #define RXKADDATALEN 19270411 78 #define RXKADILLEGALLEVEL 19270412 79 #endif 80