summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-16 10:18:43 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-16 10:18:43 +0100
commit62af1ac58c6afa5d616f278c94a42e6dba6f0626 (patch)
tree5a86daf928c186641eb309b51c28eef71421cd9e
parente037e16d6d35ec0d799ae5d13fbfc1db386e8b93 (diff)
downloadtcpdump-62af1ac58c6afa5d616f278c94a42e6dba6f0626.tar.gz
SUNRPC: Rename entry function
Most printer entry functions are based on the file name (without print-). Do the same for SUNRPC (sunrpcrequest_print -> sunrpc_print). This change allows easier update by script.
-rw-r--r--netdissect.h2
-rw-r--r--print-sunrpc.c2
-rw-r--r--print-udp.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/netdissect.h b/netdissect.h
index 6d0bea9d..422bf078 100644
--- a/netdissect.h
+++ b/netdissect.h
@@ -601,7 +601,7 @@ extern void smtp_print(netdissect_options *, const u_char *, u_int);
extern int snap_print(netdissect_options *, const u_char *, u_int, u_int, const struct lladdr_info *, const struct lladdr_info *, u_int);
extern void snmp_print(netdissect_options *, const u_char *, u_int);
extern void stp_print(netdissect_options *, const u_char *, u_int);
-extern void sunrpcrequest_print(netdissect_options *, const u_char *, u_int, const u_char *);
+extern void sunrpc_print(netdissect_options *, const u_char *, u_int, const u_char *);
extern void syslog_print(netdissect_options *, const u_char *, u_int);
extern void tcp_print(netdissect_options *, const u_char *, u_int, const u_char *, int);
extern void telnet_print(netdissect_options *, const u_char *, u_int);
diff --git a/print-sunrpc.c b/print-sunrpc.c
index d2366c78..aca3c969 100644
--- a/print-sunrpc.c
+++ b/print-sunrpc.c
@@ -165,7 +165,7 @@ static const struct tok proc2str[] = {
static char *progstr(uint32_t);
void
-sunrpcrequest_print(netdissect_options *ndo, register const u_char *bp,
+sunrpc_print(netdissect_options *ndo, register const u_char *bp,
register u_int length, register const u_char *bp2)
{
register const struct sunrpc_msg *rp;
diff --git a/print-udp.c b/print-udp.c
index 8dff7fee..be1da675 100644
--- a/print-udp.c
+++ b/print-udp.c
@@ -439,7 +439,7 @@ udp_print(netdissect_options *ndo, register const u_char *bp, u_int length,
rp = (const struct sunrpc_msg *)(up + 1);
direction = (enum sunrpc_msg_type)EXTRACT_32BITS(&rp->rm_direction);
if (direction == SUNRPC_CALL)
- sunrpcrequest_print(ndo, (const u_char *)rp, length,
+ sunrpc_print(ndo, (const u_char *)rp, length,
(const u_char *)ip);
else
nfsreply_print(ndo, (const u_char *)rp, length,
@@ -523,7 +523,7 @@ udp_print(netdissect_options *ndo, register const u_char *bp, u_int length,
}
#ifdef notdef
if (dport == SUNRPC_PORT && direction == SUNRPC_CALL) {
- sunrpcrequest_print((const u_char *)rp, length, (const u_char *)ip);
+ sunrpc_print((const u_char *)rp, length, (const u_char *)ip);
return;
}
#endif