X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Fjacobson_karels%2F_info;fp=ccan%2Fjacobson_karels%2F_info;h=9165470338042aa632bc81298b9123924f245ed3;hb=59208d61ceac29b28bd2a15cc0f3ebad524d9b6a;hp=0000000000000000000000000000000000000000;hpb=e8fe775b03a9abde11f7ce7a9ebf8e002111e923;p=ccan diff --git a/ccan/jacobson_karels/_info b/ccan/jacobson_karels/_info new file mode 100644 index 00000000..91654703 --- /dev/null +++ b/ccan/jacobson_karels/_info @@ -0,0 +1,25 @@ +#include +#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 + * 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; +}