diff --git a/netdissect.h b/netdissect.h index bbeb66ec..6d0bea9d 100644 --- a/netdissect.h +++ b/netdissect.h @@ -561,7 +561,7 @@ extern void nfsreply_print(netdissect_options *, const u_char *, u_int, const u_ extern void nfsreply_print_noaddr(netdissect_options *, const u_char *, u_int, const u_char *); extern void nfsreq_print_noaddr(netdissect_options *, const u_char *, u_int, const u_char *); extern const u_char * ns_nprint (netdissect_options *, register const u_char *, register const u_char *); -extern void ns_print(netdissect_options *, const u_char *, u_int, int); +extern void domain_print(netdissect_options *, const u_char *, u_int, int); extern void nsh_print(netdissect_options *ndo, const u_char *bp, u_int len); extern void ntp_print(netdissect_options *, const u_char *, u_int); extern void oam_print(netdissect_options *, const u_char *, u_int, u_int); diff --git a/print-domain.c b/print-domain.c index 9a2b9e85..4bd2cf16 100644 --- a/print-domain.c +++ b/print-domain.c @@ -574,7 +574,7 @@ ns_rprint(netdissect_options *ndo, } void -ns_print(netdissect_options *ndo, +domain_print(netdissect_options *ndo, register const u_char *bp, u_int length, int is_mdns) { register const HEADER *np; diff --git a/print-tcp.c b/print-tcp.c index 35df59c3..51f3e482 100644 --- a/print-tcp.c +++ b/print-tcp.c @@ -721,7 +721,7 @@ tcp_print(netdissect_options *ndo, * TCP DNS query has 2byte length at the head. * XXX packet could be unaligned, it can go strange */ - ns_print(ndo, bp + 2, length - 2, 0); + domain_print(ndo, bp + 2, length - 2, 0); } else if (IS_SRC_OR_DST_PORT(MSDP_PORT)) { msdp_print(ndo, bp, length); } else if (IS_SRC_OR_DST_PORT(RPKI_RTR_PORT)) { diff --git a/print-udp.c b/print-udp.c index 3f26af35..8dff7fee 100644 --- a/print-udp.c +++ b/print-udp.c @@ -571,9 +571,9 @@ udp_print(netdissect_options *ndo, register const u_char *bp, u_int length, if (!ndo->ndo_qflag) { if (IS_SRC_OR_DST_PORT(NAMESERVER_PORT)) - ns_print(ndo, (const u_char *)(up + 1), length, 0); + domain_print(ndo, (const u_char *)(up + 1), length, 0); else if (IS_SRC_OR_DST_PORT(MULTICASTDNS_PORT)) - ns_print(ndo, (const u_char *)(up + 1), length, 1); + domain_print(ndo, (const u_char *)(up + 1), length, 1); else if (IS_SRC_OR_DST_PORT(TIMED_PORT)) timed_print(ndo, (const u_char *)(up + 1)); else if (IS_SRC_OR_DST_PORT(TFTP_PORT))