2 * Copyright 2000, International Business Machines Corporation and others.
3 * Copyright 2011, Your File System Inc
6 * This software has been released under the terms of the IBM Public
7 * License. For details, see the LICENSE file in the top-level source
8 * directory or online at http://www.openafs.org/dl/license10.html
11 #include <afsconfig.h>
12 #include <afs/param.h>
20 rx_GetConnectionEpoch(struct rx_connection
*conn
) {
25 rx_GetConnectionId(struct rx_connection
*conn
) {
30 rx_SetSecurityData(struct rx_connection
*conn
, void *data
) {
31 conn
->securityData
= data
;
35 rx_GetSecurityData(struct rx_connection
*conn
)
37 return conn
->securityData
;
41 rx_IsUsingPktCksum(struct rx_connection
*conn
)
43 return conn
->flags
& RX_CONN_USING_PACKET_CKSUM
;
47 rx_SetSecurityHeaderSize(struct rx_connection
*conn
, afs_uint32 size
)
49 conn
->securityHeaderSize
= size
;
53 rx_GetSecurityHeaderSize(struct rx_connection
*conn
)
55 return conn
->securityHeaderSize
;
59 rx_SetSecurityMaxTrailerSize(struct rx_connection
*conn
, afs_uint32 size
)
61 conn
->securityMaxTrailerSize
= size
;
65 rx_GetSecurityMaxTrailerSize(struct rx_connection
*conn
)
67 return conn
->securityMaxTrailerSize
;
71 rx_SetMsgsizeRetryErr(struct rx_connection
*conn
, int err
)
73 conn
->msgsizeRetryErr
= err
;
77 rx_IsServerConn(struct rx_connection
*conn
)
79 return conn
->type
== RX_SERVER_CONNECTION
;
83 rx_IsClientConn(struct rx_connection
*conn
)
85 return conn
->type
== RX_CLIENT_CONNECTION
;
89 rx_PeerOf(struct rx_connection
*conn
)
95 rx_ServiceIdOf(struct rx_connection
*conn
)
97 return conn
->serviceId
;
101 rx_SecurityClassOf(struct rx_connection
*conn
)
103 return conn
->securityIndex
;
106 struct rx_securityClass
*
107 rx_SecurityObjectOf(const struct rx_connection
*conn
)
109 return conn
->securityObject
;
113 rx_ServiceOf(struct rx_connection
*conn
)
115 return conn
->service
;
119 rx_ConnError(struct rx_connection
*conn
)