summaryrefslogtreecommitdiff
path: root/wiretap/wtap.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-01-12 21:21:42 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-13 05:22:12 +0000
commitd286243d0d7f83e39b5ac3aec4524eea3294147f (patch)
treedc7918b75b5b25c16c2d8a64264b8c2af4ff11f9 /wiretap/wtap.h
parentb7dc77312720bb1bfa3698f3b48e21c991c49632 (diff)
downloadwireshark-d286243d0d7f83e39b5ac3aec4524eea3294147f.tar.gz
Dissect the MC and AAL2 headers as 32-bit words.
That's how they're extracted in the libwiretap module, and that's how they're shown in the ERF spec. This gets rid of some compiler warnings about type-punning. Merge some reserved bit fields to match what's in the ERF spec. Renumber others. Process the AAL2 and MC headers differently; yes, they're both big-endian 32-bit values, but that makes the code a bit clearer, and, heck, the optimizer may well combine the two sequences of code. Change-Id: Ief7f976e77e8f2fba1685ad5a50ee677a8070ae7 Reviewed-on: https://code.wireshark.org/review/13251 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap.h')
-rw-r--r--wiretap/wtap.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/wiretap/wtap.h b/wiretap/wtap.h
index 0335607b2a..39707abc15 100644
--- a/wiretap/wtap.h
+++ b/wiretap/wtap.h
@@ -940,6 +940,7 @@ struct erf_mc_phdr {
{
guint16 eth_hdr;
guint32 mc_hdr;
+ guint32 aal2_hdr;
} subhdr;
};