Commit 97378c8a authored by Marek Vavruša's avatar Marek Vavruša

rplan: switched parameters

parent 8f094b8b
......@@ -208,7 +208,7 @@ static int resolve_auth(knot_pkt_t *pkt, struct kr_layer_param *param)
/* Follow canonical name as next SNAME. */
if (cname != cur->sname) {
struct kr_query *next = kr_rplan_push(&resolve->rplan, cname,
cur->stype, cur->sclass);
cur->sclass, cur->stype);
if (next == NULL) {
return NS_PROC_FAIL;
}
......
......@@ -42,7 +42,7 @@ void kr_rplan_clear(struct kr_rplan *rplan)
}
struct kr_query *kr_rplan_push(struct kr_rplan *rplan, const knot_dname_t *name,
uint16_t type, uint16_t cls)
uint16_t cls, uint16_t type)
{
struct kr_query *qry = query_create(rplan->pool, name);
if (qry == NULL) {
......
......@@ -40,8 +40,8 @@ struct kr_rplan {
void kr_rplan_init(struct kr_rplan *rplan, mm_ctx_t *pool);
void kr_rplan_clear(struct kr_rplan *rplan);
struct kr_query *kr_rplan_push(struct kr_rplan *rplan, const knot_dname_t *name,
uint16_t type, uint16_t cls);
struct kr_query *kr_rplan_push(struct kr_rplan *rplan, const knot_dname_t *name, uint16_t cls,
uint16_t type);
int kr_rplan_pop(struct kr_rplan *rplan, struct kr_query *qry);
struct kr_query *kr_rplan_next(struct kr_rplan *rplan);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment