Lines Matching defs:rpkt
886 struct ntp_control rpkt;
967 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1007 n = recv(sockfd, (char *)&rpkt, sizeof(rpkt), 0);
1015 dump_hex_printable(&rpkt, n);
1026 if (PKT_VERSION(rpkt.li_vn_mode) > NTP_VERSION
1027 || PKT_VERSION(rpkt.li_vn_mode) < NTP_OLDVERSION) {
1030 PKT_VERSION(rpkt.li_vn_mode));
1033 if (PKT_MODE(rpkt.li_vn_mode) != MODE_CONTROL) {
1036 PKT_MODE(rpkt.li_vn_mode));
1039 if (!CTL_ISRESPONSE(rpkt.r_m_e_op)) {
1049 if (ntohs(rpkt.sequence) != sequence) {
1052 ntohs(rpkt.sequence), sequence);
1055 if (CTL_OP(rpkt.r_m_e_op) != opcode) {
1059 CTL_OP(rpkt.r_m_e_op), opcode);
1066 if (CTL_ISERROR(rpkt.r_m_e_op)) {
1067 errcode = (ntohs(rpkt.status) >> 8) & 0xff;
1068 if (CTL_ISMORE(rpkt.r_m_e_op))
1080 if (ntohs(rpkt.associd) != associd) {
1082 ntohs(rpkt.associd), associd));
1095 offset = ntohs(rpkt.offset);
1096 count = ntohs(rpkt.count);
1100 * boundary and no smaller than claimed by rpkt.count
1133 lpkt = (u_int32 *)&rpkt;
1146 if (authdecrypt(key, (u_int32 *)&rpkt,
1162 if (count == 0 && CTL_ISMORE(rpkt.r_m_e_op)) {
1171 if (seenlastfrag && !CTL_ISMORE(rpkt.r_m_e_op)) {
1228 if (!CTL_ISMORE(rpkt.r_m_e_op)) {
1231 *rstatus = ntohs(rpkt.status);
1238 memcpy((char *)pktdata + offset, &rpkt.u, count);