Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Variables
packet.h File Reference

Go to the source code of this file.

Data Structures

struct  rxrpc_header
 
struct  rxrpc_jumbo_header
 
struct  rxrpc_ackpacket
 
struct  rxrpc_ackinfo
 
struct  rxkad_challenge
 
struct  rxkad_response
 

Macros

#define RXRPC_MAXCALLS   4 /* max active calls per conn */
 
#define RXRPC_CHANNELMASK   (RXRPC_MAXCALLS-1) /* mask for channel ID */
 
#define RXRPC_CIDMASK   (~RXRPC_CHANNELMASK) /* mask for connection ID */
 
#define RXRPC_CIDSHIFT   ilog2(RXRPC_MAXCALLS) /* shift for connection ID */
 
#define RXRPC_CID_INC   (1 << RXRPC_CIDSHIFT) /* connection ID increment */
 
#define RXRPC_PROCESS_MAXCALLS   (1<<2) /* maximum number of active calls per conn (power of 2) */
 
#define RXRPC_PACKET_TYPE_DATA   1 /* data */
 
#define RXRPC_PACKET_TYPE_ACK   2 /* ACK */
 
#define RXRPC_PACKET_TYPE_BUSY   3 /* call reject */
 
#define RXRPC_PACKET_TYPE_ABORT   4 /* call/connection abort */
 
#define RXRPC_PACKET_TYPE_ACKALL   5 /* ACK all outstanding packets on call */
 
#define RXRPC_PACKET_TYPE_CHALLENGE   6 /* connection security challenge (SRVR->CLNT) */
 
#define RXRPC_PACKET_TYPE_RESPONSE   7 /* connection secutity response (CLNT->SRVR) */
 
#define RXRPC_PACKET_TYPE_DEBUG   8 /* debug info request */
 
#define RXRPC_N_PACKET_TYPES   9 /* number of packet types (incl type 0) */
 
#define RXRPC_CLIENT_INITIATED   0x01 /* signifies a packet generated by a client */
 
#define RXRPC_REQUEST_ACK   0x02 /* request an unconditional ACK of this packet */
 
#define RXRPC_LAST_PACKET   0x04 /* the last packet from this side for this call */
 
#define RXRPC_MORE_PACKETS   0x08 /* more packets to come */
 
#define RXRPC_JUMBO_PACKET   0x20 /* [DATA] this is a jumbo packet */
 
#define RXRPC_SLOW_START_OK   0x20 /* [ACK] slow start supported */
 
#define __rxrpc_header_off(X)   offsetof(struct rxrpc_header,X)
 
#define RXRPC_JUMBO_DATALEN   1412 /* non-terminal jumbo packet data length */
 
#define RXRPC_ACK_REQUESTED   1 /* ACK was requested on packet */
 
#define RXRPC_ACK_DUPLICATE   2 /* duplicate packet received */
 
#define RXRPC_ACK_OUT_OF_SEQUENCE   3 /* out of sequence packet received */
 
#define RXRPC_ACK_EXCEEDS_WINDOW   4 /* packet received beyond end of ACK window */
 
#define RXRPC_ACK_NOSPACE   5 /* packet discarded due to lack of buffer space */
 
#define RXRPC_ACK_PING   6 /* keep alive ACK */
 
#define RXRPC_ACK_PING_RESPONSE   7 /* response to RXRPC_ACK_PING */
 
#define RXRPC_ACK_DELAY   8 /* nothing happened since received packet */
 
#define RXRPC_ACK_IDLE   9 /* ACK due to fully received ACK window */
 
#define RXRPC_MAXACKS   255
 
#define RXRPC_ACK_TYPE_NACK   0
 
#define RXRPC_ACK_TYPE_ACK   1
 
#define RX_CALL_DEAD   -1 /* call/conn has been inactive and is shut down */
 
#define RX_INVALID_OPERATION   -2 /* invalid operation requested / attempted */
 
#define RX_CALL_TIMEOUT   -3 /* call timeout exceeded */
 
#define RX_EOF   -4 /* unexpected end of data on read op */
 
#define RX_PROTOCOL_ERROR   -5 /* low-level protocol error */
 
#define RX_USER_ABORT   -6 /* generic user abort */
 
#define RX_ADDRINUSE   -7 /* UDP port in use */
 
#define RX_DEBUGI_BADTYPE   -8 /* bad debugging packet type */
 
#define RXGEN_CC_MARSHAL   -450
 
#define RXGEN_CC_UNMARSHAL   -451
 
#define RXGEN_SS_MARSHAL   -452
 
#define RXGEN_SS_UNMARSHAL   -453
 
#define RXGEN_DECODE   -454
 
#define RXGEN_OPCODE   -455
 
#define RXGEN_SS_XDRFREE   -456
 
#define RXGEN_CC_XDRFREE   -457
 
#define RXKADINCONSISTENCY   19270400 /* security module structure inconsistent */
 
#define RXKADPACKETSHORT   19270401 /* packet too short for security challenge */
 
#define RXKADLEVELFAIL   19270402 /* security level negotiation failed */
 
#define RXKADTICKETLEN   19270403 /* ticket length too short or too long */
 
#define RXKADOUTOFSEQUENCE   19270404 /* packet had bad sequence number */
 
#define RXKADNOAUTH   19270405 /* caller not authorised */
 
#define RXKADBADKEY   19270406 /* illegal key: bad parity or weak */
 
#define RXKADBADTICKET   19270407 /* security object was passed a bad ticket */
 
#define RXKADUNKNOWNKEY   19270408 /* ticket contained unknown key version number */
 
#define RXKADEXPIRED   19270409 /* authentication expired */
 
#define RXKADSEALEDINCON   19270410 /* sealed data inconsistent */
 
#define RXKADDATALEN   19270411 /* user data too long */
 
#define RXKADILLEGALLEVEL   19270412 /* caller not authorised to use encrypted conns */
 

Typedefs

typedef u32 rxrpc_seq_t
 
typedef u32 rxrpc_serial_t
 
typedef __be32 rxrpc_seq_net_t
 
typedef __be32 rxrpc_serial_net_t
 

Variables

struct rxrpc_header __packed
 
const charrxrpc_pkts []
 

Macro Definition Documentation

#define __rxrpc_header_off (   X)    offsetof(struct rxrpc_header,X)

Definition at line 70 of file packet.h.

#define RX_ADDRINUSE   -7 /* UDP port in use */

Definition at line 179 of file packet.h.

#define RX_CALL_DEAD   -1 /* call/conn has been inactive and is shut down */

Definition at line 173 of file packet.h.

#define RX_CALL_TIMEOUT   -3 /* call timeout exceeded */

Definition at line 175 of file packet.h.

#define RX_DEBUGI_BADTYPE   -8 /* bad debugging packet type */

Definition at line 180 of file packet.h.

#define RX_EOF   -4 /* unexpected end of data on read op */

Definition at line 176 of file packet.h.

#define RX_INVALID_OPERATION   -2 /* invalid operation requested / attempted */

Definition at line 174 of file packet.h.

#define RX_PROTOCOL_ERROR   -5 /* low-level protocol error */

Definition at line 177 of file packet.h.

#define RX_USER_ABORT   -6 /* generic user abort */

Definition at line 178 of file packet.h.

#define RXGEN_CC_MARSHAL   -450

Definition at line 185 of file packet.h.

#define RXGEN_CC_UNMARSHAL   -451

Definition at line 186 of file packet.h.

#define RXGEN_CC_XDRFREE   -457

Definition at line 192 of file packet.h.

#define RXGEN_DECODE   -454

Definition at line 189 of file packet.h.

#define RXGEN_OPCODE   -455

Definition at line 190 of file packet.h.

#define RXGEN_SS_MARSHAL   -452

Definition at line 187 of file packet.h.

#define RXGEN_SS_UNMARSHAL   -453

Definition at line 188 of file packet.h.

#define RXGEN_SS_XDRFREE   -456

Definition at line 191 of file packet.h.

#define RXKADBADKEY   19270406 /* illegal key: bad parity or weak */

Definition at line 206 of file packet.h.

#define RXKADBADTICKET   19270407 /* security object was passed a bad ticket */

Definition at line 207 of file packet.h.

#define RXKADDATALEN   19270411 /* user data too long */

Definition at line 211 of file packet.h.

#define RXKADEXPIRED   19270409 /* authentication expired */

Definition at line 209 of file packet.h.

#define RXKADILLEGALLEVEL   19270412 /* caller not authorised to use encrypted conns */

Definition at line 212 of file packet.h.

#define RXKADINCONSISTENCY   19270400 /* security module structure inconsistent */

Definition at line 200 of file packet.h.

#define RXKADLEVELFAIL   19270402 /* security level negotiation failed */

Definition at line 202 of file packet.h.

#define RXKADNOAUTH   19270405 /* caller not authorised */

Definition at line 205 of file packet.h.

#define RXKADOUTOFSEQUENCE   19270404 /* packet had bad sequence number */

Definition at line 204 of file packet.h.

#define RXKADPACKETSHORT   19270401 /* packet too short for security challenge */

Definition at line 201 of file packet.h.

#define RXKADSEALEDINCON   19270410 /* sealed data inconsistent */

Definition at line 210 of file packet.h.

#define RXKADTICKETLEN   19270403 /* ticket length too short or too long */

Definition at line 203 of file packet.h.

#define RXKADUNKNOWNKEY   19270408 /* ticket contained unknown key version number */

Definition at line 208 of file packet.h.

#define RXRPC_ACK_DELAY   8 /* nothing happened since received packet */

Definition at line 113 of file packet.h.

#define RXRPC_ACK_DUPLICATE   2 /* duplicate packet received */

Definition at line 107 of file packet.h.

#define RXRPC_ACK_EXCEEDS_WINDOW   4 /* packet received beyond end of ACK window */

Definition at line 109 of file packet.h.

#define RXRPC_ACK_IDLE   9 /* ACK due to fully received ACK window */

Definition at line 114 of file packet.h.

#define RXRPC_ACK_NOSPACE   5 /* packet discarded due to lack of buffer space */

Definition at line 110 of file packet.h.

#define RXRPC_ACK_OUT_OF_SEQUENCE   3 /* out of sequence packet received */

Definition at line 108 of file packet.h.

#define RXRPC_ACK_PING   6 /* keep alive ACK */

Definition at line 111 of file packet.h.

#define RXRPC_ACK_PING_RESPONSE   7 /* response to RXRPC_ACK_PING */

Definition at line 112 of file packet.h.

#define RXRPC_ACK_REQUESTED   1 /* ACK was requested on packet */

Definition at line 106 of file packet.h.

#define RXRPC_ACK_TYPE_ACK   1

Definition at line 121 of file packet.h.

#define RXRPC_ACK_TYPE_NACK   0

Definition at line 120 of file packet.h.

#define RXRPC_CHANNELMASK   (RXRPC_MAXCALLS-1) /* mask for channel ID */

Definition at line 30 of file packet.h.

#define RXRPC_CID_INC   (1 << RXRPC_CIDSHIFT) /* connection ID increment */

Definition at line 33 of file packet.h.

#define RXRPC_CIDMASK   (~RXRPC_CHANNELMASK) /* mask for connection ID */

Definition at line 31 of file packet.h.

#define RXRPC_CIDSHIFT   ilog2(RXRPC_MAXCALLS) /* shift for connection ID */

Definition at line 32 of file packet.h.

#define RXRPC_CLIENT_INITIATED   0x01 /* signifies a packet generated by a client */

Definition at line 53 of file packet.h.

#define RXRPC_JUMBO_DATALEN   1412 /* non-terminal jumbo packet data length */

Definition at line 90 of file packet.h.

#define RXRPC_JUMBO_PACKET   0x20 /* [DATA] this is a jumbo packet */

Definition at line 57 of file packet.h.

#define RXRPC_LAST_PACKET   0x04 /* the last packet from this side for this call */

Definition at line 55 of file packet.h.

#define RXRPC_MAXACKS   255

Definition at line 117 of file packet.h.

#define RXRPC_MAXCALLS   4 /* max active calls per conn */

Definition at line 29 of file packet.h.

#define RXRPC_MORE_PACKETS   0x08 /* more packets to come */

Definition at line 56 of file packet.h.

#define RXRPC_N_PACKET_TYPES   9 /* number of packet types (incl type 0) */

Definition at line 50 of file packet.h.

#define RXRPC_PACKET_TYPE_ABORT   4 /* call/connection abort */

Definition at line 45 of file packet.h.

#define RXRPC_PACKET_TYPE_ACK   2 /* ACK */

Definition at line 43 of file packet.h.

#define RXRPC_PACKET_TYPE_ACKALL   5 /* ACK all outstanding packets on call */

Definition at line 46 of file packet.h.

#define RXRPC_PACKET_TYPE_BUSY   3 /* call reject */

Definition at line 44 of file packet.h.

#define RXRPC_PACKET_TYPE_CHALLENGE   6 /* connection security challenge (SRVR->CLNT) */

Definition at line 47 of file packet.h.

#define RXRPC_PACKET_TYPE_DATA   1 /* data */

Definition at line 42 of file packet.h.

#define RXRPC_PACKET_TYPE_DEBUG   8 /* debug info request */

Definition at line 49 of file packet.h.

#define RXRPC_PACKET_TYPE_RESPONSE   7 /* connection secutity response (CLNT->SRVR) */

Definition at line 48 of file packet.h.

#define RXRPC_PROCESS_MAXCALLS   (1<<2) /* maximum number of active calls per conn (power of 2) */

Definition at line 36 of file packet.h.

#define RXRPC_REQUEST_ACK   0x02 /* request an unconditional ACK of this packet */

Definition at line 54 of file packet.h.

#define RXRPC_SLOW_START_OK   0x20 /* [ACK] slow start supported */

Definition at line 58 of file packet.h.

Typedef Documentation

Definition at line 17 of file packet.h.

typedef u32 rxrpc_seq_t

Definition at line 15 of file packet.h.

Definition at line 18 of file packet.h.

Definition at line 16 of file packet.h.

Variable Documentation

const char* rxrpc_pkts[]

Definition at line 30 of file ar-input.c.