because setting the packet priority is a function of the protocol
(i.e. proto_radius), and not of the IO handler (e.g. proto_radius_udp)
return 1;
}
+static int mod_priority_set(void const *instance, UNUSED uint8_t const *buffer, UNUSED size_t buflen)
+{
+ proto_detail_t const *inst = talloc_get_type_abort_const(instance, proto_detail_t);
+
+ /*
+ * Return the configured priority.
+ */
+ return inst->priority;
+}
+
+
/** Open listen sockets/connect to external event source
*
* @param[in] instance Ctx data for this application.
.open = mod_open,
.decode = mod_decode,
.encode = mod_encode,
+ .priority = mod_priority_set
};