]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Ethernet: Rename a printer
authorFrancois-Xavier Le Bail <[email protected]>
Sun, 8 Mar 2020 11:36:46 +0000 (12:36 +0100)
committerFrancois-Xavier Le Bail <[email protected]>
Sun, 8 Mar 2020 11:36:46 +0000 (12:36 +0100)
Rename ether_print_switch_tag() to ether_switch_tag_print(), with _print
suffix like in most similar cases.

netdissect.h
print-brcmtag.c
print-dsa.c
print-ether.c

index ba3b6b963d5c375e79ace32231749fdfa2c8615d..620c9a115bd693dbe822c311d1c50deb60cf524d 100644 (file)
@@ -579,7 +579,7 @@ extern void egp_print(netdissect_options *, const u_char *, u_int);
 extern void eigrp_print(netdissect_options *, const u_char *, u_int);
 extern void esp_print(netdissect_options *, const u_char *, u_int, const u_char *, u_int, int, u_int);
 extern u_int ether_print(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), const u_char *);
-extern u_int ether_print_switch_tag(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), u_int);
+extern u_int ether_switch_tag_print(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), u_int);
 extern int ethertype_print(netdissect_options *, u_short, const u_char *, u_int, u_int, const struct lladdr_info *, const struct lladdr_info *);
 extern u_int fddi_print(netdissect_options *, const u_char *, u_int, u_int);
 extern void forces_print(netdissect_options *, const u_char *, u_int);
index 15449786aaaa6dcd2440522617dbbce310633c69..ff9c5cb37ba4a2b949fc28619330da6fb18d270e 100644 (file)
@@ -118,7 +118,7 @@ brcm_tag_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
        u_int length = h->len;
 
        ndo->ndo_protocol = "brcm-tag";
-       return (ether_print_switch_tag(ndo, p, length, caplen,
+       return (ether_switch_tag_print(ndo, p, length, caplen,
            brcm_tag_print, BRCM_TAG_LEN));
 }
 
index 0efab60267b03c042f9d6a36c9d52df073e336e2..7dad9e2a4d8c5dd8e4248956e416de3715494509 100644 (file)
@@ -203,7 +203,7 @@ dsa_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
        u_int length = h->len;
 
        ndo->ndo_protocol = "dsa";
-       return (ether_print_switch_tag(ndo, p, length, caplen,
+       return (ether_switch_tag_print(ndo, p, length, caplen,
            dsa_tag_print, DSA_LEN));
 }
 
@@ -214,6 +214,6 @@ edsa_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
        u_int length = h->len;
 
        ndo->ndo_protocol = "edsa";
-       return (ether_print_switch_tag(ndo, p, length, caplen,
+       return (ether_switch_tag_print(ndo, p, length, caplen,
            edsa_tag_print, EDSA_LEN));
 }
index 74479ccf82fc40b39ed8dbc9a743eadb2a6d240e..eed66ace9f9642e96f0f530b051774a7aab9abb3 100644 (file)
@@ -375,7 +375,7 @@ recurse:
  * FIXME: caplen can and should be derived from ndo->ndo_snapend and p.
  */
 u_int
-ether_print_switch_tag(netdissect_options *ndo, const u_char *p, u_int length,
+ether_switch_tag_print(netdissect_options *ndo, const u_char *p, u_int length,
     u_int caplen,
     void (*print_switch_tag)(netdissect_options *, const u_char *),
     u_int switch_tag_len)