aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2020-01-04 18:12:50 +0000
committerJoão Valverde <j@v6e.pt>2020-01-04 18:22:25 +0000
commit9ca39e1c56a87fdcf3ca037972cf864119a6d601 (patch)
treee22007401a1c754cbf3505d1206e49e85109f965
parent9fd4555c6fc70022ed4f7eec6a47984ff03ef83d (diff)
IPv4: Fix indentation (use spaces)
Change-Id: Ie89c3c958567182c1f5fe66cff23522e797a3e78 Reviewed-on: https://code.wireshark.org/review/35640 Reviewed-by: João Valverde <j@v6e.pt>
-rw-r--r--epan/dissectors/packet-ip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ip.c b/epan/dissectors/packet-ip.c
index c5a36bded1..bd8f0685f0 100644
--- a/epan/dissectors/packet-ip.c
+++ b/epan/dissectors/packet-ip.c
@@ -2153,9 +2153,8 @@ dissect_ip_v4(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void*
"Local Network Control Block (see RFC 3171)",
ttl);
}
- } else if (!in4_addr_is_multicast(dst32) &&
- /* At least BGP should appear here as well */
- iph->ip_ttl < 5 &&
+ } else if (iph->ip_ttl < 5 && !in4_addr_is_multicast(dst32) &&
+ /* At least BGP should appear here as well */
iph->ip_proto != IP_PROTO_PIM &&
iph->ip_proto != IP_PROTO_OSPF) {
expert_add_info_format(pinfo, ttl_item, &ei_ip_ttl_too_small, "\"Time To Live\" only %u", iph->ip_ttl);