aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-nt.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-01-22 19:56:12 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-01-22 19:56:12 +0000
commit5b33d550a6744df66659f161893134dcea97e5e3 (patch)
treed3f8eebdbe6c3ecf84e78ad0862b6ec89d430c10 /epan/dissectors/packet-dcerpc-nt.h
parent4ca1660945c9ef895a390e86947807d60ddc702d (diff)
needs an ALIGN_TO_2_BYTES to make the idl compiler happy
svn path=/trunk/; revision=13162
Diffstat (limited to 'epan/dissectors/packet-dcerpc-nt.h')
-rw-r--r--epan/dissectors/packet-dcerpc-nt.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dcerpc-nt.h b/epan/dissectors/packet-dcerpc-nt.h
index 59dc173469..a86e69e9e5 100644
--- a/epan/dissectors/packet-dcerpc-nt.h
+++ b/epan/dissectors/packet-dcerpc-nt.h
@@ -47,6 +47,15 @@ extern const value_string platform_id_vals[];
} \
} \
}
+#define ALIGN_TO_2_BYTES \
+ { dcerpc_info *xzdi; \
+ xzdi=pinfo->private_data; \
+ if(!xzdi->conformant_run) { \
+ if(offset&0x01) { \
+ offset=(offset&0xfffffffe)+2; \
+ } \
+ } \
+ }
int
dissect_ndr_counted_string_cb(tvbuff_t *tvb, int offset,