]> The Tcpdump Group git mirrors - tcpdump/commitdiff
remove unused function nfsreq_print()
authorDenis Ovsienko <[email protected]>
Fri, 11 Apr 2014 14:31:40 +0000 (18:31 +0400)
committerDenis Ovsienko <[email protected]>
Fri, 11 Apr 2014 14:31:40 +0000 (18:31 +0400)
netdissect.h
print-nfs.c

index 8ea2c37caebff186e2790364f3341f06bd61ba38..cbc8bbc1f89d7b3a8d7a97d93107f79e41eaedca 100644 (file)
@@ -496,7 +496,6 @@ extern void snmp_print(netdissect_options *, const u_char *, u_int);
 extern void rx_print(netdissect_options *, register const u_char *, int, int, int, u_char *);
 extern void nfsreply_print(netdissect_options *, const u_char *, u_int, const u_char *);
 extern void nfsreply_print_noaddr(netdissect_options *, const u_char *, u_int, const u_char *);
-extern void nfsreq_print(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 void sip_print(netdissect_options *, const u_char *, u_int);
 extern void syslog_print(netdissect_options *, const u_char *, u_int);
index 98cdabdc5b95866d26d1fa016f0c3e5c6fc523cf..ee3f9629c65d2d8416ec2c47d83f52758914d19e 100644 (file)
@@ -517,37 +517,6 @@ parsefhn(netdissect_options *ndo,
        return (parsefn(ndo, dp));
 }
 
-void
-nfsreq_print(netdissect_options *ndo,
-             register const u_char *bp, u_int length,
-             register const u_char *bp2)
-{
-       register const struct sunrpc_msg *rp;
-       char srcid[20], dstid[20];      /*fits 32bit*/
-
-       nfserr = 0;             /* assume no error */
-       rp = (const struct sunrpc_msg *)bp;
-
-       ND_TCHECK(rp->rm_xid);
-       if (!ndo->ndo_nflag) {
-               snprintf(srcid, sizeof(srcid), "%u",
-                   EXTRACT_32BITS(&rp->rm_xid));
-               strlcpy(dstid, "nfs", sizeof(dstid));
-       } else {
-               snprintf(srcid, sizeof(srcid), "%u",
-                   EXTRACT_32BITS(&rp->rm_xid));
-               snprintf(dstid, sizeof(dstid), "%u", NFS_PORT);
-       }
-       print_nfsaddr(ndo, bp2, srcid, dstid);
-
-       nfsreq_print_noaddr(ndo, bp, length, bp2);
-       return;
-
-trunc:
-       if (!nfserr)
-               ND_PRINT((ndo, "%s", tstr));
-}
-
 void
 nfsreq_print_noaddr(netdissect_options *ndo,
                     register const u_char *bp, u_int length,