aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-17 09:04:54 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-17 09:04:54 +0000
commit20e0308e42238b739421586c50f9fc1a2937cc43 (patch)
tree7b6c970dcfdd2f9d45715ebb92b6266b39b774e8 /wiretap
parentee91e1efa620dfbf6c5684e65260ee65b6a3b2b8 (diff)
A new macro needed by the WTAP_ENCAP_PER_PACKET support for writing
NetMon files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39899 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/wtap-int.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h
index 0a690806b1..3d76e47579 100644
--- a/wiretap/wtap-int.h
+++ b/wiretap/wtap-int.h
@@ -288,6 +288,14 @@ extern gint wtap_num_file_types;
}
#endif
+#ifndef phtoles
+#define phtoles(p, v) \
+ { \
+ (p)[0] = (guint8)((v) >> 0); \
+ (p)[1] = (guint8)((v) >> 8); \
+ }
+#endif
+
#ifndef pletonll
#define pletonll(p, v) \
{ \