aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/wtap-int.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2011-11-17 09:04:54 +0000
committerGuy Harris <guy@alum.mit.edu>2011-11-17 09:04:54 +0000
commit31f61b75b29d30050db4039b685d26338c352181 (patch)
tree7b6c970dcfdd2f9d45715ebb92b6266b39b774e8 /wiretap/wtap-int.h
parent9dc26776e4f34bb6779fa414add3766b3900870a (diff)
A new macro needed by the WTAP_ENCAP_PER_PACKET support for writing
NetMon files. svn path=/trunk/; revision=39899
Diffstat (limited to 'wiretap/wtap-int.h')
-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) \
{ \