File: cookiemonster.h

package info (click to toggle)
knot-resolver 5.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 14,976 kB
  • sloc: javascript: 42,732; ansic: 34,752; python: 4,225; cpp: 2,110; sh: 1,887; makefile: 199; xml: 193
file content (15 lines) | stat: -rw-r--r-- 432 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*  Copyright (C) CZ.NIC, z.s.p.o. <knot-resolver@labs.nic.cz>
 *  SPDX-License-Identifier: GPL-3.0-or-later
 */

#pragma once

#include <libknot/packet/pkt.h>

#include "lib/layer.h"

/** Checks cookies of inbound requests.  It's for kr_layer_api_t::begin. */
int check_request(kr_layer_t *ctx);

/** Checks cookies of received responses.  It's for kr_layer_api_t::consume. */
int check_response(kr_layer_t *ctx, knot_pkt_t *pkt);