Lines Matching refs:ru
1520 isakmp_info_recv_r_u (iph1, ru, msgid)
1522 struct isakmp_pl_ru *ru;
1550 memcpy(ru_ack->i_ck, ru->i_ck, sizeof(cookie_t));
1551 memcpy(ru_ack->r_ck, ru->r_ck, sizeof(cookie_t));
1552 ru_ack->data = ru->data;
1566 isakmp_info_recv_r_u_ack (iph1, ru, msgid)
1568 struct isakmp_pl_ru *ru;
1576 * => ru->data <= iph2->dpd_seq &&
1577 * ru->data >= iph2->dpd_seq - iph2->dpd_fails ? */
1578 if (ntohl(ru->data) != iph1->dpd_seq-1) {
1581 ntohl(ru->data), iph1->dpd_seq-1);
1585 if (memcmp(ru->i_ck, iph1->index.i_ck, sizeof(cookie_t)) ||
1586 memcmp(ru->r_ck, iph1->index.r_ck, sizeof(cookie_t))) {
1619 struct isakmp_pl_ru *ru;
1645 tlen = sizeof(*ru);
1652 ru = (struct isakmp_pl_ru *)payload->v;
1653 ru->h.np = ISAKMP_NPTYPE_NONE;
1654 ru->h.len = htons(tlen);
1655 ru->doi = htonl(IPSEC_DOI);
1656 ru->type = htons(ISAKMP_NTYPE_R_U_THERE);
1657 ru->proto_id = IPSECDOI_PROTO_ISAKMP; /* XXX ?*/
1658 ru->spi_size = sizeof(isakmp_index);
1660 memcpy(ru->i_ck, iph1->index.i_ck, sizeof(cookie_t));
1661 memcpy(ru->r_ck, iph1->index.r_ck, sizeof(cookie_t));
1669 ru->data = htonl(iph1->dpd_seq);