epan/dissectors/packet-dcerpc-nt.h UNION_ALIGN_TO...
authorStefan Metzmacher <metze@samba.org>
Mon, 21 Mar 2022 10:00:40 +0000 (11:00 +0100)
committerStefan Metzmacher <metze@samba.org>
Thu, 3 Nov 2022 10:32:44 +0000 (11:32 +0100)
epan/dissectors/packet-dcerpc-nt.h

index 018ecdd58642d90a6aafbee485c09dc022be654a..a6ebff777dc433e18416429230110a4d412027d1 100644 (file)
@@ -67,6 +67,42 @@ extern const value_string platform_id_vals[];
            ALIGN_TO_2_BYTES; \
          } \
        }
+
+#define UNION_ALIGN_TO_2_BYTES \
+       do { \
+         if (di->call_data->flags & DCERPC_IS_NDR64) { \
+           ALIGN_TO_2_BYTES; \
+         } \
+       } while(0)
+
+#define UNION_ALIGN_TO_3_BYTES \
+       do { \
+         if (di->call_data->flags & DCERPC_IS_NDR64) { \
+           ALIGN_TO_3_BYTES; \
+         } \
+       } while(0)
+
+#define UNION_ALIGN_TO_4_BYTES \
+       do { \
+         if (di->call_data->flags & DCERPC_IS_NDR64) { \
+           ALIGN_TO_4_BYTES; \
+         } \
+       } while(0)
+
+#define UNION_ALIGN_TO_5_BYTES \
+       do { \
+         if (di->call_data->flags & DCERPC_IS_NDR64) { \
+           ALIGN_TO_5_BYTES; \
+         } \
+       } while(0)
+
+#define UNION_ALIGN_TO_8_BYTES \
+       do { \
+         if (di->call_data->flags & DCERPC_IS_NDR64) { \
+           ALIGN_TO_8_BYTES; \
+         } \
+       } while(0)
+
 int
 dissect_ndr_datablob(tvbuff_t *tvb, int offset, packet_info *pinfo,
                        proto_tree *tree, dcerpc_info *di, guint8 *drep, int hf_index,