]> mj.ucw.cz Git - netgrind.git/blobdiff - netgrind/pkt.c
Added content-type to HTTP dump.
[netgrind.git] / netgrind / pkt.c
index ad0c21c63920b97f887f22ee3c55072b530d90e9..1e46084e85333f56997c7dfd62c37ff847696683 100644 (file)
@@ -25,3 +25,13 @@ void pkt_free(struct pkt *p)
 {
   xfree(p);
 }
+
+void pkt_flush_queue(list *l)
+{
+  struct pkt *p;
+  while (p = list_head(l))
+    {
+      list_remove(&p->n);
+      pkt_free(p);
+    }
+}