Lines Matching defs:rpkt
905 struct ntp_control rpkt;
986 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1026 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1034 dump_hex_printable(&rpkt, n);
1045 if (PKT_VERSION(rpkt.li_vn_mode) > NTP_VERSION
1046 || PKT_VERSION(rpkt.li_vn_mode) < NTP_OLDVERSION) {
1049 PKT_VERSION(rpkt.li_vn_mode));
1052 if (PKT_MODE(rpkt.li_vn_mode) != MODE_CONTROL) {
1055 PKT_MODE(rpkt.li_vn_mode));
1058 if (!CTL_ISRESPONSE(rpkt.r_m_e_op)) {
1068 if (ntohs(rpkt.sequence) != sequence) {
1071 ntohs(rpkt.sequence), sequence);
1074 if (CTL_OP(rpkt.r_m_e_op) != opcode) {
1078 CTL_OP(rpkt.r_m_e_op), opcode);
1085 if (CTL_ISERROR(rpkt.r_m_e_op)) {
1086 errcode = (ntohs(rpkt.status) >> 8) & 0xff;
1087 if (CTL_ISMORE(rpkt.r_m_e_op))
1099 if (ntohs(rpkt.associd) != associd) {
1101 ntohs(rpkt.associd), associd));
1114 offset = ntohs(rpkt.offset);
1115 count = ntohs(rpkt.count);
1119 * boundary and no smaller than claimed by rpkt.count
1152 lpkt = (u_int32 *)&rpkt;
1165 if (authdecrypt(key, (u_int32 *)&rpkt,
1181 if (count == 0 && CTL_ISMORE(rpkt.r_m_e_op)) {
1190 if (seenlastfrag && !CTL_ISMORE(rpkt.r_m_e_op)) {
1247 if (!CTL_ISMORE(rpkt.r_m_e_op)) {
1250 *rstatus = ntohs(rpkt.status);
1257 memcpy((char *)pktdata + offset, &rpkt.u, count);