]> The Tcpdump Group git mirrors - tcpdump/commitdiff
MACsec: Put the function definition names at the beginning of the line
authorFrancois-Xavier Le Bail <[email protected]>
Mon, 25 Jan 2021 11:07:08 +0000 (12:07 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Mon, 25 Jan 2021 11:16:27 +0000 (12:16 +0100)
This change allows easier update by script.

[skip ci]

print-macsec.c

index 0cf8cd67385987a47d3de2e5cc821b55bb7a5767..38ae26edd5820bb3b2fe34939145a0b71c0199fb 100644 (file)
@@ -87,9 +87,10 @@ static const struct tok macsec_flag_values[] = {
        { 0, NULL }
 };
 
-static void macsec_print_header(netdissect_options *ndo,
-                               const struct macsec_sectag *sectag,
-                               u_int short_length)
+static void
+macsec_print_header(netdissect_options *ndo,
+                   const struct macsec_sectag *sectag,
+                   u_int short_length)
 {
        ND_PRINT("an %u, pn %u, flags %s",
                 GET_U_1(sectag->tci_an) & MACSEC_AN_MASK,
@@ -107,9 +108,10 @@ static void macsec_print_header(netdissect_options *ndo,
 }
 
 /* returns < 0 iff the packet can be decoded completely */
-int macsec_print(netdissect_options *ndo, const u_char **bp,
-                u_int *lengthp, u_int *caplenp, u_int *hdrlenp,
-                const struct lladdr_info *src, const struct lladdr_info *dst)
+int
+macsec_print(netdissect_options *ndo, const u_char **bp,
+            u_int *lengthp, u_int *caplenp, u_int *hdrlenp,
+            const struct lladdr_info *src, const struct lladdr_info *dst)
 {
        const char *save_protocol;
        const u_char *p = *bp;