summaryrefslogtreecommitdiffstats
path: root/contrib/tcpdump/rpc_msg.h
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-01-07 19:55:18 +0000
committerdelphij <delphij@FreeBSD.org>2015-01-07 19:55:18 +0000
commitf49c5d523af9076a4a59e8dd664f9a897108432e (patch)
treee268839e08c106e178b33bd461d8d0a9c6fb5ad9 /contrib/tcpdump/rpc_msg.h
parentc371846049d370ab78d943e60e789cdffe0aad3d (diff)
parent08263d19579d35a7a65e0c8bcb768504ce76d04e (diff)
downloadFreeBSD-src-f49c5d523af9076a4a59e8dd664f9a897108432e.zip
FreeBSD-src-f49c5d523af9076a4a59e8dd664f9a897108432e.tar.gz
MFV r276761: tcpdump 4.6.2.
MFC after: 1 month
Diffstat (limited to 'contrib/tcpdump/rpc_msg.h')
-rw-r--r--contrib/tcpdump/rpc_msg.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/contrib/tcpdump/rpc_msg.h b/contrib/tcpdump/rpc_msg.h
index 9c2770c..35a191c 100644
--- a/contrib/tcpdump/rpc_msg.h
+++ b/contrib/tcpdump/rpc_msg.h
@@ -1,4 +1,3 @@
-/* @(#) $Header: /tcpdump/master/tcpdump/rpc_msg.h,v 1.2 2005-04-27 21:43:48 guy Exp $ (LBL) */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
* unrestricted use provided that this legend is included on all tape
@@ -40,7 +39,7 @@
* Copyright (C) 1984, Sun Microsystems, Inc.
*/
-#define SUNRPC_MSG_VERSION ((u_int32_t) 2)
+#define SUNRPC_MSG_VERSION ((uint32_t) 2)
/*
* Bottom up definition of an rpc message.
@@ -80,13 +79,13 @@ enum sunrpc_reject_stat {
* Reply to an rpc request that was rejected by the server.
*/
struct sunrpc_rejected_reply {
- u_int32_t rj_stat; /* enum reject_stat */
+ uint32_t rj_stat; /* enum reject_stat */
union {
struct {
- u_int32_t low;
- u_int32_t high;
+ uint32_t low;
+ uint32_t high;
} RJ_versions;
- u_int32_t RJ_why; /* enum auth_stat - why authentication did not work */
+ uint32_t RJ_why; /* enum auth_stat - why authentication did not work */
} ru;
#define rj_vers ru.RJ_versions
#define rj_why ru.RJ_why
@@ -96,7 +95,7 @@ struct sunrpc_rejected_reply {
* Body of a reply to an rpc request.
*/
struct sunrpc_reply_body {
- u_int32_t rp_stat; /* enum reply_stat */
+ uint32_t rp_stat; /* enum reply_stat */
struct sunrpc_rejected_reply rp_reject; /* if rejected */
};
@@ -104,10 +103,10 @@ struct sunrpc_reply_body {
* Body of an rpc request call.
*/
struct sunrpc_call_body {
- u_int32_t cb_rpcvers; /* must be equal to two */
- u_int32_t cb_prog;
- u_int32_t cb_vers;
- u_int32_t cb_proc;
+ uint32_t cb_rpcvers; /* must be equal to two */
+ uint32_t cb_prog;
+ uint32_t cb_vers;
+ uint32_t cb_proc;
struct sunrpc_opaque_auth cb_cred;
/* followed by opaque verifier */
};
@@ -116,8 +115,8 @@ struct sunrpc_call_body {
* The rpc message
*/
struct sunrpc_msg {
- u_int32_t rm_xid;
- u_int32_t rm_direction; /* enum msg_type */
+ uint32_t rm_xid;
+ uint32_t rm_direction; /* enum msg_type */
union {
struct sunrpc_call_body RM_cmb;
struct sunrpc_reply_body RM_rmb;
OpenPOWER on IntegriCloud