erspan: Rename two printers

Rename erspan_print_i_ii() to erspan_i_ii_print() and erspan_print_iii()
to erspan_iii_print(), with _print suffixes as in most similar cases.
This commit is contained in:
Francois-Xavier Le Bail 2024-10-26 21:56:52 +02:00
parent a03bb3e8e5
commit 2f9f8d161f
3 changed files with 6 additions and 6 deletions

View File

@ -652,8 +652,8 @@ extern void eap_print(netdissect_options *, const u_char *, const u_int);
extern void eapol_print(netdissect_options *, const u_char *);
extern void egp_print(netdissect_options *, const u_char *, u_int);
extern void eigrp_print(netdissect_options *, const u_char *, u_int);
extern void erspan_print_i_ii(netdissect_options *, uint16_t, const u_char *, u_int);
extern void erspan_print_iii(netdissect_options *, const u_char *, u_int);
extern void erspan_i_ii_print(netdissect_options *, uint16_t, const u_char *, u_int);
extern void erspan_iii_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_switch_tag_print(netdissect_options *, const u_char *, u_int, u_int, void (*)(netdissect_options *, const u_char *), u_int);

View File

@ -66,7 +66,7 @@
#define ERSPAN2_INDEX_MASK (0xfffffU << ERSPAN2_INDEX_SHIFT)
void
erspan_print_i_ii(netdissect_options *ndo, uint16_t flags, const u_char *bp, u_int len)
erspan_i_ii_print(netdissect_options *ndo, uint16_t flags, const u_char *bp, u_int len)
{
uint32_t hdr, ver, vlan, cos, en, sid, index;
@ -198,7 +198,7 @@ static const struct tok erspan3_ft_values[] = {
};
void
erspan_print_iii(netdissect_options *ndo, const u_char *bp, u_int len)
erspan_iii_print(netdissect_options *ndo, const u_char *bp, u_int len)
{
uint32_t hdr, hdr2, ver, cos, sid, ft;

View File

@ -303,10 +303,10 @@ gre_print_0(netdissect_options *ndo, const u_char *bp, u_int length)
nsh_print(ndo, bp, len);
break;
case GRE_ERSPAN_I_II:
erspan_print_i_ii(ndo, flags, bp, len);
erspan_i_ii_print(ndo, flags, bp, len);
break;
case GRE_ERSPAN_III:
erspan_print_iii(ndo, bp, len);
erspan_iii_print(ndo, bp, len);
break;
case GRE_CDP:
cdp_print(ndo, bp, len);