};
static void
-print_nfsaddr(netdissect_options *ndo,
+nfsaddr_print(netdissect_options *ndo,
const u_char *bp, const char *s, const char *d)
{
const struct ip *ip;
sa3->sa_atimetype = GET_BE_U_4(dp);
dp++;
if (sa3->sa_atimetype == NFSV3SATTRTIME_TOCLIENT) {
- ND_TCHECK_4(dp + 1);
sa3->sa_atime.nfsv3_sec = GET_BE_U_4(dp);
dp++;
sa3->sa_atime.nfsv3_nsec = GET_BE_U_4(dp);
sa3->sa_mtimetype = GET_BE_U_4(dp);
dp++;
if (sa3->sa_mtimetype == NFSV3SATTRTIME_TOCLIENT) {
- ND_TCHECK_4(dp + 1);
sa3->sa_mtime.nfsv3_sec = GET_BE_U_4(dp);
dp++;
sa3->sa_mtime.nfsv3_nsec = GET_BE_U_4(dp);
}
return dp;
-trunc:
- return NULL;
}
static void
ndo->ndo_protocol = "nfs";
rp = (const struct sunrpc_msg *)bp;
- ND_TCHECK_4(rp->rm_xid);
if (!ndo->ndo_nflag) {
strlcpy(srcid, "nfs", sizeof(srcid));
snprintf(dstid, sizeof(dstid), "%u",
snprintf(dstid, sizeof(dstid), "%u",
GET_BE_U_4(rp->rm_xid));
}
- print_nfsaddr(ndo, bp2, srcid, dstid);
+ nfsaddr_print(ndo, bp2, srcid, dstid);
nfsreply_noaddr_print(ndo, bp, length, bp2);
- return;
-
-trunc:
- nd_print_trunc(ndo);
}
void
/* Print the undecoded handle */
ND_PRINT("%s", fsid.Opaque_Handle);
else
- ND_PRINT("%ld", (long) ino);
+ ND_PRINT("%u", ino);
}
/*
if (ndo->ndo_qflag)
return (1);
- ND_TCHECK_4(dp + 2);
ND_PRINT(" offset 0x%x size %u ",
GET_BE_U_4(dp), GET_BE_U_4(dp + 1));
if (GET_BE_U_4(dp + 2) != 0)
ND_PRINT(" eof");
return (1);
-trunc:
- return (0);
}
static const uint32_t *