Lines Matching defs:rpkt
936 struct ntp_control rpkt;
1017 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1057 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1065 dump_hex_printable(&rpkt, n);
1076 if (PKT_VERSION(rpkt.li_vn_mode) > NTP_VERSION
1077 || PKT_VERSION(rpkt.li_vn_mode) < NTP_OLDVERSION) {
1080 PKT_VERSION(rpkt.li_vn_mode));
1083 if (PKT_MODE(rpkt.li_vn_mode) != MODE_CONTROL) {
1086 PKT_MODE(rpkt.li_vn_mode));
1089 if (!CTL_ISRESPONSE(rpkt.r_m_e_op)) {
1099 if (ntohs(rpkt.sequence) != sequence) {
1102 ntohs(rpkt.sequence), sequence);
1105 if (CTL_OP(rpkt.r_m_e_op) != opcode) {
1109 CTL_OP(rpkt.r_m_e_op), opcode);
1116 if (CTL_ISERROR(rpkt.r_m_e_op)) {
1117 errcode = (ntohs(rpkt.status) >> 8) & 0xff;
1118 if (CTL_ISMORE(rpkt.r_m_e_op))
1130 if (ntohs(rpkt.associd) != associd) {
1132 ntohs(rpkt.associd), associd));
1145 offset = ntohs(rpkt.offset);
1146 count = ntohs(rpkt.count);
1150 * boundary and no smaller than claimed by rpkt.count
1183 lpkt = (u_int32 *)&rpkt;
1196 if (authdecrypt(key, (u_int32 *)&rpkt,
1212 if (count == 0 && CTL_ISMORE(rpkt.r_m_e_op)) {
1221 if (seenlastfrag && !CTL_ISMORE(rpkt.r_m_e_op)) {
1278 if (!CTL_ISMORE(rpkt.r_m_e_op)) {
1281 *rstatus = ntohs(rpkt.status);
1288 memcpy((char *)pktdata + offset, &rpkt.u, count);