Lines Matching refs:bp
524 register const u_char *bp, int length, int sport, int dport, in rx_print() argument
531 if (ndo->ndo_snapend - bp < (int)sizeof (struct rx_header)) { in rx_print()
536 rxh = (struct rx_header *) bp; in rx_print()
591 rx_cache_insert(ndo, bp, (const struct ip *) bp2, dport); in rx_print()
595 fs_print(ndo, bp, length); in rx_print()
598 cb_print(ndo, bp, length); in rx_print()
601 prot_print(ndo, bp, length); in rx_print()
604 vldb_print(ndo, bp, length); in rx_print()
607 kauth_print(ndo, bp, length); in rx_print()
610 vol_print(ndo, bp, length); in rx_print()
613 bos_print(ndo, bp, length); in rx_print()
635 fs_reply_print(ndo, bp, length, opcode); in rx_print()
638 cb_reply_print(ndo, bp, length, opcode); in rx_print()
641 prot_reply_print(ndo, bp, length, opcode); in rx_print()
644 vldb_reply_print(ndo, bp, length, opcode); in rx_print()
647 kauth_reply_print(ndo, bp, length, opcode); in rx_print()
650 vol_reply_print(ndo, bp, length, opcode); in rx_print()
653 bos_reply_print(ndo, bp, length, opcode); in rx_print()
666 rx_ack_print(ndo, bp, length); in rx_print()
678 const u_char *bp, const struct ip *ip, int dport) in rx_cache_insert() argument
681 const struct rx_header *rxh = (const struct rx_header *) bp; in rx_cache_insert()
683 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) in rx_cache_insert()
696 rxent->opcode = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in rx_cache_insert()
745 ND_TCHECK2(bp[0], sizeof(int32_t) * 3); \
746 n1 = EXTRACT_32BITS(bp); \
747 bp += sizeof(int32_t); \
748 n2 = EXTRACT_32BITS(bp); \
749 bp += sizeof(int32_t); \
750 n3 = EXTRACT_32BITS(bp); \
751 bp += sizeof(int32_t); \
756 ND_TCHECK2(bp[0], sizeof(int32_t)); \
757 i = EXTRACT_32BITS(bp); \
760 bp += sizeof(int32_t); \
762 if (fn_printn(ndo, bp, i, ndo->ndo_snapend)) \
765 bp += ((i + sizeof(int32_t) - 1) / sizeof(int32_t)) * sizeof(int32_t); \
769 ND_TCHECK2(bp[0], sizeof(int32_t)); \
770 i = (int) EXTRACT_32BITS(bp); \
771 bp += sizeof(int32_t); \
776 ND_TCHECK2(bp[0], sizeof(int32_t)); \
777 i = EXTRACT_32BITS(bp); \
778 bp += sizeof(int32_t); \
783 ND_TCHECK2(bp[0], sizeof(uint64_t)); \
784 i = EXTRACT_64BITS(bp); \
785 bp += sizeof(uint64_t); \
790 ND_TCHECK2(bp[0], sizeof(int32_t)); \
791 t = (time_t) EXTRACT_32BITS(bp); \
792 bp += sizeof(int32_t); \
799 ND_TCHECK2(bp[0], (sizeof(int32_t)*6)); \
800 mask = EXTRACT_32BITS(bp); bp += sizeof(int32_t); \
803 else bp += sizeof(int32_t); \
804 i = EXTRACT_32BITS(bp); bp += sizeof(int32_t); \
806 i = EXTRACT_32BITS(bp); bp += sizeof(int32_t); \
808 i = EXTRACT_32BITS(bp); bp += sizeof(int32_t); \
810 i = EXTRACT_32BITS(bp); bp += sizeof(int32_t); \
817 ND_TCHECK2(bp[0], sizeof(int32_t) * 2); \
818 epoch = EXTRACT_32BITS(bp); \
819 bp += sizeof(int32_t); \
820 counter = EXTRACT_32BITS(bp); \
821 bp += sizeof(int32_t); \
826 ND_TCHECK2(bp[0], 11*sizeof(uint32_t)); \
827 temp = EXTRACT_32BITS(bp); \
828 bp += sizeof(uint32_t); \
830 temp = EXTRACT_32BITS(bp); \
831 bp += sizeof(uint32_t); \
833 temp = EXTRACT_32BITS(bp); \
834 bp += sizeof(uint32_t); \
837 temp = EXTRACT_32BITS(bp); \
838 bp += sizeof(uint32_t); \
852 ND_TCHECK2(bp[0], (MAX) * sizeof(int32_t)); \
855 *sp++ = (u_char) EXTRACT_32BITS(bp); \
856 bp += sizeof(int32_t); \
865 ND_TCHECK2(bp[0], sizeof(int32_t) * 3); \
866 n1 = EXTRACT_32BITS(bp); \
867 bp += sizeof(int32_t); \
868 n2 = EXTRACT_32BITS(bp); \
869 bp += sizeof(int32_t); \
870 n3 = EXTRACT_32BITS(bp); \
871 bp += sizeof(int32_t); \
881 register const u_char *bp, int length) in fs_print() argument
889 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in fs_print()
898 fs_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in fs_print()
907 bp += sizeof(struct rx_header) + 4; in fs_print()
949 ND_TCHECK2(bp[0], 4); in fs_print()
950 i = EXTRACT_32BITS(bp); in fs_print()
951 bp += sizeof(int32_t); in fs_print()
952 ND_TCHECK2(bp[0], i); in fs_print()
954 strncpy(a, (char *) bp, i); in fs_print()
1006 ND_TCHECK2(bp[0], 4); in fs_print()
1007 j = EXTRACT_32BITS(bp); in fs_print()
1008 bp += sizeof(int32_t); in fs_print()
1054 register const u_char *bp, int length, int32_t opcode) in fs_reply_print() argument
1062 rxh = (struct rx_header *) bp; in fs_reply_print()
1071 bp += sizeof(struct rx_header); in fs_reply_print()
1082 ND_TCHECK2(bp[0], 4); in fs_reply_print()
1083 i = EXTRACT_32BITS(bp); in fs_reply_print()
1084 bp += sizeof(int32_t); in fs_reply_print()
1085 ND_TCHECK2(bp[0], i); in fs_reply_print()
1087 strncpy(a, (char *) bp, i); in fs_reply_print()
1113 ND_TCHECK2(bp[0], sizeof(int32_t)); in fs_reply_print()
1114 i = (int) EXTRACT_32BITS(bp); in fs_reply_print()
1115 bp += sizeof(int32_t); in fs_reply_print()
1217 register const u_char *bp, int length) in cb_print() argument
1225 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in cb_print()
1234 cb_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in cb_print()
1238 bp += sizeof(struct rx_header) + 4; in cb_print()
1249 ND_TCHECK2(bp[0], 4); in cb_print()
1250 j = EXTRACT_32BITS(bp); in cb_print()
1251 bp += sizeof(int32_t); in cb_print()
1262 j = EXTRACT_32BITS(bp); in cb_print()
1263 bp += sizeof(int32_t); in cb_print()
1273 ND_TCHECK2(bp[0], 4); in cb_print()
1274 t = EXTRACT_32BITS(bp); in cb_print()
1275 bp += sizeof(int32_t); in cb_print()
1300 register const u_char *bp, int length, int32_t opcode) in cb_reply_print() argument
1307 rxh = (struct rx_header *) bp; in cb_reply_print()
1316 bp += sizeof(struct rx_header); in cb_reply_print()
1350 register const u_char *bp, int length) in prot_print() argument
1358 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in prot_print()
1367 pt_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in prot_print()
1372 ubik_print(ndo, bp); in prot_print()
1382 bp += sizeof(struct rx_header) + 4; in prot_print()
1419 ND_TCHECK2(bp[0], 4); in prot_print()
1420 j = EXTRACT_32BITS(bp); in prot_print()
1421 bp += sizeof(int32_t); in prot_print()
1441 ND_TCHECK2(bp[0], 4); in prot_print()
1442 i = EXTRACT_32BITS(bp); in prot_print()
1443 bp += sizeof(int32_t); in prot_print()
1494 register const u_char *bp, int length, int32_t opcode) in prot_reply_print() argument
1502 rxh = (struct rx_header *) bp; in prot_reply_print()
1513 ubik_reply_print(ndo, bp, length, opcode); in prot_reply_print()
1519 bp += sizeof(struct rx_header); in prot_reply_print()
1531 ND_TCHECK2(bp[0], 4); in prot_reply_print()
1532 i = EXTRACT_32BITS(bp); in prot_reply_print()
1533 bp += sizeof(int32_t); in prot_reply_print()
1543 ND_TCHECK2(bp[0], 4); in prot_reply_print()
1544 j = EXTRACT_32BITS(bp); in prot_reply_print()
1545 bp += sizeof(int32_t); in prot_reply_print()
1568 ND_TCHECK2(bp[0], 4); in prot_reply_print()
1569 j = EXTRACT_32BITS(bp); in prot_reply_print()
1570 bp += sizeof(int32_t); in prot_reply_print()
1607 register const u_char *bp, int length) in vldb_print() argument
1615 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in vldb_print()
1624 vldb_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in vldb_print()
1629 ubik_print(ndo, bp); in vldb_print()
1638 bp += sizeof(struct rx_header) + 4; in vldb_print()
1653 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_print()
1654 i = EXTRACT_32BITS(bp); in vldb_print()
1655 bp += sizeof(int32_t); in vldb_print()
1673 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_print()
1674 i = EXTRACT_32BITS(bp); in vldb_print()
1675 bp += sizeof(int32_t); in vldb_print()
1701 register const u_char *bp, int length, int32_t opcode) in vldb_reply_print() argument
1709 rxh = (struct rx_header *) bp; in vldb_reply_print()
1720 ubik_reply_print(ndo, bp, length, opcode); in vldb_reply_print()
1726 bp += sizeof(struct rx_header); in vldb_reply_print()
1743 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1744 bp += sizeof(int32_t); in vldb_reply_print()
1746 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1747 nservers = EXTRACT_32BITS(bp); in vldb_reply_print()
1748 bp += sizeof(int32_t); in vldb_reply_print()
1752 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1755 intoa(((struct in_addr *) bp)->s_addr))); in vldb_reply_print()
1756 bp += sizeof(int32_t); in vldb_reply_print()
1760 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1761 j = EXTRACT_32BITS(bp); in vldb_reply_print()
1766 bp += sizeof(int32_t); in vldb_reply_print()
1768 ND_TCHECK2(bp[0], 8 * sizeof(int32_t)); in vldb_reply_print()
1769 bp += 8 * sizeof(int32_t); in vldb_reply_print()
1793 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1794 nservers = EXTRACT_32BITS(bp); in vldb_reply_print()
1795 bp += sizeof(int32_t); in vldb_reply_print()
1799 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1802 intoa(((struct in_addr *) bp)->s_addr))); in vldb_reply_print()
1803 bp += sizeof(int32_t); in vldb_reply_print()
1807 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1808 j = EXTRACT_32BITS(bp); in vldb_reply_print()
1813 bp += sizeof(int32_t); in vldb_reply_print()
1815 ND_TCHECK2(bp[0], 13 * sizeof(int32_t)); in vldb_reply_print()
1816 bp += 13 * sizeof(int32_t); in vldb_reply_print()
1830 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1831 nservers = EXTRACT_32BITS(bp); in vldb_reply_print()
1832 bp += sizeof(int32_t); in vldb_reply_print()
1840 ND_TCHECK2(bp[0], 44); in vldb_reply_print()
1841 bp += 44; in vldb_reply_print()
1844 ND_TCHECK2(bp[0], 4 * 13); in vldb_reply_print()
1845 bp += 4 * 13; in vldb_reply_print()
1848 ND_TCHECK2(bp[0], sizeof(int32_t)); in vldb_reply_print()
1849 j = EXTRACT_32BITS(bp); in vldb_reply_print()
1854 bp += sizeof(int32_t); in vldb_reply_print()
1856 ND_TCHECK2(bp[0], 13 * sizeof(int32_t)); in vldb_reply_print()
1857 bp += 13 * sizeof(int32_t); in vldb_reply_print()
1889 register const u_char *bp, int length) in kauth_print() argument
1896 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in kauth_print()
1905 kauth_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in kauth_print()
1910 ubik_print(ndo, bp); in kauth_print()
1921 bp += sizeof(struct rx_header) + 4; in kauth_print()
1946 ND_TCHECK2(bp[0], sizeof(int32_t)); in kauth_print()
1947 i = (int) EXTRACT_32BITS(bp); in kauth_print()
1948 bp += sizeof(int32_t); in kauth_print()
1949 ND_TCHECK2(bp[0], i); in kauth_print()
1950 bp += i; in kauth_print()
1983 register const u_char *bp, int length, int32_t opcode) in kauth_reply_print() argument
1990 rxh = (struct rx_header *) bp; in kauth_reply_print()
2000 ubik_reply_print(ndo, bp, length, opcode); in kauth_reply_print()
2006 bp += sizeof(struct rx_header); in kauth_reply_print()
2035 register const u_char *bp, int length) in vol_print() argument
2042 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in vol_print()
2051 vol_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in vol_print()
2055 bp += sizeof(struct rx_header) + 4; in vol_print()
2202 ND_TCHECK2(bp[0], 4); in vol_print()
2203 j = EXTRACT_32BITS(bp); in vol_print()
2204 bp += sizeof(int32_t); in vol_print()
2237 register const u_char *bp, int length, int32_t opcode) in vol_reply_print() argument
2244 rxh = (struct rx_header *) bp; in vol_reply_print()
2253 bp += sizeof(struct rx_header); in vol_reply_print()
2330 ND_TCHECK2(bp[0], 4); in vol_reply_print()
2331 j = EXTRACT_32BITS(bp); in vol_reply_print()
2332 bp += sizeof(int32_t); in vol_reply_print()
2339 bp += sizeof(int32_t) * 21; in vol_reply_print()
2372 register const u_char *bp, int length) in bos_print() argument
2379 if (ndo->ndo_snapend - bp + 1 <= (int)(sizeof(struct rx_header) + sizeof(int32_t))) { in bos_print()
2388 bos_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in bos_print()
2396 bp += sizeof(struct rx_header) + 4; in bos_print()
2464 register const u_char *bp, int length, int32_t opcode) in bos_reply_print() argument
2471 rxh = (struct rx_header *) bp; in bos_reply_print()
2480 bp += sizeof(struct rx_header); in bos_reply_print()
2523 register const u_char *bp) in ubik_print() argument
2533 ubik_op = EXTRACT_32BITS(bp + sizeof(struct rx_header)); in ubik_print()
2541 bp += sizeof(struct rx_header) + 4; in ubik_print()
2545 ND_TCHECK2(bp[0], 4); in ubik_print()
2546 temp = EXTRACT_32BITS(bp); in ubik_print()
2547 bp += sizeof(int32_t); in ubik_print()
2577 temp = EXTRACT_32BITS(bp); in ubik_print()
2578 bp += sizeof(int32_t); in ubik_print()
2633 register const u_char *bp, int length, int32_t opcode) in ubik_reply_print() argument
2640 rxh = (struct rx_header *) bp; in ubik_reply_print()
2649 bp += sizeof(struct rx_header); in ubik_reply_print()
2697 register const u_char *bp, int length) in rx_ack_print() argument
2706 bp += sizeof(struct rx_header); in rx_ack_print()
2716 ND_TCHECK2(bp[0], sizeof(struct rx_ackPacket) - RX_MAXACKS); in rx_ack_print()
2718 rxa = (struct rx_ackPacket *) bp; in rx_ack_print()
2719 bp += (sizeof(struct rx_ackPacket) - RX_MAXACKS); in rx_ack_print()
2756 ND_TCHECK2(bp[0], rxa->nAcks); in rx_ack_print()
2850 bp += rxa->nAcks; in rx_ack_print()
2859 #define TRUNCRET(n) if (ndo->ndo_snapend - bp + 1 <= n) return; in rx_ack_print()