when unlang calls the process function, it thinks that it's
calling a module, so it sets request->module = name of process
function.
This means that all debug messages (such as "received packet")
are printed out, prefixed with the process name. This makes
debug messages harder to read.
Since the first thing the process function does is call an unlang
section, we can safely set request->module=NULL, which omits the
"radius - " prefix from the packet we're printing
fr_assert(PROCESS_PACKET_CODE_VALID(request->packet->code));
request->component = "arp";
+ request->module = NULL;
fr_assert(request->dict == dict_arp);
UPDATE_STATE(packet);
fr_assert(PROCESS_PACKET_CODE_VALID(request->packet->code));
request->component = "dhcpv4";
+ request->module = NULL;
fr_assert(request->dict == dict_dhcpv4);
UPDATE_STATE(packet);
fr_assert(PROCESS_PACKET_CODE_VALID(request->packet->code));
request->component = "dhcpv6";
+ request->module = NULL;
fr_assert(request->dict == dict_dhcpv6);
UPDATE_STATE(packet);
fr_assert(FR_RADIUS_PACKET_CODE_VALID(request->packet->code));
request->component = "radius";
+ request->module = NULL;
fr_assert(request->dict == dict_radius);
UPDATE_STATE(packet);
fr_assert(PROCESS_PACKET_CODE_VALID(request->packet->code));
request->component = "tacacs";
+ request->module = NULL;
fr_assert(request->dict == dict_tacacs);
UPDATE_STATE(packet);
fr_assert(PROCESS_PACKET_CODE_VALID(request->packet->code));
request->component = "vmps";
+ request->module = NULL;
fr_assert(request->dict == dict_vmps);
UPDATE_STATE(packet);