http://sjnrk23rmcl4ie5atmz664v7o7k5nkk4jh7mm6lor2n4hxz2tos3eyid.onion/hackathon-ietf-105.html
We will
use the consume layer, where the request has
been received but not all the answers are known yet: static int ilnp_consume(kr_layer_t *ctx, knot_pkt_t *pkt) {
...
}
KR_EXPORT
int ilnp_init(struct kr_module *module) {
static kr_layer_api_t layer = {
.consume = &ilnp_consume,
}; The entire module is 83 lines, including test of return values,
logging, comments and empty lines.