]> git.ozlabs.org Git - ccan/blobdiff - ccan/jacobson_karels/_info
jacobson_karels: New module
[ccan] / ccan / jacobson_karels / _info
diff --git a/ccan/jacobson_karels/_info b/ccan/jacobson_karels/_info
new file mode 100644 (file)
index 0000000..9165470
--- /dev/null
@@ -0,0 +1,25 @@
+#include <string.h>
+#include "config.h"
+
+/**
+ * jacobson_karels - Jacobson/Karels Round Trip Time algorithm
+ *
+ * This implements the Jacobson/Karels algorithm for estimating round
+ * trip time and appropriate timeouts over a network link.
+ *
+ * Author: David Gibson <david@gibson.dropbear.id>
+ * License: LGPL (v2.1 or any later version)
+ */
+int main(int argc, char *argv[])
+{
+       /* Expect exactly one argument */
+       if (argc != 2)
+               return 1;
+
+       if (strcmp(argv[1], "depends") == 0) {
+               printf("ccan/minmax\n");
+               return 0;
+       }
+
+       return 1;
+}