diff options
author | Michael Mann <mmann78@netscape.net> | 2017-04-25 23:26:59 -0400 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-29 09:47:28 +0000 |
commit | cc9b38a734ac64603e78fe2dc00ad5bdc214e3ff (patch) | |
tree | 43ab14de0f92988f97e533f6b7076ed2fb01f46f /wiretap/wtap-int.h | |
parent | fb1a6320ec67fc30414948b8e7e8c63c37a15983 (diff) |
Improve ixveriwave dissector
Bug: 13652
Bug: 12535
Change-Id: Ie4c140acbe983a585776bc1430cf407cdcd6e07a
Reviewed-on: https://code.wireshark.org/review/21356
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r-- | wiretap/wtap-int.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index decfdcd975..2aa119e7c8 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -208,6 +208,13 @@ extern gint wtap_num_file_types; } #endif +#ifndef phtole8 +#define phtole8(p, v) \ + { \ + (p)[0] = (guint8)((v) >> 0); \ + } +#endif + #ifndef phtoles #define phtoles(p, v) \ { \ @@ -216,6 +223,15 @@ extern gint wtap_num_file_types; } #endif +#ifndef phtole24 +#define phtole24(p, v) \ + { \ + (p)[0] = (guint8)((v) >> 0); \ + (p)[1] = (guint8)((v) >> 8); \ + (p)[2] = (guint8)((v) >> 16); \ + } +#endif + #ifndef phtolel #define phtolel(p, v) \ { \ |