DNS: Rename entry function

Most printer entry functions are based on the file name (without print-).
Do the same for DNS (ns_print -> domain_print)

This change allows easier update by script.
This commit is contained in:
Francois-Xavier Le Bail 2017-11-16 09:40:19 +01:00
parent 45c9c5e5c2
commit e037e16d6d
4 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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;

View File

@ -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)) {

View File

@ -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))