Lines Matching refs:rpkt
934 struct ntp_control rpkt;
1015 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1055 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1063 dump_hex_printable(&rpkt, n);
1074 if (PKT_VERSION(rpkt.li_vn_mode) > NTP_VERSION
1075 || PKT_VERSION(rpkt.li_vn_mode) < NTP_OLDVERSION) {
1078 PKT_VERSION(rpkt.li_vn_mode));
1081 if (PKT_MODE(rpkt.li_vn_mode) != MODE_CONTROL) {
1084 PKT_MODE(rpkt.li_vn_mode));
1087 if (!CTL_ISRESPONSE(rpkt.r_m_e_op)) {
1097 if (ntohs(rpkt.sequence) != sequence) {
1100 ntohs(rpkt.sequence), sequence);
1103 if (CTL_OP(rpkt.r_m_e_op) != opcode) {
1107 CTL_OP(rpkt.r_m_e_op), opcode);
1114 if (CTL_ISERROR(rpkt.r_m_e_op)) {
1115 errcode = (ntohs(rpkt.status) >> 8) & 0xff;
1116 if (CTL_ISMORE(rpkt.r_m_e_op))
1128 if (ntohs(rpkt.associd) != associd) {
1130 ntohs(rpkt.associd), associd));
1143 offset = ntohs(rpkt.offset);
1144 count = ntohs(rpkt.count);
1148 * boundary and no smaller than claimed by rpkt.count
1181 lpkt = (u_int32 *)&rpkt;
1194 if (authdecrypt(key, (u_int32 *)&rpkt,
1210 if (count == 0 && CTL_ISMORE(rpkt.r_m_e_op)) {
1219 if (seenlastfrag && !CTL_ISMORE(rpkt.r_m_e_op)) {
1276 if (!CTL_ISMORE(rpkt.r_m_e_op)) {
1279 *rstatus = ntohs(rpkt.status);
1286 memcpy((char *)pktdata + offset, &rpkt.u, count);