Lines Matching refs:bp

532          const u_char *bp, u_int length, uint16_t sport, uint16_t dport,  in rx_print()  argument
541 if (!ND_TTEST_LEN(bp, sizeof(struct rx_header))) { in rx_print()
546 rxh = (const struct rx_header *) bp; in rx_print()
603 rx_cache_insert(ndo, bp, (const struct ip *) bp2, dport); in rx_print()
607 fs_print(ndo, bp, length); in rx_print()
610 cb_print(ndo, bp, length); in rx_print()
613 prot_print(ndo, bp, length); in rx_print()
616 vldb_print(ndo, bp, length); in rx_print()
619 kauth_print(ndo, bp, length); in rx_print()
622 vol_print(ndo, bp, length); in rx_print()
625 bos_print(ndo, bp, length); in rx_print()
647 fs_reply_print(ndo, bp, length, opcode); in rx_print()
650 cb_reply_print(ndo, bp, length, opcode); in rx_print()
653 prot_reply_print(ndo, bp, length, opcode); in rx_print()
656 vldb_reply_print(ndo, bp, length, opcode); in rx_print()
659 kauth_reply_print(ndo, bp, length, opcode); in rx_print()
662 vol_reply_print(ndo, bp, length, opcode); in rx_print()
665 bos_reply_print(ndo, bp, length, opcode); in rx_print()
678 rx_ack_print(ndo, bp, length); in rx_print()
690 const u_char *bp, const struct ip *ip, uint16_t dport) in rx_cache_insert() argument
693 const struct rx_header *rxh = (const struct rx_header *) bp; in rx_cache_insert()
695 if (!ND_TTEST_4(bp + sizeof(struct rx_header))) in rx_cache_insert()
708 rxent->opcode = GET_BE_U_4(bp + sizeof(struct rx_header)); in rx_cache_insert()
760 ND_TCHECK_LEN(bp, sizeof(uint32_t) * 3); \
761 n1 = GET_BE_U_4(bp); \
762 bp += sizeof(uint32_t); \
763 n2 = GET_BE_U_4(bp); \
764 bp += sizeof(uint32_t); \
765 n3 = GET_BE_U_4(bp); \
766 bp += sizeof(uint32_t); \
771 _i = GET_BE_U_4(bp); \
774 bp += sizeof(uint32_t); \
776 if (nd_printn(ndo, bp, _i, ndo->ndo_snapend)) \
779bp += ((_i + sizeof(uint32_t) - 1) / sizeof(uint32_t)) * sizeof(uint32_t); \
783 _i = GET_BE_S_4(bp); \
784 bp += sizeof(int32_t); \
789 _i = GET_BE_U_4(bp); \
790 bp += sizeof(uint32_t); \
795 _i = GET_BE_U_8(bp); \
796 bp += sizeof(uint64_t); \
801 _t = (time_t) GET_BE_S_4(bp); \
802 bp += sizeof(int32_t); \
809 ND_TCHECK_LEN(bp, (sizeof(uint32_t) * 6)); \
810 mask = GET_BE_U_4(bp); bp += sizeof(uint32_t); \
813 else bp += sizeof(uint32_t); \
814 _i = GET_BE_U_4(bp); bp += sizeof(uint32_t); \
816 _i = GET_BE_U_4(bp); bp += sizeof(uint32_t); \
818 _i = GET_BE_U_4(bp); bp += sizeof(uint32_t); \
820 _i = GET_BE_U_4(bp); bp += sizeof(uint32_t); \
827 ND_TCHECK_LEN(bp, sizeof(uint32_t) * 2); \
828 epoch = GET_BE_U_4(bp); \
829 bp += sizeof(uint32_t); \
830 counter = GET_BE_U_4(bp); \
831 bp += sizeof(uint32_t); \
836 ND_TCHECK_LEN(bp, 11 * sizeof(uint32_t)); \
837 temp = GET_BE_U_4(bp); \
838 bp += sizeof(uint32_t); \
840 temp = GET_BE_U_4(bp); \
841 bp += sizeof(uint32_t); \
843 temp = GET_BE_U_4(bp); \
844 bp += sizeof(uint32_t); \
847 temp = GET_BE_U_4(bp); \
848 bp += sizeof(uint32_t); \
861 ND_TCHECK_LEN(bp, (MAX) * sizeof(uint32_t)); \
864 *sp++ = (u_char) GET_BE_U_4(bp); \
865 bp += sizeof(uint32_t); \
874 ND_TCHECK_LEN(bp, sizeof(uint32_t) * 3); \
875 n1 = GET_BE_U_4(bp); \
876 bp += sizeof(uint32_t); \
877 n2 = GET_BE_U_4(bp); \
878 bp += sizeof(uint32_t); \
879 n3 = GET_BE_U_4(bp); \
880 bp += sizeof(uint32_t); \
890 const u_char *bp, u_int length) in fs_print() argument
903 fs_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in fs_print()
912 bp += sizeof(struct rx_header) + 4; in fs_print()
954 i = GET_BE_U_4(bp); in fs_print()
955 bp += sizeof(uint32_t); in fs_print()
956 ND_TCHECK_LEN(bp, i); in fs_print()
958 strncpy(a, (const char *) bp, i); in fs_print()
1010 j = GET_BE_U_4(bp); in fs_print()
1011 bp += sizeof(uint32_t); in fs_print()
1058 const u_char *bp, u_int length, uint32_t opcode) in fs_reply_print() argument
1067 rxh = (const struct rx_header *) bp; in fs_reply_print()
1077 bp += sizeof(struct rx_header); in fs_reply_print()
1088 i = GET_BE_U_4(bp); in fs_reply_print()
1089 bp += sizeof(uint32_t); in fs_reply_print()
1090 ND_TCHECK_LEN(bp, i); in fs_reply_print()
1092 strncpy(a, (const char *) bp, i); in fs_reply_print()
1118 errcode = GET_BE_S_4(bp); in fs_reply_print()
1119 bp += sizeof(int32_t); in fs_reply_print()
1214 const u_char *bp, u_int length) in cb_print() argument
1227 cb_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in cb_print()
1231 bp += sizeof(struct rx_header) + 4; in cb_print()
1242 j = GET_BE_U_4(bp); in cb_print()
1243 bp += sizeof(uint32_t); in cb_print()
1254 j = GET_BE_U_4(bp); in cb_print()
1255 bp += sizeof(uint32_t); in cb_print()
1265 t = GET_BE_U_4(bp); in cb_print()
1266 bp += sizeof(uint32_t); in cb_print()
1292 const u_char *bp, u_int length, uint32_t opcode) in cb_reply_print() argument
1300 rxh = (const struct rx_header *) bp; in cb_reply_print()
1310 bp += sizeof(struct rx_header); in cb_reply_print()
1344 const u_char *bp, u_int length) in prot_print() argument
1357 pt_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in prot_print()
1362 ubik_print(ndo, bp); in prot_print()
1372 bp += sizeof(struct rx_header) + 4; in prot_print()
1409 j = GET_BE_U_4(bp); in prot_print()
1410 bp += sizeof(uint32_t); in prot_print()
1430 i = GET_BE_U_4(bp); in prot_print()
1431 bp += sizeof(uint32_t); in prot_print()
1482 const u_char *bp, u_int length, uint32_t opcode) in prot_reply_print() argument
1491 rxh = (const struct rx_header *) bp; in prot_reply_print()
1502 ubik_reply_print(ndo, bp, length, opcode); in prot_reply_print()
1509 bp += sizeof(struct rx_header); in prot_reply_print()
1521 i = GET_BE_U_4(bp); in prot_reply_print()
1522 bp += sizeof(uint32_t); in prot_reply_print()
1532 j = GET_BE_U_4(bp); in prot_reply_print()
1533 bp += sizeof(uint32_t); in prot_reply_print()
1556 j = GET_BE_U_4(bp); in prot_reply_print()
1557 bp += sizeof(uint32_t); in prot_reply_print()
1594 const u_char *bp, u_int length) in vldb_print() argument
1607 vldb_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in vldb_print()
1612 ubik_print(ndo, bp); in vldb_print()
1621 bp += sizeof(struct rx_header) + 4; in vldb_print()
1636 i = GET_BE_U_4(bp); in vldb_print()
1637 bp += sizeof(uint32_t); in vldb_print()
1655 i = GET_BE_U_4(bp); in vldb_print()
1656 bp += sizeof(uint32_t); in vldb_print()
1682 const u_char *bp, u_int length, uint32_t opcode) in vldb_reply_print() argument
1691 rxh = (const struct rx_header *) bp; in vldb_reply_print()
1702 ubik_reply_print(ndo, bp, length, opcode); in vldb_reply_print()
1709 bp += sizeof(struct rx_header); in vldb_reply_print()
1727 ND_TCHECK_4(bp); in vldb_reply_print()
1728 bp += sizeof(uint32_t); in vldb_reply_print()
1730 nservers = GET_BE_U_4(bp); in vldb_reply_print()
1731 bp += sizeof(uint32_t); in vldb_reply_print()
1735 ND_TCHECK_4(bp); in vldb_reply_print()
1738 intoa(GET_IPV4_TO_NETWORK_ORDER(bp))); in vldb_reply_print()
1739 bp += sizeof(nd_ipv4); in vldb_reply_print()
1743 j = GET_BE_U_4(bp); in vldb_reply_print()
1748 bp += sizeof(uint32_t); in vldb_reply_print()
1750 ND_TCHECK_LEN(bp, 8 * sizeof(uint32_t)); in vldb_reply_print()
1751 bp += 8 * sizeof(uint32_t); in vldb_reply_print()
1776 nservers = GET_BE_U_4(bp); in vldb_reply_print()
1777 bp += sizeof(uint32_t); in vldb_reply_print()
1781 ND_TCHECK_4(bp); in vldb_reply_print()
1784 intoa(GET_IPV4_TO_NETWORK_ORDER(bp))); in vldb_reply_print()
1785 bp += sizeof(nd_ipv4); in vldb_reply_print()
1789 j = GET_BE_U_4(bp); in vldb_reply_print()
1794 bp += sizeof(uint32_t); in vldb_reply_print()
1796 ND_TCHECK_LEN(bp, 13 * sizeof(uint32_t)); in vldb_reply_print()
1797 bp += 13 * sizeof(uint32_t); in vldb_reply_print()
1811 nservers = GET_BE_U_4(bp); in vldb_reply_print()
1812 bp += sizeof(uint32_t); in vldb_reply_print()
1820 ND_TCHECK_LEN(bp, 44); in vldb_reply_print()
1821 bp += 44; in vldb_reply_print()
1824 ND_TCHECK_LEN(bp, 4 * 13); in vldb_reply_print()
1825 bp += 4 * 13; in vldb_reply_print()
1828 j = GET_BE_U_4(bp); in vldb_reply_print()
1833 bp += sizeof(uint32_t); in vldb_reply_print()
1835 ND_TCHECK_LEN(bp, 13 * sizeof(uint32_t)); in vldb_reply_print()
1836 bp += 13 * sizeof(uint32_t); in vldb_reply_print()
1868 const u_char *bp, u_int length) in kauth_print() argument
1880 kauth_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in kauth_print()
1885 ubik_print(ndo, bp); in kauth_print()
1896 bp += sizeof(struct rx_header) + 4; in kauth_print()
1921 i = GET_BE_U_4(bp); in kauth_print()
1922 bp += sizeof(uint32_t); in kauth_print()
1923 ND_TCHECK_LEN(bp, i); in kauth_print()
1924 bp += i; in kauth_print()
1957 const u_char *bp, u_int length, uint32_t opcode) in kauth_reply_print() argument
1965 rxh = (const struct rx_header *) bp; in kauth_reply_print()
1975 ubik_reply_print(ndo, bp, length, opcode); in kauth_reply_print()
1982 bp += sizeof(struct rx_header); in kauth_reply_print()
2006 const u_char *bp, u_int length) in vol_print() argument
2018 vol_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in vol_print()
2022 bp += sizeof(struct rx_header) + 4; in vol_print()
2169 j = GET_BE_U_4(bp); in vol_print()
2170 bp += sizeof(uint32_t); in vol_print()
2203 const u_char *bp, u_int length, uint32_t opcode) in vol_reply_print() argument
2211 rxh = (const struct rx_header *) bp; in vol_reply_print()
2221 bp += sizeof(struct rx_header); in vol_reply_print()
2298 j = GET_BE_U_4(bp); in vol_reply_print()
2299 bp += sizeof(uint32_t); in vol_reply_print()
2306 bp += sizeof(uint32_t) * 21; in vol_reply_print()
2339 const u_char *bp, u_int length) in bos_print() argument
2351 bos_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in bos_print()
2359 bp += sizeof(struct rx_header) + 4; in bos_print()
2427 const u_char *bp, u_int length, uint32_t opcode) in bos_reply_print() argument
2435 rxh = (const struct rx_header *) bp; in bos_reply_print()
2445 bp += sizeof(struct rx_header); in bos_reply_print()
2483 const u_char *bp) in ubik_print() argument
2497 ubik_op = GET_BE_U_4(bp + sizeof(struct rx_header)); in ubik_print()
2505 bp += sizeof(struct rx_header) + 4; in ubik_print()
2509 temp = GET_BE_U_4(bp); in ubik_print()
2510 bp += sizeof(uint32_t); in ubik_print()
2540 temp = GET_BE_U_4(bp); in ubik_print()
2541 bp += sizeof(uint32_t); in ubik_print()
2596 const u_char *bp, u_int length, uint32_t opcode) in ubik_reply_print() argument
2604 rxh = (const struct rx_header *) bp; in ubik_reply_print()
2614 bp += sizeof(struct rx_header); in ubik_reply_print()
2662 const u_char *bp, u_int length) in rx_ack_print() argument
2672 bp += sizeof(struct rx_header); in rx_ack_print()
2674 ND_TCHECK_LEN(bp, sizeof(struct rx_ackPacket)); in rx_ack_print()
2676 rxa = (const struct rx_ackPacket *) bp; in rx_ack_print()
2677 bp += sizeof(struct rx_ackPacket); in rx_ack_print()
2715 ND_TCHECK_LEN(bp, nAcks); in rx_ack_print()
2723 if (GET_U_1(bp + i) == RX_ACK_TYPE_ACK) { in rx_ack_print()
2794 if (GET_U_1(bp + i) == RX_ACK_TYPE_NACK) { in rx_ack_print()
2809 bp += nAcks; in rx_ack_print()
2813 bp += 3; in rx_ack_print()
2820 #define TRUNCRET(n) if (ndo->ndo_snapend - bp + 1 <= n) return; in rx_ack_print()