aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-atm.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-05-03 15:15:30 -0700
committerGuy Harris <guy@alum.mit.edu>2015-05-03 22:15:59 +0000
commit58ec8df614e1e5b682e8c3dbac021c915435340b (patch)
tree534c0d3b4d6e4627e79e920b6eda7f6cecfba3ff /epan/dissectors/packet-atm.c
parent85d3b61edb7d5f683a7747a498b512cf9ded37fd (diff)
Fix inconsistent indentation.
Change-Id: If757fb60023f2bf733ed3f51b6d6a18756283b42 Reviewed-on: https://code.wireshark.org/review/8285 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-atm.c')
-rw-r--r--epan/dissectors/packet-atm.c98
1 files changed, 49 insertions, 49 deletions
diff --git a/epan/dissectors/packet-atm.c b/epan/dissectors/packet-atm.c
index 17993c6c71..1f33768e9c 100644
--- a/epan/dissectors/packet-atm.c
+++ b/epan/dissectors/packet-atm.c
@@ -999,55 +999,55 @@ dissect_reassembled_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
{
if (tvb_reported_length(next_tvb) > 7) /* sizeof(octet) */
{
- guint8 octet[8];
- tvb_memcpy(next_tvb, octet, 0, sizeof(octet));
-
- if (octet[0] == 0xaa
- && octet[1] == 0xaa
- && octet[2] == 0x03) /* LLC SNAP as per RFC2684 */
- {
- call_dissector(llc_handle, next_tvb, pinfo, tree);
- decoded = TRUE;
- }
- else if ((pntoh16(octet) & 0xff) == PPP_IP)
- {
- call_dissector(ppp_handle, next_tvb, pinfo, tree);
- decoded = TRUE;
- }
- else if (pntoh16(octet) == 0x00)
- {
- /* assume vc muxed bridged ethernet */
- proto_tree_add_item(tree, hf_atm_padding, tvb, 0, 2, ENC_NA);
- next_tvb = tvb_new_subset_remaining(tvb, 2);
- call_dissector(eth_handle, next_tvb, pinfo, tree);
- decoded = TRUE;
- }
- else if (octet[2] == 0x03 && /* NLPID */
- ((octet[3] == 0xcc || /* IPv4 */
- octet[3] == 0x8e) || /* IPv6 */
- (octet[3] == 0x00 && /* Eth */
- octet[4] == 0x80))) /* Eth */
- {
- /* assume network interworking with FR 2 byte header */
- call_dissector(fr_handle, next_tvb, pinfo, tree);
- decoded = TRUE;
- }
- else if (octet[4] == 0x03 && /* NLPID */
- ((octet[5] == 0xcc || /* IPv4 */
- octet[5] == 0x8e) || /* IPv6 */
- (octet[5] == 0x00 && /* Eth */
- octet[6] == 0x80))) /* Eth */
- {
- /* assume network interworking with FR 4 byte header */
- call_dissector(fr_handle, next_tvb, pinfo, tree);
- decoded = TRUE;
- }
- else if (((octet[0] & 0xf0)== 0x40) ||
- ((octet[0] & 0xf0) == 0x60))
- {
- call_dissector(ip_handle, next_tvb, pinfo, tree);
- decoded = TRUE;
- }
+ guint8 octet[8];
+ tvb_memcpy(next_tvb, octet, 0, sizeof(octet));
+
+ if (octet[0] == 0xaa
+ && octet[1] == 0xaa
+ && octet[2] == 0x03) /* LLC SNAP as per RFC2684 */
+ {
+ call_dissector(llc_handle, next_tvb, pinfo, tree);
+ decoded = TRUE;
+ }
+ else if ((pntoh16(octet) & 0xff) == PPP_IP)
+ {
+ call_dissector(ppp_handle, next_tvb, pinfo, tree);
+ decoded = TRUE;
+ }
+ else if (pntoh16(octet) == 0x00)
+ {
+ /* assume vc muxed bridged ethernet */
+ proto_tree_add_item(tree, hf_atm_padding, tvb, 0, 2, ENC_NA);
+ next_tvb = tvb_new_subset_remaining(tvb, 2);
+ call_dissector(eth_handle, next_tvb, pinfo, tree);
+ decoded = TRUE;
+ }
+ else if (octet[2] == 0x03 && /* NLPID */
+ ((octet[3] == 0xcc || /* IPv4 */
+ octet[3] == 0x8e) || /* IPv6 */
+ (octet[3] == 0x00 && /* Eth */
+ octet[4] == 0x80))) /* Eth */
+ {
+ /* assume network interworking with FR 2 byte header */
+ call_dissector(fr_handle, next_tvb, pinfo, tree);
+ decoded = TRUE;
+ }
+ else if (octet[4] == 0x03 && /* NLPID */
+ ((octet[5] == 0xcc || /* IPv4 */
+ octet[5] == 0x8e) || /* IPv6 */
+ (octet[5] == 0x00 && /* Eth */
+ octet[6] == 0x80))) /* Eth */
+ {
+ /* assume network interworking with FR 4 byte header */
+ call_dissector(fr_handle, next_tvb, pinfo, tree);
+ decoded = TRUE;
+ }
+ else if (((octet[0] & 0xf0)== 0x40) ||
+ ((octet[0] & 0xf0) == 0x60))
+ {
+ call_dissector(ip_handle, next_tvb, pinfo, tree);
+ decoded = TRUE;
+ }
}
}
break;