diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-02-09 09:52:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-02-09 09:52:10 +0000 |
commit | 07922081ff970ed90ed3272ddf5b1d8dd37486ea (patch) | |
tree | 0c9811a9aaf6442173bc4f914ffb239d92fc89d7 /epan/dissectors/packet-sflow.c | |
parent | c8112bc620b066804f6873aa5ad4a18a2ba7e14c (diff) |
Do all the missing dissectors the same way.
Oh, and there's no dissector registered as "atm" - and, if there were,
it probably wouldn't be able to handle AAL5 packets by themselves, as
you'd probably have to supply pseudo-header information (where does the
VPI/VCI come from, for example?).
This fixes bug 4471.
svn path=/trunk/; revision=31845
Diffstat (limited to 'epan/dissectors/packet-sflow.c')
-rw-r--r-- | epan/dissectors/packet-sflow.c | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/epan/dissectors/packet-sflow.c b/epan/dissectors/packet-sflow.c index 54636d9848..63365e074d 100644 --- a/epan/dissectors/packet-sflow.c +++ b/epan/dissectors/packet-sflow.c @@ -3459,23 +3459,34 @@ proto_reg_handoff_sflow_245(void) { */ smds_handle = data_handle; #endif - /* No AAL5 (ATM Adaptation Layer 5) dissector available, use ATM dissector for now */ - aal5_handle = find_dissector("atm"); +#if 0 + aal5_handle = find_dissector("aal5"); +#else + /* + * No AAL5 (ATM Adaptation Layer 5) dissector available. + * What does the packet look like? An AAL5 PDU? Where + * do the VPI/VCI pair appear, if anywhere? + */ + aal5_handle = data_handle; +#endif ipv4_handle = find_dissector("ip"); ipv6_handle = find_dissector("ipv6"); mpls_handle = find_dissector("mpls"); +#if 0 + pos_handle = find_dissector("pos"); +#else /* wireshark does not have POS dissector yet */ - /* - pos_handle = find_dissector("pos"); - */ pos_handle = data_handle; +#endif ieee80211_mac_handle = find_dissector("wlan"); - /* - ieee80211_ampdu_handle = find_dissector("ampdu"); - ieee80211_amsdu_subframe_handle = find_dissector("wlan_aggregate"); - */ +#if 0 + ieee80211_ampdu_handle = find_dissector("ampdu"); + ieee80211_amsdu_subframe_handle = find_dissector("wlan_aggregate"); +#else + /* No handles for these */ ieee80211_ampdu_handle = data_handle; ieee80211_amsdu_subframe_handle = data_handle; +#endif } else { eth_withoutfcs_handle = data_handle; tr_handle = data_handle; |