blob: cf12e94e08b3a20f1c99c35eacf37ab6039e3014 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* Copyright (C) CZ.NIC, z.s.p.o. <knot-resolver@labs.nic.cz>
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#include "lib/proto.h"
const char *kr_proto_name(enum kr_proto p)
{
switch (p) {
case KR_PROTO_INTERNAL:
return "INTERNAL";
#define XX(cid, vid, name) case KR_PROTO_##cid: \
return (name);
KR_PROTO_MAP(XX)
#undef XX
default:
return "(default)";
}
}
|