Lines Matching refs:rq1
2495 static int ipsecrequests_to_migrate(struct sadb_x_ipsecrequest *rq1, int len, in ipsecrequests_to_migrate() argument
2502 if (len < sizeof(*rq1) || in ipsecrequests_to_migrate()
2503 len < rq1->sadb_x_ipsecrequest_len || in ipsecrequests_to_migrate()
2504 rq1->sadb_x_ipsecrequest_len < sizeof(*rq1)) in ipsecrequests_to_migrate()
2508 err = parse_sockaddr_pair((struct sockaddr *)(rq1 + 1), in ipsecrequests_to_migrate()
2509 rq1->sadb_x_ipsecrequest_len - sizeof(*rq1), in ipsecrequests_to_migrate()
2515 rq2 = (struct sadb_x_ipsecrequest *)((u8 *)rq1 + rq1->sadb_x_ipsecrequest_len); in ipsecrequests_to_migrate()
2516 len -= rq1->sadb_x_ipsecrequest_len; in ipsecrequests_to_migrate()
2531 if (rq1->sadb_x_ipsecrequest_proto != rq2->sadb_x_ipsecrequest_proto || in ipsecrequests_to_migrate()
2532 rq1->sadb_x_ipsecrequest_mode != rq2->sadb_x_ipsecrequest_mode || in ipsecrequests_to_migrate()
2533 rq1->sadb_x_ipsecrequest_reqid != rq2->sadb_x_ipsecrequest_reqid) in ipsecrequests_to_migrate()
2536 m->proto = rq1->sadb_x_ipsecrequest_proto; in ipsecrequests_to_migrate()
2537 if ((mode = pfkey_mode_to_xfrm(rq1->sadb_x_ipsecrequest_mode)) < 0) in ipsecrequests_to_migrate()
2540 m->reqid = rq1->sadb_x_ipsecrequest_reqid; in ipsecrequests_to_migrate()
2542 return ((int)(rq1->sadb_x_ipsecrequest_len + in ipsecrequests_to_migrate()