History

rxrpc: Move the packet.h include file into net/rxrpc/

Move the protocol description header file into net/rxrpc/ and rename it to protocol.h. It's no longer necessary to expose it as packets are no longer exposed to kernel services (such as AFS) that use the facility. The abort codes are transferred to the UAPI header instead as we pass these back to userspace and also to kernel services.

David Howells committed 9 years ago

Commit ddc6c701 parent 727f8915 files · +45 −48Browse files

Showing the changes to include/uapi/linux (1 of 5 files). Show all

Unified · Split

include/uapi/linux/rxrpc.h+44−0
@@ -77,4 +77,48 @@ enum rxrpc_cmsg_type { · 76 unmodified lines
77#define RXRPC_SECURITY_RXGK 4 /* gssapi-based */77#define RXRPC_SECURITY_RXGK 4 /* gssapi-based */
78#define RXRPC_SECURITY_RXK5 5 /* kerberos 5 */78#define RXRPC_SECURITY_RXK5 5 /* kerberos 5 */
79 79
80/*
81 * RxRPC-level abort codes
82 */
83#define RX_CALL_DEAD -1 /* call/conn has been inactive and is shut down */
84#define RX_INVALID_OPERATION -2 /* invalid operation requested / attempted */
85#define RX_CALL_TIMEOUT -3 /* call timeout exceeded */
86#define RX_EOF -4 /* unexpected end of data on read op */
87#define RX_PROTOCOL_ERROR -5 /* low-level protocol error */
88#define RX_USER_ABORT -6 /* generic user abort */
89#define RX_ADDRINUSE -7 /* UDP port in use */
90#define RX_DEBUGI_BADTYPE -8 /* bad debugging packet type */
91
92/*
93 * (un)marshalling abort codes (rxgen)
94 */
95#define RXGEN_CC_MARSHAL -450
96#define RXGEN_CC_UNMARSHAL -451
97#define RXGEN_SS_MARSHAL -452
98#define RXGEN_SS_UNMARSHAL -453
99#define RXGEN_DECODE -454
100#define RXGEN_OPCODE -455
101#define RXGEN_SS_XDRFREE -456
102#define RXGEN_CC_XDRFREE -457
103
104/*
105 * Rx kerberos security abort codes
106 * - unfortunately we have no generalised security abort codes to say things
107 * like "unsupported security", so we have to use these instead and hope the
108 * other side understands
109 */
110#define RXKADINCONSISTENCY 19270400 /* security module structure inconsistent */
111#define RXKADPACKETSHORT 19270401 /* packet too short for security challenge */
112#define RXKADLEVELFAIL 19270402 /* security level negotiation failed */
113#define RXKADTICKETLEN 19270403 /* ticket length too short or too long */
114#define RXKADOUTOFSEQUENCE 19270404 /* packet had bad sequence number */
115#define RXKADNOAUTH 19270405 /* caller not authorised */
116#define RXKADBADKEY 19270406 /* illegal key: bad parity or weak */
117#define RXKADBADTICKET 19270407 /* security object was passed a bad ticket */
118#define RXKADUNKNOWNKEY 19270408 /* ticket contained unknown key version number */
119#define RXKADEXPIRED 19270409 /* authentication expired */
120#define RXKADSEALEDINCON 19270410 /* sealed data inconsistent */
121#define RXKADDATALEN 19270411 /* user data too long */
122#define RXKADILLEGALLEVEL 19270412 /* caller not authorised to use encrypted conns */
123
80#endif /* _UAPI_LINUX_RXRPC_H */124#endif /* _UAPI_LINUX_RXRPC_H */