Home | History | Annotate | Download | only in tcpdump

Lines Matching defs:dp

244              const uint32_t *dp, struct nfsv3_sattr *sa3)
246 ND_TCHECK(dp[0]);
247 sa3->sa_modeset = EXTRACT_32BITS(dp);
248 dp++;
250 ND_TCHECK(dp[0]);
251 sa3->sa_mode = EXTRACT_32BITS(dp);
252 dp++;
255 ND_TCHECK(dp[0]);
256 sa3->sa_uidset = EXTRACT_32BITS(dp);
257 dp++;
259 ND_TCHECK(dp[0]);
260 sa3->sa_uid = EXTRACT_32BITS(dp);
261 dp++;
264 ND_TCHECK(dp[0]);
265 sa3->sa_gidset = EXTRACT_32BITS(dp);
266 dp++;
268 ND_TCHECK(dp[0]);
269 sa3->sa_gid = EXTRACT_32BITS(dp);
270 dp++;
273 ND_TCHECK(dp[0]);
274 sa3->sa_sizeset = EXTRACT_32BITS(dp);
275 dp++;
277 ND_TCHECK(dp[0]);
278 sa3->sa_size = EXTRACT_32BITS(dp);
279 dp++;
282 ND_TCHECK(dp[0]);
283 sa3->sa_atimetype = EXTRACT_32BITS(dp);
284 dp++;
286 ND_TCHECK(dp[1]);
287 sa3->sa_atime.nfsv3_sec = EXTRACT_32BITS(dp);
288 dp++;
289 sa3->sa_atime.nfsv3_nsec = EXTRACT_32BITS(dp);
290 dp++;
293 ND_TCHECK(dp[0]);
294 sa3->sa_mtimetype = EXTRACT_32BITS(dp);
295 dp++;
297 ND_TCHECK(dp[1]);
298 sa3->sa_mtime.nfsv3_sec = EXTRACT_32BITS(dp);
299 dp++;
300 sa3->sa_mtime.nfsv3_nsec = EXTRACT_32BITS(dp);
301 dp++;
304 return dp;
431 register const uint32_t *dp;
437 dp = (uint32_t *)&rp->rm_call.cb_cred;
438 ND_TCHECK(dp[1]);
439 len = EXTRACT_32BITS(&dp[1]);
441 dp += (len + (2 * sizeof(*dp) + 3)) / sizeof(*dp);
442 ND_TCHECK(dp[1]);
443 len = EXTRACT_32BITS(&dp[1]);
445 dp += (len + (2 * sizeof(*dp) + 3)) / sizeof(*dp);
446 ND_TCHECK2(dp[0], 0);
447 return (dp);
460 register const uint32_t *dp, int v3)
465 ND_TCHECK(dp[0]);
466 len = EXTRACT_32BITS(dp) / 4;
467 dp++;
471 if (ND_TTEST2(*dp, len * sizeof(*dp))) {
472 nfs_printfh(ndo, dp, len);
473 return (dp + len);
485 register const uint32_t *dp)
491 ND_TCHECK(*dp);
494 len = *dp++;
497 ND_TCHECK2(*dp, ((len + 3) & ~3));
499 cp = (u_char *)dp;
501 dp += ((len + 3) & ~3) / sizeof(*dp);
509 return (dp);
521 register const uint32_t *dp, int v3)
523 dp = parsefh(ndo, dp, v3);
524 if (dp == NULL)
527 return (parsefn(ndo, dp));
536 register const uint32_t *dp;
565 if ((dp = parsereq(ndo, rp, length)) != NULL &&
566 parsefh(ndo, dp, v3) != NULL)
575 if ((dp = parsereq(ndo, rp, length)) != NULL &&
576 parsefhn(ndo, dp, v3) != NULL)
581 if ((dp = parsereq(ndo, rp, length)) != NULL &&
582 (dpdp, v3)) != NULL) {
583 ND_TCHECK(dp[0]);
584 access_flags = EXTRACT_32BITS(&dp[0]);
620 if ((dp = parsereq(ndo, rp, length)) != NULL &&
621 (dp = parsefh(ndo, dp, v3)) != NULL) {
623 ND_TCHECK(dp[2]);
625 EXTRACT_32BITS(&dp[2]),
626 EXTRACT_64BITS(&dp[0])));
628 ND_TCHECK(dp[1]);
630 EXTRACT_32BITS(&dp[1]),
631 EXTRACT_32BITS(&dp[0])));
638 if ((dp = parsereq(ndo, rp, length)) != NULL &&
639 (dp = parsefh(ndo, dp, v3)) != NULL) {
641 ND_TCHECK(dp[2]);
643 EXTRACT_32BITS(&dp[4]),
644 EXTRACT_32BITS(&dp[2]),
645 EXTRACT_64BITS(&dp[0])));
647 dp += 3;
648 ND_TCHECK(dp[0]);
651 NULL, EXTRACT_32BITS(dp))));
654 ND_TCHECK(dp[3]);
656 EXTRACT_32BITS(&dp[3]),
657 EXTRACT_32BITS(&dp[2]),
658 EXTRACT_32BITS(&dp[1]),
659 EXTRACT_32BITS(&dp[0])));
666 if ((dp = parsereq(ndo, rp, length)) != 0 &&
667 (dp = parsefhn(ndo, dp, v3)) != 0) {
669 if (v3 && (dp = parse_sattr3(ndo, dp, &sa3)) == 0)
671 if (parsefn(ndo, dp) == 0)
680 if ((dp = parsereq(ndo, rp, length)) != 0 &&
681 (dp = parsefhn(ndo, dp, v3)) != 0) {
682 ND_TCHECK(*dp);
683 type = (nfs_type)EXTRACT_32BITS(dp);
684 dp++;
685 if ((dp = parse_sattr3(ndo, dp, &sa3)) == 0)
689 ND_TCHECK(dp[1]);
691 EXTRACT_32BITS(&dp[0]),
692 EXTRACT_32BITS(&dp[1])));
693 dp += 2;
702 if ((dp = parsereq(ndo, rp, length)) != NULL &&
703 (dp = parsefhn(ndo, dp, v3)) != NULL) {
705 if (parsefhn(ndo, dp, v3) != NULL)
711 if ((dp = parsereq(ndo, rp, length)) != NULL &&
712 (dp = parsefh(ndo, dp, v3)) != NULL) {
714 if (parsefhn(ndo, dp, v3) != NULL)
720 if ((dp = parsereq(ndo, rp, length)) != NULL &&
721 (dp = parsefh(ndo, dp, v3)) != NULL) {
723 ND_TCHECK(dp[4]);
729 EXTRACT_32BITS(&dp[4]),
730 EXTRACT_64BITS(&dp[0])));
732 ND_PRINT((ndo, " verf %08x%08x", dp[2], dp[3]));
734 ND_TCHECK(dp[1]);
740 EXTRACT_32BITS(&dp[1]),
741 EXTRACT_32BITS(&dp[0])));
748 if ((dp = parsereq(ndo, rp, length)) != NULL &&
749 (dp = parsefh(ndo, dp, v3)) != NULL) {
750 ND_TCHECK(dp[4]);
756 EXTRACT_32BITS(&dp[4]),
757 EXTRACT_64BITS(&dp[0])));
759 ND_TCHECK(dp[5]);
761 EXTRACT_32BITS(&dp[5]), dp[2], dp[3]));
768 if ((dp = parsereq(ndo, rp, length)) != NULL &&
769 (dp = parsefh(ndo, dp, v3)) != NULL) {
770 ND_TCHECK(dp[2]);
772 EXTRACT_32BITS(&dp[2]),
773 EXTRACT_64BITS(&dp[0])));
790 * file handle pointed to by dp.
798 register const uint32_t *dp, const u_int len)
811 ND_PRINT((ndo, "%s%x", sep, dp[i]));
818 Parse_fh((const u_char *)dp, len, &fsid, &ino, NULL, &sfsname, 0);
1001 register const uint32_t *dp;
1009 * dp = (uint32_t *)&rp->rm_reply.rp_acpt.ar_verf
1020 dp = ((const uint32_t *)&rp->rm_reply) + 1;
1021 ND_TCHECK(dp[1]);
1022 len = EXTRACT_32BITS(&dp[1]);
1028 dp += (len + (2*sizeof(uint32_t) + 3)) / sizeof(uint32_t);
1029 ND_TCHECK2(dp[0], 0);
1034 astat = (enum sunrpc_accept_stat) EXTRACT_32BITS(dp);
1041 ND_TCHECK2(*dp, sizeof(astat));
1042 return ((uint32_t *) (sizeof(astat) + ((char *)dp)));
1049 const uint32_t *dp, int *er)
1053 ND_TCHECK(dp[0]);
1055 errnum = EXTRACT_32BITS(&dp[0]);
1064 return (dp + 1);
1071 const uint32_t *dp, int verbose, int v3)
1075 fap = (const struct nfs_fattr *)dp;
1132 return ((const uint32_t *)((unsigned char *)dp +
1140 const uint32_t *dp, int verbose, int v3)
1144 dp = parsestatus(ndo, dp, &er);
1145 if (dp == NULL)
1150 return (parsefattr(ndo, dp, verbose, v3) != NULL);
1155 const uint32_t *dp)
1159 if (!(dp = parsestatus(ndo, dp, &er)))
1164 dp = parsefh(ndo, dp, 0);
1165 if (dp == NULL)
1168 return (parsefattr(ndo, dp, ndo->ndo_vflag, 0) != NULL);
1173 const uint32_t *dp, int v3)
1177 dp = parsestatus(ndo, dp, &er);
1178 if (dp == NULL)
1182 if (v3 && !(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1185 return (parsefn(ndo, dp) != NULL);
1190 const uint32_t *dp, int v3)
1195 dp = parsestatus(ndo, dp, &er);
1196 if (dp == NULL)
1207 if (!(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1211 ND_TCHECK2(*dp, (v3 ? NFSX_V3STATFS : NFSX_V2STATFS));
1213 sfsp = (const struct nfs_statfs *)dp;
1243 const uint32_t *dp)
1247 dp = parsestatus(ndo, dp, &er);
1248 if (dp == NULL)
1255 ND_TCHECK(dp[2]);
1257 EXTRACT_32BITS(&dp[0]), EXTRACT_32BITS(&dp[1])));
1258 if (dp[2] != 0)
1268 const uint32_t *dp)
1270 ND_PRINT((ndo, " sz %" PRIu64, EXTRACT_64BITS(&dp[0])));
1272 EXTRACT_32BITS(&dp[2]), EXTRACT_32BITS(&dp[3]),
1273 EXTRACT_32BITS(&dp[4]), EXTRACT_32BITS(&dp[5])));
1274 return (dp + 6);
1282 const uint32_t *dp, int verbose)
1284 ND_TCHECK(dp[0]);
1285 if (!EXTRACT_32BITS(&dp[0]))
1286 return (dp + 1);
1287 dp++;
1288 ND_TCHECK2(*dp, 24);
1290 return parse_wcc_attr(ndo, dp);
1293 return (dp + 6);
1304 const uint32_t *dp, int verbose)
1306 ND_TCHECK(dp[0]);
1307 if (!EXTRACT_32BITS(&dp[0]))
1308 return (dp + 1);
1309 dp++;
1311 return parsefattr(ndo, dp, verbose, 1);
1313 return (dp + (NFSX_V3FATTR / sizeof (uint32_t)));
1320 const uint32_t *dp, int verbose)
1324 if (!(dp = parse_pre_op_attr(ndo, dp, verbose)))
1329 return parse_post_op_attr(ndo, dp, verbose);
1334 const uint32_t *dp, int verbose)
1338 if (!(dp = parsestatus(ndo, dp, &er)))
1341 dp = parse_wcc_data(ndo, dp, verbose);
1343 ND_TCHECK(dp[0]);
1344 if (!EXTRACT_32BITS(&dp[0]))
1345 return (dp + 1);
1346 dp++;
1347 if (!(dp = parsefh(ndo, dp, 1)))
1350 if (!(dp = parse_post_op_attr(ndo, dp, verbose)))
1354 dp = parse_wcc_data(ndo, dp, verbose);
1358 return (dp);
1365 const uint32_t *dp, int verbose)
1369 if (!(dp = parsestatus(ndo, dp, &er)))
1371 return parse_wcc_data(ndo, dp, verbose) != 0;
1376 const uint32_t *dp, int verbose)
1380 if (!(dp = parsestatus(ndo, dp, &er)))
1384 if (!(dp = parse_post_op_attr(ndo, dp, verbose)))
1387 return dp;
1389 ND_TCHECK(dp[1]);
1390 ND_PRINT((ndo, " verf %08x%08x", dp[0], dp[1]));
1391 dp += 2;
1393 return dp;
1400 const uint32_t *dp)
1405 if (!(dp = parsestatus(ndo, dp, &er)))
1409 if (!(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1414 sfp = (struct nfsv3_fsinfo *)dp;
1438 const uint32_t *dp)
1443 if (!(dp = parsestatus(ndo, dp, &er)))
1447 if (!(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1452 spp = (struct nfsv3_pathconf *)dp;
1471 register const uint32_t *dp;
1484 dp = parserep(ndo, rp, length);
1485 if (dp != NULL && parseattrstat(ndo, dp, !ndo->ndo_qflag, v3) != 0)
1490 if (!(dp = parserep(ndo, rp, length)))
1493 if (parsewccres(ndo, dp, ndo->ndo_vflag))
1496 if (parseattrstat(ndo, dp, !ndo->ndo_qflag, 0) != 0)
1502 if (!(dp = parserep(ndo, rp, length)))
1505 if (!(dp = parsestatus(ndo, dp, &er)))
1510 dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag);
1513 if (!(dp = parsefh(ndo, dp, v3)))
1515 if ((dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)) &&
1518 dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag);
1521 if (dp)
1524 if (parsediropres(ndo, dp) != 0)
1530 if (!(dp = parserep(ndo, rp, length)))
1532 if (!(dp = parsestatus(ndo, dp, &er)))
1536 if (!(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1539 ND_PRINT((ndo, " c %04x", EXTRACT_32BITS(&dp[0])));
1543 dp = parserep(ndo, rp, length);
1544 if (dp != NULL && parselinkres(ndo, dp, v3) != 0)
1549 if (!(dp = parserep(ndo, rp, length)))
1552 if (!(dp = parsestatus(ndo, dp, &er)))
1554 if (!(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1559 ND_TCHECK(dp[1]);
1560 ND_PRINT((ndo, " %u bytes", EXTRACT_32BITS(&dp[0])));
1561 if (EXTRACT_32BITS(&dp[1]))
1566 if (parseattrstat(ndo, dp, ndo->ndo_vflag, 0) != 0)
1572 if (!(dp = parserep(ndo, rp, length)))
1575 if (!(dp = parsestatus(ndo, dp, &er)))
1577 if (!(dp = parse_wcc_data(ndo, dp, ndo->ndo_vflag)))
1582 ND_TCHECK(dp[0]);
1583 ND_PRINT((ndo, " %u bytes", EXTRACT_32BITS(&dp[0])));
1585 ND_TCHECK(dp[1]);
1588 NULL, EXTRACT_32BITS(&dp[1]))));
1593 if (parseattrstat(ndo, dp, ndo->ndo_vflag, v3) != 0)
1600 if (!(dp = parserep(ndo, rp, length)))
1603 if (parsecreateopres(ndo, dp, ndo->ndo_vflag) != 0)
1606 if (parsediropres(ndo, dp) != 0)
1612 if (!(dp = parserep(ndo, rp, length)))
1615 if (parsecreateopres(ndo, dp, ndo->ndo_vflag) != 0)
1618 if (parsestatus(ndo, dp, &er) != 0)
1624 if (!(dp = parserep(ndo, rp, length)))
1626 if (parsecreateopres(ndo, dp, ndo->ndo_vflag) != 0)
1632 if (!(dp = parserep(ndo, rp, length)))
1635 if (parsewccres(ndo, dp, ndo->ndo_vflag))
1638 if (parsestatus(ndo, dp, &er) != 0)
1644 if (!(dp = parserep(ndo, rp, length)))
1647 if (!(dp = parsestatus(ndo, dp, &er)))
1651 if (!(dp = parse_wcc_data(ndo, dp, ndo->ndo_vflag)))
1654 if (!(dp = parse_wcc_data(ndo, dp, ndo->ndo_vflag)))
1659 if (parsestatus(ndo, dp, &er) != 0)
1665 if (!(dp = parserep(ndo, rp, length)))
1668 if (!(dp = parsestatus(ndo, dp, &er)))
1672 if (!(dp = parse_post_op_attr(ndo, dp, ndo->ndo_vflag)))
1675 if (!(dp = parse_wcc_data(ndo, dp, ndo->ndo_vflag)))
1680 if (parsestatus(ndo, dp, &er) != 0)
1686 if (!(dp = parserep(ndo, rp, length)))
1689 if (parsev3rddirres(ndo, dp, ndo->ndo_vflag))
1692 if (parserddires(ndo, dp) != 0)
1698 if (!(dp = parserep(ndo, rp, length)))
1700 if (parsev3rddirres(ndo, dp, ndo->ndo_vflag))
1705 dp = parserep(ndo, rp, length);
1706 if (dp != NULL && parsestatfs(ndo, dp, v3) != 0)
1711 dp = parserep(ndo, rp, length);
1712 if (dp != NULL && parsefsinfo(ndo, dp) != 0)
1717 dp = parserep(ndo, rp, length);
1718 if (dp != NULL && parsepathconf(ndo, dp) != 0)
1723 dp = parserep(ndo, rp, length);
1724 if (dp != NULL && parsewccres(ndo, dp, ndo->ndo_vflag) != 0)