]> The Tcpdump Group git mirrors - tcpdump/commitdiff
ICMPv6: Remove an unused macro and extra blank lines
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 7 Feb 2022 10:12:35 +0000 (11:12 +0100)
committerGuy Harris <[email protected]>
Sun, 17 Jul 2022 05:30:00 +0000 (22:30 -0700)
[skip ci]

(cherry picked from commit 5140300e4c7cb7b6cc25539adccf4bbf747d39fb)

print-icmp6.c

index f380be20ccedf90799dbc583fa402f33e421582d..4bcf6404dc63ab9af5aaf340c7ad6bb76d97c84d 100644 (file)
@@ -490,10 +490,6 @@ static void dnsname_print(netdissect_options *ndo, const u_char *, const u_char
 static void icmp6_nodeinfo_print(netdissect_options *ndo, u_int, const u_char *, const u_char *);
 static void icmp6_rrenum_print(netdissect_options *ndo, const u_char *, const u_char *);
 
-#ifndef abs
-#define abs(a) ((0 < (a)) ? (a) : -(a))
-#endif
-
 /*
  * DIO: Updated to RFC6550, as published in 2012: section 6. (page 30)
  */
@@ -711,7 +707,6 @@ static const struct tok icmp6_nd_na_flag_values[] = {
     { 0,       NULL }
 };
 
-
 static const struct tok icmp6_opt_values[] = {
    { ND_OPT_SOURCE_LINKADDR, "source link-address"},
    { ND_OPT_TARGET_LINKADDR, "destination link-address"},
@@ -1015,7 +1010,6 @@ trunc:
 
 }
 
-
 void
 icmp6_print(netdissect_options *ndo,
             const u_char *bp, u_int length, const u_char *bp2, int fragmented)
@@ -1776,7 +1770,6 @@ icmp6_nodeinfo_print(netdissect_options *ndo, u_int icmp6len, const u_char *bp,
                        break;
                }
 
-
                /* XXX backward compat, icmp-name-lookup-03 */
                if (siz == sizeof(*ni6)) {
                        ND_PRINT(", 03 draft");