Lines Matching refs:rq1
2492 static int ipsecrequests_to_migrate(struct sadb_x_ipsecrequest *rq1, int len, in ipsecrequests_to_migrate() argument
2499 if (len < sizeof(*rq1) || in ipsecrequests_to_migrate()
2500 len < rq1->sadb_x_ipsecrequest_len || in ipsecrequests_to_migrate()
2501 rq1->sadb_x_ipsecrequest_len < sizeof(*rq1)) in ipsecrequests_to_migrate()
2505 err = parse_sockaddr_pair((struct sockaddr *)(rq1 + 1), in ipsecrequests_to_migrate()
2506 rq1->sadb_x_ipsecrequest_len - sizeof(*rq1), in ipsecrequests_to_migrate()
2512 rq2 = (struct sadb_x_ipsecrequest *)((u8 *)rq1 + rq1->sadb_x_ipsecrequest_len); in ipsecrequests_to_migrate()
2513 len -= rq1->sadb_x_ipsecrequest_len; in ipsecrequests_to_migrate()
2528 if (rq1->sadb_x_ipsecrequest_proto != rq2->sadb_x_ipsecrequest_proto || in ipsecrequests_to_migrate()
2529 rq1->sadb_x_ipsecrequest_mode != rq2->sadb_x_ipsecrequest_mode || in ipsecrequests_to_migrate()
2530 rq1->sadb_x_ipsecrequest_reqid != rq2->sadb_x_ipsecrequest_reqid) in ipsecrequests_to_migrate()
2533 m->proto = rq1->sadb_x_ipsecrequest_proto; in ipsecrequests_to_migrate()
2534 if ((mode = pfkey_mode_to_xfrm(rq1->sadb_x_ipsecrequest_mode)) < 0) in ipsecrequests_to_migrate()
2537 m->reqid = rq1->sadb_x_ipsecrequest_reqid; in ipsecrequests_to_migrate()
2539 return ((int)(rq1->sadb_x_ipsecrequest_len + in ipsecrequests_to_migrate()