Lines Matching refs:rpkt
846 struct ntp_control rpkt;
924 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
962 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
970 dump_hex_printable(&rpkt, n);
981 if (PKT_VERSION(rpkt.li_vn_mode) > NTP_VERSION
982 || PKT_VERSION(rpkt.li_vn_mode) < NTP_OLDVERSION) {
985 PKT_VERSION(rpkt.li_vn_mode));
988 if (PKT_MODE(rpkt.li_vn_mode) != MODE_CONTROL) {
991 PKT_MODE(rpkt.li_vn_mode));
994 if (!CTL_ISRESPONSE(rpkt.r_m_e_op)) {
1004 if (ntohs(rpkt.sequence) != sequence) {
1007 ntohs(rpkt.sequence), sequence);
1010 if (CTL_OP(rpkt.r_m_e_op) != opcode) {
1014 CTL_OP(rpkt.r_m_e_op), opcode);
1021 if (CTL_ISERROR(rpkt.r_m_e_op)) {
1022 errcode = (ntohs(rpkt.status) >> 8) & 0xff;
1023 if (CTL_ISMORE(rpkt.r_m_e_op))
1035 if (ntohs(rpkt.associd) != associd) {
1037 ntohs(rpkt.associd), associd));
1050 offset = ntohs(rpkt.offset);
1051 count = ntohs(rpkt.count);
1055 * boundary and no smaller than claimed by rpkt.count
1088 lpkt = (u_int32 *)&rpkt;
1101 if (authdecrypt(key, (u_int32 *)&rpkt,
1117 if (count == 0 && CTL_ISMORE(rpkt.r_m_e_op)) {
1126 if (seenlastfrag && !CTL_ISMORE(rpkt.r_m_e_op)) {
1183 if (!CTL_ISMORE(rpkt.r_m_e_op)) {
1186 *rstatus = ntohs(rpkt.status);
1193 memcpy((char *)pktdata + offset, &rpkt.u, count);