+ case REQ_DUMP_TRAFFIC:
+ return dump_traffic(c);
+
+ case REQ_PCAP:
+ sscanf(request, "%*d %*d %d", &c->outmaclength);
+ c->status.pcap = true;
+ pcap = true;
+ return true;
+
+ case REQ_LOG: {
+ int level = 0, colorize = 0;
+ sscanf(request, "%*d %*d %d %d", &level, &colorize);
+ c->log_level = CLAMP(level, DEBUG_UNSET, DEBUG_SCARY_THINGS);
+ c->status.log = true;
+ c->status.log_color = colorize;
+ logcontrol = true;
+ return true;
+ }