aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fmp_notify.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-10-04 11:28:35 -0400
committerBill Meier <wmeier@newsguy.com>2014-10-04 15:34:02 +0000
commitebfe8f6d289e3d2649dcfd5a3902ba038b0ee2bd (patch)
treed7cfeb5eb4592086744dbfaa71f1163932bc43a8 /epan/dissectors/packet-fmp_notify.c
parent20795925ffb2f9687e960de8d6798e53482cb175 (diff)
Add editor modelines; Reformat as appropriate.
Change-Id: I8e9c58b75eea85877d22024201e5d8d0e9a3dbfd Reviewed-on: https://code.wireshark.org/review/4459 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/dissectors/packet-fmp_notify.c')
-rw-r--r--epan/dissectors/packet-fmp_notify.c413
1 files changed, 213 insertions, 200 deletions
diff --git a/epan/dissectors/packet-fmp_notify.c b/epan/dissectors/packet-fmp_notify.c
index 28909fe52d..777a583408 100644
--- a/epan/dissectors/packet-fmp_notify.c
+++ b/epan/dissectors/packet-fmp_notify.c
@@ -12,7 +12,7 @@
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
@@ -33,18 +33,18 @@
void proto_register_fmp_notify(void);
void proto_reg_handoff_fmp_notify(void);
-#define FMP_NOTIFY_PROG 1001912
-#define FMP_NOTIFY_VERSION_2 2
+#define FMP_NOTIFY_PROG 1001912
+#define FMP_NOTIFY_VERSION_2 2
/*
* FMP/NOTIFY Procedures
*/
#define FMP_NOTIFY_DownGrade 1
#define FMP_NOTIFY_RevokeList 2
-#define FMP_NOTIFY_RevokeAll 3
-#define FMP_NOTIFY_FileSetEof 4
-#define FMP_NOTIFY_RequestDone 5
-#define FMP_NOTIFY_volFreeze 6
+#define FMP_NOTIFY_RevokeAll 3
+#define FMP_NOTIFY_FileSetEof 4
+#define FMP_NOTIFY_RequestDone 5
+#define FMP_NOTIFY_volFreeze 6
#define FMP_NOTIFY_revokeHandleList 7
typedef enum {
@@ -84,102 +84,102 @@ static int dissect_fmp_notify_extentList(tvbuff_t *, int, packet_info *, proto_t
static int
dissect_fmp_notify_status(tvbuff_t *tvb, int offset, proto_tree *tree, int *rval)
{
- fmpStat status;
-
- status = (fmpStat)tvb_get_ntohl(tvb, offset);
-
- switch (status) {
- case FMP_OK:
- *rval = 0;
- break;
- case FMP_IOERROR:
- *rval = 1;
- break;
- case FMP_NOMEM:
- *rval = 1;
- break;
- case FMP_NOACCESS:
- *rval = 1;
- break;
+ fmpStat status;
+
+ status = (fmpStat)tvb_get_ntohl(tvb, offset);
+
+ switch (status) {
+ case FMP_OK:
+ *rval = 0;
+ break;
+ case FMP_IOERROR:
+ *rval = 1;
+ break;
+ case FMP_NOMEM:
+ *rval = 1;
+ break;
+ case FMP_NOACCESS:
+ *rval = 1;
+ break;
case FMP_INVALIDARG:
- *rval = 1;
- break;
- case FMP_FSFULL:
- *rval = 0;
- break;
- case FMP_QUEUE_FULL:
- *rval = 1;
- break;
- case FMP_WRONG_MSG_NUM:
- *rval = 1;
- break;
- case FMP_SESSION_LOST:
- *rval = 1;
- break;
- case FMP_HOT_SESSION:
- *rval = 0;
- break;
+ *rval = 1;
+ break;
+ case FMP_FSFULL:
+ *rval = 0;
+ break;
+ case FMP_QUEUE_FULL:
+ *rval = 1;
+ break;
+ case FMP_WRONG_MSG_NUM:
+ *rval = 1;
+ break;
+ case FMP_SESSION_LOST:
+ *rval = 1;
+ break;
+ case FMP_HOT_SESSION:
+ *rval = 0;
+ break;
case FMP_COLD_SESSION:
- *rval = 0;
- break;
- case FMP_CLIENT_TERMINATED:
- *rval = 0;
- break;
- case FMP_WRITER_LOST_BLK:
- *rval = 1;
- break;
- case FMP_REQUEST_QUEUED:
- *rval = 0;
- break;
- case FMP_FALL_BACK:
- *rval = 0;
- break;
- case FMP_REQUEST_CANCELLED:
- *rval = 1;
- break;
+ *rval = 0;
+ break;
+ case FMP_CLIENT_TERMINATED:
+ *rval = 0;
+ break;
+ case FMP_WRITER_LOST_BLK:
+ *rval = 1;
+ break;
+ case FMP_REQUEST_QUEUED:
+ *rval = 0;
+ break;
+ case FMP_FALL_BACK:
+ *rval = 0;
+ break;
+ case FMP_REQUEST_CANCELLED:
+ *rval = 1;
+ break;
case FMP_WRITER_ZEROED_BLK:
- *rval = 0;
- break;
- case FMP_NOTIFY_ERROR:
- *rval = 1;
- break;
- case FMP_WRONG_HANDLE:
- *rval = 0;
- break;
- case FMP_DUPLICATE_OPEN:
- *rval = 1;
- break;
- case FMP_PLUGIN_NOFUNC:
- *rval = 1;
- break;
- default:
- *rval = 1;
- break;
- }
-
- offset = dissect_rpc_uint32(tvb, tree, hf_fmp_status , offset);
- return offset;
+ *rval = 0;
+ break;
+ case FMP_NOTIFY_ERROR:
+ *rval = 1;
+ break;
+ case FMP_WRONG_HANDLE:
+ *rval = 0;
+ break;
+ case FMP_DUPLICATE_OPEN:
+ *rval = 1;
+ break;
+ case FMP_PLUGIN_NOFUNC:
+ *rval = 1;
+ break;
+ default:
+ *rval = 1;
+ break;
+ }
+
+ offset = dissect_rpc_uint32(tvb, tree, hf_fmp_status , offset);
+ return offset;
}
static int
dissect_revokeHandleListReason(tvbuff_t *tvb, int offset, proto_tree *tree)
{
- proto_tree_add_item(tree, hf_fmp_revokeHandleListReason, tvb, offset, 4, ENC_BIG_ENDIAN);
+ proto_tree_add_item(tree, hf_fmp_revokeHandleListReason, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
return offset;
}
static int
dissect_handleList(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
- proto_tree *tree)
+ proto_tree *tree)
{
- int numHandles;
- int listLength;
- int i;
+ int numHandles;
+ int listLength;
+ int i;
proto_tree *handleListTree;
numHandles = tvb_get_ntohl(tvb, offset);
@@ -190,14 +190,14 @@ dissect_handleList(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
}
handleListTree = proto_tree_add_subtree(tree, tvb, offset, listLength,
- ett_fmp_notify_hlist, NULL, "Handle List");
+ ett_fmp_notify_hlist, NULL, "Handle List");
offset = dissect_rpc_uint32(tvb, handleListTree,
- hf_fmp_handleListLen, offset);
+ hf_fmp_handleListLen, offset);
for (i = 0; i < numHandles; i++) {
offset = dissect_rpc_data(tvb, handleListTree,
- hf_fmp_fmpFHandle, offset);/* changed */
+ hf_fmp_fmpFHandle, offset);/* changed */
}
return offset;
@@ -205,23 +205,23 @@ dissect_handleList(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
static int
dissect_FMP_NOTIFY_DownGrade_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
- offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
- offset);
- offset = dissect_rpc_data(tvb, tree, hf_fmp_fmpFHandle, offset);
+ offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
+ offset);
+ offset = dissect_rpc_data(tvb, tree, hf_fmp_fmpFHandle, offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_msgNum, offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_firstLogBlk,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_numBlksReq, offset);
return offset;
}
static int
dissect_FMP_NOTIFY_DownGrade_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -231,22 +231,22 @@ dissect_FMP_NOTIFY_DownGrade_reply(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_RevokeList_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
- offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
- offset);
+ offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
+ offset);
offset = dissect_rpc_data(tvb, tree, hf_fmp_fmpFHandle, offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_msgNum, offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_firstLogBlk,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_numBlksReq, offset);
return offset;
}
static int
dissect_FMP_NOTIFY_RevokeList_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -256,10 +256,10 @@ dissect_FMP_NOTIFY_RevokeList_reply(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_RevokeAll_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
- offset);
+ offset);
offset = dissect_rpc_data(tvb, tree, hf_fmp_fmpFHandle, offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_msgNum, offset);
return offset;
@@ -267,7 +267,7 @@ dissect_FMP_NOTIFY_RevokeAll_request(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_RevokeAll_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -277,10 +277,10 @@ dissect_FMP_NOTIFY_RevokeAll_reply(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_FileSetEof_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
- offset);
+ offset);
offset = dissect_rpc_data(tvb, tree, hf_fmp_fmpFHandle, offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_msgNum, offset);
offset = dissect_rpc_uint64(tvb, tree, hf_fmp_fileSize, offset);
@@ -289,7 +289,7 @@ dissect_FMP_NOTIFY_FileSetEof_request(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_FileSetEof_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -299,20 +299,20 @@ dissect_FMP_NOTIFY_FileSetEof_reply(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_RequestDone_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo, proto_tree *tree, void* data _U_)
+ packet_info *pinfo, proto_tree *tree, void* data _U_)
{
int rval;
offset = dissect_fmp_notify_status(tvb, offset,tree, &rval);
if (rval == 0) {
- offset = dissect_rpc_data(tvb, tree,
- hf_fmp_sessionHandle, offset);
+ offset = dissect_rpc_data(tvb, tree,
+ hf_fmp_sessionHandle, offset);
offset = dissect_rpc_data(tvb, tree, hf_fmp_fmpFHandle,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_msgNum,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_cookie,
- offset);
+ offset);
offset = dissect_fmp_notify_extentList(tvb, offset, pinfo, tree);
}
return offset;
@@ -320,7 +320,7 @@ dissect_FMP_NOTIFY_RequestDone_request(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_RequestDone_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -330,17 +330,17 @@ dissect_FMP_NOTIFY_RequestDone_reply(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_volFreeze_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_fsID, offset);
return offset;
}
static int
dissect_FMP_NOTIFY_volFreeze_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -350,11 +350,11 @@ dissect_FMP_NOTIFY_volFreeze_reply(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_revokeHandleList_request(tvbuff_t *tvb, int offset,
- packet_info *pinfo,
- proto_tree *tree, void* data _U_)
+ packet_info *pinfo,
+ proto_tree *tree, void* data _U_)
{
offset = dissect_rpc_data(tvb, tree, hf_fmp_sessionHandle,
- offset);
+ offset);
offset = dissect_revokeHandleListReason(tvb, offset, tree);
offset = dissect_handleList(tvb, offset, pinfo, tree);
return offset;
@@ -362,7 +362,7 @@ dissect_FMP_NOTIFY_revokeHandleList_request(tvbuff_t *tvb, int offset,
static int
dissect_FMP_NOTIFY_revokeHandleList_reply(tvbuff_t *tvb, int offset,
- packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
+ packet_info *pinfo _U_, proto_tree *tree, void* data _U_)
{
int rval;
@@ -408,75 +408,75 @@ static const vsff fmp_notify2_proc[] = {
};
static const value_string fmp_notify_proc_vals[] = {
- { 1, "DownGrade" },
- { 2, "RevokeList" },
- { 3, "RevokeAll" },
- { 4, "FileSetEof" },
- { 5, "RequestDone" },
- { 6, "VolFreeze" },
- { 7, "RevokeHandleList" },
- { 0, "NULL" },
- { 0,NULL}
+ { 1, "DownGrade" },
+ { 2, "RevokeList" },
+ { 3, "RevokeAll" },
+ { 4, "FileSetEof" },
+ { 5, "RequestDone" },
+ { 6, "VolFreeze" },
+ { 7, "RevokeHandleList" },
+ { 0, "NULL" },
+ { 0,NULL}
};
static const value_string fmp_status_vals[] = {
- { 0, "OK"},
- { 5, "IOERROR"},
- { 12, "NOMEM"},
- { 13, "NOACCESS"},
- { 22, "INVALIDARG"},
- { 28, "FSFULL"},
- { 79, "QUEUE_FULL"},
- {500, "WRONG_MSG_NUM"},
- {501, "SESSION_LOST"},
- {502, "HOT_SESSION"},
- {503, "COLD_SESSION"},
- {504, "CLIENT_TERMINATED"},
- {505, "WRITER_LOST_BLK"},
- {506, "FMP_REQUEST_QUEUED"},
- {507, "FMP_FALL_BACK"},
- {508, "REQUEST_CANCELLED"},
- {509, "WRITER_ZEROED_BLK"},
- {510, "NOTIFY_ERROR"},
- {511, "FMP_WRONG_HANDLE"},
- {512, "DUPLICATE_OPEN"},
- {600, "PLUGIN_NOFUNC"},
+ { 0, "OK"},
+ { 5, "IOERROR"},
+ { 12, "NOMEM"},
+ { 13, "NOACCESS"},
+ { 22, "INVALIDARG"},
+ { 28, "FSFULL"},
+ { 79, "QUEUE_FULL"},
+ {500, "WRONG_MSG_NUM"},
+ {501, "SESSION_LOST"},
+ {502, "HOT_SESSION"},
+ {503, "COLD_SESSION"},
+ {504, "CLIENT_TERMINATED"},
+ {505, "WRITER_LOST_BLK"},
+ {506, "FMP_REQUEST_QUEUED"},
+ {507, "FMP_FALL_BACK"},
+ {508, "REQUEST_CANCELLED"},
+ {509, "WRITER_ZEROED_BLK"},
+ {510, "NOTIFY_ERROR"},
+ {511, "FMP_WRONG_HANDLE"},
+ {512, "DUPLICATE_OPEN"},
+ {600, "PLUGIN_NOFUNC"},
{0,NULL}
};
static const value_string fmp_revokeHandleListReason_vals[] = {
- {FMP_LIST_USER_QUOTA_EXCEEDED, "LIST_USER_QUOTA_EXCEEDED"},
- {FMP_LIST_GROUP_QUOTA_EXCEEDED, "LIST_GROUP_QUOTA_EXCEEDED"},
- {FMP_LIST_SERVER_RESOURCE_LOW, "LIST_SERVER_RESOURCE_LOW"},
- {0,NULL}
+ {FMP_LIST_USER_QUOTA_EXCEEDED, "LIST_USER_QUOTA_EXCEEDED"},
+ {FMP_LIST_GROUP_QUOTA_EXCEEDED, "LIST_GROUP_QUOTA_EXCEEDED"},
+ {FMP_LIST_SERVER_RESOURCE_LOW, "LIST_SERVER_RESOURCE_LOW"},
+ {0,NULL}
};
static int
dissect_fmp_notify_extentState(tvbuff_t *tvb, int offset, proto_tree *tree)
{
offset = dissect_rpc_uint32(tvb, tree, hf_fmp_extent_state,
- offset);
+ offset);
return offset;
}
static int
dissect_fmp_notify_extent(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
- proto_tree *tree, guint32 ext_num)
+ proto_tree *tree, guint32 ext_num)
{
proto_tree *extTree;
extTree = proto_tree_add_subtree_format(tree, tvb, offset, 20 ,
- ett_fmp_ext, NULL, "Extent (%u)", (guint32) ext_num);
+ ett_fmp_ext, NULL, "Extent (%u)", (guint32) ext_num);
offset = dissect_rpc_uint32(tvb, extTree, hf_fmp_firstLogBlk,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, extTree, hf_fmp_numBlks,
- offset);
+ offset);
offset = dissect_rpc_uint32(tvb, extTree, hf_fmp_volID, offset);
offset = dissect_rpc_uint32(tvb, extTree, hf_fmp_startOffset,
- offset);
+ offset);
offset = dissect_fmp_notify_extentState(tvb, offset, extTree);
return offset;
@@ -485,21 +485,21 @@ dissect_fmp_notify_extent(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
static int
dissect_fmp_notify_extentList(tvbuff_t *tvb, int offset, packet_info *pinfo _U_,
- proto_tree *tree)
+ proto_tree *tree)
{
- guint32 numExtents;
- guint32 totalLength;
+ guint32 numExtents;
+ guint32 totalLength;
proto_tree *extListTree;
- guint32 i;
+ guint32 i;
numExtents = tvb_get_ntohl(tvb, offset);
totalLength = 4 + (20 * numExtents);
extListTree = proto_tree_add_subtree(tree, tvb, offset, totalLength,
- ett_fmp_extList, NULL, "Extent List");
+ ett_fmp_extList, NULL, "Extent List");
offset = dissect_rpc_uint32(tvb, extListTree,
- hf_fmp_extentList_len, offset);
+ hf_fmp_extentList_len, offset);
for (i = 0; i < numExtents; i++) {
offset = dissect_fmp_notify_extent(tvb, offset, pinfo, extListTree, i+1);
@@ -513,12 +513,12 @@ proto_register_fmp_notify(void)
{
static hf_register_info hf[] = {
{ &hf_fmp_notify_procedure, {
- "Procedure", "fmp_notify.notify_procedure", FT_UINT32, BASE_DEC,
- VALS(fmp_notify_proc_vals) , 0, NULL, HFILL }}, /* New addition */
+ "Procedure", "fmp_notify.notify_procedure", FT_UINT32, BASE_DEC,
+ VALS(fmp_notify_proc_vals) , 0, NULL, HFILL }}, /* New addition */
{ &hf_fmp_status, {
- "Status", "fmp_notify.status", FT_UINT32, BASE_DEC,
- VALS(fmp_status_vals), 0, "Reply Status", HFILL }},
+ "Status", "fmp_notify.status", FT_UINT32, BASE_DEC,
+ VALS(fmp_status_vals), 0, "Reply Status", HFILL }},
{ &hf_fmp_extentList_len, {
"Extent List length", "fmp_notify.extentListLength",
@@ -546,52 +546,52 @@ proto_register_fmp_notify(void)
NULL, HFILL }},
{ &hf_fmp_sessionHandle, {
- "Session Handle", "fmp_notify.sessHandle", FT_BYTES, BASE_NONE,
- NULL, 0, NULL, HFILL }},
+ "Session Handle", "fmp_notify.sessHandle", FT_BYTES, BASE_NONE,
+ NULL, 0, NULL, HFILL }},
- { &hf_fmp_fsID, {
- "File System ID", "fmp_notify.fsID", FT_UINT32, BASE_HEX,
- NULL, 0, NULL, HFILL }},
+ { &hf_fmp_fsID, {
+ "File System ID", "fmp_notify.fsID", FT_UINT32, BASE_HEX,
+ NULL, 0, NULL, HFILL }},
#if 0
- { &hf_fmp_fsBlkSz, {
- "FS Block Size", "fmp_notify.fsBlkSz", FT_UINT32, BASE_DEC,
- NULL, 0, NULL, HFILL }},
+ { &hf_fmp_fsBlkSz, {
+ "FS Block Size", "fmp_notify.fsBlkSz", FT_UINT32, BASE_DEC,
+ NULL, 0, NULL, HFILL }},
#endif
- { &hf_fmp_numBlksReq, {
- "Number Blocks Requested", "fmp_notify.numBlksReq", FT_UINT32,
- BASE_DEC, NULL, 0, NULL, HFILL }},
+ { &hf_fmp_numBlksReq, {
+ "Number Blocks Requested", "fmp_notify.numBlksReq", FT_UINT32,
+ BASE_DEC, NULL, 0, NULL, HFILL }},
- { &hf_fmp_msgNum, {
- "Message Number", "fmp_notify.msgNum", FT_UINT32, BASE_DEC,
- NULL, 0, NULL, HFILL }},
+ { &hf_fmp_msgNum, {
+ "Message Number", "fmp_notify.msgNum", FT_UINT32, BASE_DEC,
+ NULL, 0, NULL, HFILL }},
- { &hf_fmp_cookie, {
- "Cookie", "fmp_notify.cookie", FT_UINT32, BASE_HEX,
- NULL, 0, "Cookie for FMP_REQUEST_QUEUED Resp", HFILL }},
+ { &hf_fmp_cookie, {
+ "Cookie", "fmp_notify.cookie", FT_UINT32, BASE_HEX,
+ NULL, 0, "Cookie for FMP_REQUEST_QUEUED Resp", HFILL }},
- { &hf_fmp_firstLogBlk, {
- "First Logical Block", "fmp_notify.firstLogBlk", FT_UINT32,
- BASE_DEC, NULL, 0, "First Logical File Block", HFILL }},
+ { &hf_fmp_firstLogBlk, {
+ "First Logical Block", "fmp_notify.firstLogBlk", FT_UINT32,
+ BASE_DEC, NULL, 0, "First Logical File Block", HFILL }},
- { &hf_fmp_fileSize, {
- "File Size", "fmp_notify.fileSize", FT_UINT64, BASE_DEC,
- NULL, 0, NULL, HFILL }},
+ { &hf_fmp_fileSize, {
+ "File Size", "fmp_notify.fileSize", FT_UINT64, BASE_DEC,
+ NULL, 0, NULL, HFILL }},
{ &hf_fmp_fmpFHandle, {
- "FMP File Handle", "fmp_notify.fmpFHandle",
- FT_BYTES, BASE_NONE, NULL, 0, NULL,
- HFILL }},
+ "FMP File Handle", "fmp_notify.fmpFHandle",
+ FT_BYTES, BASE_NONE, NULL, 0, NULL,
+ HFILL }},
- { &hf_fmp_revokeHandleListReason,
- { "Reason", "fmp.revokeHandleListReason",
- FT_UINT32, BASE_DEC, VALS(fmp_revokeHandleListReason_vals), 0,
- NULL, HFILL }},
+ { &hf_fmp_revokeHandleListReason,
+ { "Reason", "fmp.revokeHandleListReason",
+ FT_UINT32, BASE_DEC, VALS(fmp_revokeHandleListReason_vals), 0,
+ NULL, HFILL }},
};
@@ -605,7 +605,7 @@ proto_register_fmp_notify(void)
proto_fmp_notify =
proto_register_protocol("File Mapping Protocol Nofity",
- "FMP/NOTIFY", "fmp_notify");
+ "FMP/NOTIFY", "fmp_notify");
proto_register_field_array(proto_fmp_notify, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -619,5 +619,18 @@ proto_reg_handoff_fmp_notify(void)
/* Register the procedure tables */
rpc_init_proc_table(FMP_NOTIFY_PROG, FMP_NOTIFY_VERSION_2,
- fmp_notify2_proc,hf_fmp_notify_procedure);
+ fmp_notify2_proc,hf_fmp_notify_procedure);
}
+
+/*
+ * Editor modelines - http://www.wireshark.org/tools/modelines.html
+ *
+ * Local variables:
+ * c-basic-offset: 8
+ * tab-width: 8
+ * indent-tabs-mode: t
+ * End:
+ *
+ * vi: set shiftwidth=8 tabstop=8 noexpandtab:
+ * :indentSize=8:tabSize=8:noTabs=false:
+ */