Dump traffic statistics over control sockets.
[tinc] / src / control.c
index b8e5204..ade012a 100644 (file)
@@ -113,6 +113,9 @@ bool control_h(connection_t *c, char *request) {
                        return control_return(c, REQ_DISCONNECT, found ? 0 : -2);
                }
 
+               case REQ_DUMP_TRAFFIC:
+                       return dump_traffic(c);
+
                default:
                        return send_request(c, "%d %d", CONTROL, REQ_INVALID);
        }