diff options
author | Guy Harris <guy@alum.mit.edu> | 2005-09-17 00:31:15 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2005-09-17 00:31:15 +0000 |
commit | ab2dca91148fe9365107cc3589894e271b3a8f3b (patch) | |
tree | 9929ad89e2778aed5cbd7ad59184341d32425ddc /epan/dissectors/packet-ndmp.c | |
parent | b7b80d94bee66b7edbd606c5ce6afdeb009bd5b8 (diff) |
Move some headers for stuff defined by a dissector into epan/dissectors
- and rename smb.h to packet-smb.h, as it's packet-smb.c's header file.
svn path=/trunk/; revision=15845
Diffstat (limited to 'epan/dissectors/packet-ndmp.c')
-rw-r--r-- | epan/dissectors/packet-ndmp.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c index 12ddfa13b9..4a70e2d8d1 100644 --- a/epan/dissectors/packet-ndmp.c +++ b/epan/dissectors/packet-ndmp.c @@ -46,11 +46,9 @@ #include "packet-frame.h" #include <epan/prefs.h> #include <epan/reassemble.h> -#include <epan/rpc_defrag.h> +#include <epan/dissectors/rpc_defrag.h> #define TCP_PORT_NDMP 10000 -#define NDMP_RM_LASTFRAG 0x80000000 -#define NDMP_RM_LENGTH 0x7fffffff static int proto_ndmp = -1; static int hf_ndmp_lastfrag = -1; @@ -2801,7 +2799,7 @@ dissect_ndmp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) /* * Check if this is the last fragment. */ - if (!(ndmp_rm & NDMP_RM_LASTFRAG)) { + if (!(ndmp_rm & RPC_RM_LASTFRAG)) { /* * This isn't the last fragment. * If we're doing reassembly, just return @@ -2827,8 +2825,8 @@ dissect_ndmp_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) hdr_item = proto_tree_add_text(ndmp_tree, tvb, 0, 4, "Fragment header: %s%u %s", - (ndmp_rm & NDMP_RM_LASTFRAG) ? "Last fragment, " : "", - ndmp_rm & NDMP_RM_LENGTH, plurality(ndmp_rm & NDMP_RM_LENGTH, "byte", "bytes")); + (ndmp_rm & RPC_RM_LASTFRAG) ? "Last fragment, " : "", + ndmp_rm & RPC_RM_FRAGLEN, plurality(ndmp_rm & RPC_RM_FRAGLEN, "byte", "bytes")); hdr_tree = proto_item_add_subtree(hdr_item, ett_ndmp_fraghdr); proto_tree_add_boolean(hdr_tree, hf_ndmp_lastfrag, tvb, 0, 4, ndmp_rm); proto_tree_add_uint(hdr_tree, hf_ndmp_fraglen, tvb, 0, 4, ndmp_rm); @@ -2867,7 +2865,7 @@ dissect_ndmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) * It has to be >=24 bytes or (arbitrary limit) <1Mbyte */ if(len>=4){ - tmp=(tvb_get_ntohl(tvb, 0)&NDMP_RM_LENGTH); + tmp=(tvb_get_ntohl(tvb, 0)&RPC_RM_FRAGLEN); if( (tmp<24)||(tmp>1000000) ){ return 0; } @@ -3575,10 +3573,10 @@ proto_register_ndmp(void) NULL, 0, "Estimated time remaining", HFILL }}, { &hf_ndmp_lastfrag, { "Last Fragment", "ndmp.lastfrag", FT_BOOLEAN, 32, - &yesno, NDMP_RM_LASTFRAG, "Last Fragment", HFILL }}, + &yesno, RPC_RM_LASTFRAG, "Last Fragment", HFILL }}, { &hf_ndmp_fraglen, { "Fragment Length", "ndmp.fraglen", FT_UINT32, BASE_DEC, - NULL, NDMP_RM_LENGTH, "Fragment Length", HFILL }}, + NULL, RPC_RM_FRAGLEN, "Fragment Length", HFILL }}, }; static gint *ett[] = { |