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