Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: rxrpc.h
/* Types and definitions for AF_RXRPC.
[0] Fix | Delete
*
[1] Fix | Delete
* Copyright (C) 2007 Red Hat, Inc. All Rights Reserved.
[2] Fix | Delete
* Written by David Howells (dhowells@redhat.com)
[3] Fix | Delete
*
[4] Fix | Delete
* This program is free software; you can redistribute it and/or
[5] Fix | Delete
* modify it under the terms of the GNU General Public Licence
[6] Fix | Delete
* as published by the Free Software Foundation; either version
[7] Fix | Delete
* 2 of the Licence, or (at your option) any later version.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
#ifndef _LINUX_RXRPC_H
[11] Fix | Delete
#define _LINUX_RXRPC_H
[12] Fix | Delete
[13] Fix | Delete
#include <linux/types.h>
[14] Fix | Delete
#include <linux/in.h>
[15] Fix | Delete
#include <linux/in6.h>
[16] Fix | Delete
[17] Fix | Delete
/*
[18] Fix | Delete
* RxRPC socket address
[19] Fix | Delete
*/
[20] Fix | Delete
struct sockaddr_rxrpc {
[21] Fix | Delete
__kernel_sa_family_t srx_family; /* address family */
[22] Fix | Delete
__u16 srx_service; /* service desired */
[23] Fix | Delete
__u16 transport_type; /* type of transport socket (SOCK_DGRAM) */
[24] Fix | Delete
__u16 transport_len; /* length of transport address */
[25] Fix | Delete
union {
[26] Fix | Delete
__kernel_sa_family_t family; /* transport address family */
[27] Fix | Delete
struct sockaddr_in sin; /* IPv4 transport address */
[28] Fix | Delete
struct sockaddr_in6 sin6; /* IPv6 transport address */
[29] Fix | Delete
} transport;
[30] Fix | Delete
};
[31] Fix | Delete
[32] Fix | Delete
/*
[33] Fix | Delete
* RxRPC socket options
[34] Fix | Delete
*/
[35] Fix | Delete
#define RXRPC_SECURITY_KEY 1 /* [clnt] set client security key */
[36] Fix | Delete
#define RXRPC_SECURITY_KEYRING 2 /* [srvr] set ring of server security keys */
[37] Fix | Delete
#define RXRPC_EXCLUSIVE_CONNECTION 3 /* Deprecated; use RXRPC_EXCLUSIVE_CALL instead */
[38] Fix | Delete
#define RXRPC_MIN_SECURITY_LEVEL 4 /* minimum security level */
[39] Fix | Delete
#define RXRPC_UPGRADEABLE_SERVICE 5 /* Upgrade service[0] -> service[1] */
[40] Fix | Delete
#define RXRPC_SUPPORTED_CMSG 6 /* Get highest supported control message type */
[41] Fix | Delete
[42] Fix | Delete
/*
[43] Fix | Delete
* RxRPC control messages
[44] Fix | Delete
* - If neither abort or accept are specified, the message is a data message.
[45] Fix | Delete
* - terminal messages mean that a user call ID tag can be recycled
[46] Fix | Delete
* - s/r/- indicate whether these are applicable to sendmsg() and/or recvmsg()
[47] Fix | Delete
*/
[48] Fix | Delete
enum rxrpc_cmsg_type {
[49] Fix | Delete
RXRPC_USER_CALL_ID = 1, /* sr: user call ID specifier */
[50] Fix | Delete
RXRPC_ABORT = 2, /* sr: abort request / notification [terminal] */
[51] Fix | Delete
RXRPC_ACK = 3, /* -r: [Service] RPC op final ACK received [terminal] */
[52] Fix | Delete
RXRPC_NET_ERROR = 5, /* -r: network error received [terminal] */
[53] Fix | Delete
RXRPC_BUSY = 6, /* -r: server busy received [terminal] */
[54] Fix | Delete
RXRPC_LOCAL_ERROR = 7, /* -r: local error generated [terminal] */
[55] Fix | Delete
RXRPC_NEW_CALL = 8, /* -r: [Service] new incoming call notification */
[56] Fix | Delete
RXRPC_ACCEPT = 9, /* s-: [Service] accept request */
[57] Fix | Delete
RXRPC_EXCLUSIVE_CALL = 10, /* s-: Call should be on exclusive connection */
[58] Fix | Delete
RXRPC_UPGRADE_SERVICE = 11, /* s-: Request service upgrade for client call */
[59] Fix | Delete
RXRPC_TX_LENGTH = 12, /* s-: Total length of Tx data */
[60] Fix | Delete
RXRPC_SET_CALL_TIMEOUT = 13, /* s-: Set one or more call timeouts */
[61] Fix | Delete
RXRPC__SUPPORTED
[62] Fix | Delete
};
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* RxRPC security levels
[66] Fix | Delete
*/
[67] Fix | Delete
#define RXRPC_SECURITY_PLAIN 0 /* plain secure-checksummed packets only */
[68] Fix | Delete
#define RXRPC_SECURITY_AUTH 1 /* authenticated packets */
[69] Fix | Delete
#define RXRPC_SECURITY_ENCRYPT 2 /* encrypted packets */
[70] Fix | Delete
[71] Fix | Delete
/*
[72] Fix | Delete
* RxRPC security indices
[73] Fix | Delete
*/
[74] Fix | Delete
#define RXRPC_SECURITY_NONE 0 /* no security protocol */
[75] Fix | Delete
#define RXRPC_SECURITY_RXKAD 2 /* kaserver or kerberos 4 */
[76] Fix | Delete
#define RXRPC_SECURITY_RXGK 4 /* gssapi-based */
[77] Fix | Delete
#define RXRPC_SECURITY_RXK5 5 /* kerberos 5 */
[78] Fix | Delete
[79] Fix | Delete
/*
[80] Fix | Delete
* RxRPC-level abort codes
[81] Fix | Delete
*/
[82] Fix | Delete
#define RX_CALL_DEAD -1 /* call/conn has been inactive and is shut down */
[83] Fix | Delete
#define RX_INVALID_OPERATION -2 /* invalid operation requested / attempted */
[84] Fix | Delete
#define RX_CALL_TIMEOUT -3 /* call timeout exceeded */
[85] Fix | Delete
#define RX_EOF -4 /* unexpected end of data on read op */
[86] Fix | Delete
#define RX_PROTOCOL_ERROR -5 /* low-level protocol error */
[87] Fix | Delete
#define RX_USER_ABORT -6 /* generic user abort */
[88] Fix | Delete
#define RX_ADDRINUSE -7 /* UDP port in use */
[89] Fix | Delete
#define RX_DEBUGI_BADTYPE -8 /* bad debugging packet type */
[90] Fix | Delete
[91] Fix | Delete
/*
[92] Fix | Delete
* (un)marshalling abort codes (rxgen)
[93] Fix | Delete
*/
[94] Fix | Delete
#define RXGEN_CC_MARSHAL -450
[95] Fix | Delete
#define RXGEN_CC_UNMARSHAL -451
[96] Fix | Delete
#define RXGEN_SS_MARSHAL -452
[97] Fix | Delete
#define RXGEN_SS_UNMARSHAL -453
[98] Fix | Delete
#define RXGEN_DECODE -454
[99] Fix | Delete
#define RXGEN_OPCODE -455
[100] Fix | Delete
#define RXGEN_SS_XDRFREE -456
[101] Fix | Delete
#define RXGEN_CC_XDRFREE -457
[102] Fix | Delete
[103] Fix | Delete
/*
[104] Fix | Delete
* Rx kerberos security abort codes
[105] Fix | Delete
* - unfortunately we have no generalised security abort codes to say things
[106] Fix | Delete
* like "unsupported security", so we have to use these instead and hope the
[107] Fix | Delete
* other side understands
[108] Fix | Delete
*/
[109] Fix | Delete
#define RXKADINCONSISTENCY 19270400 /* security module structure inconsistent */
[110] Fix | Delete
#define RXKADPACKETSHORT 19270401 /* packet too short for security challenge */
[111] Fix | Delete
#define RXKADLEVELFAIL 19270402 /* security level negotiation failed */
[112] Fix | Delete
#define RXKADTICKETLEN 19270403 /* ticket length too short or too long */
[113] Fix | Delete
#define RXKADOUTOFSEQUENCE 19270404 /* packet had bad sequence number */
[114] Fix | Delete
#define RXKADNOAUTH 19270405 /* caller not authorised */
[115] Fix | Delete
#define RXKADBADKEY 19270406 /* illegal key: bad parity or weak */
[116] Fix | Delete
#define RXKADBADTICKET 19270407 /* security object was passed a bad ticket */
[117] Fix | Delete
#define RXKADUNKNOWNKEY 19270408 /* ticket contained unknown key version number */
[118] Fix | Delete
#define RXKADEXPIRED 19270409 /* authentication expired */
[119] Fix | Delete
#define RXKADSEALEDINCON 19270410 /* sealed data inconsistent */
[120] Fix | Delete
#define RXKADDATALEN 19270411 /* user data too long */
[121] Fix | Delete
#define RXKADILLEGALLEVEL 19270412 /* caller not authorised to use encrypted conns */
[122] Fix | Delete
[123] Fix | Delete
#endif /* _LINUX_RXRPC_H */
[124] Fix | Delete
[125] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function