tinc and RedHat 7
Ivo Timmermans
zarq at spark.icicle.yi.org
Sun Feb 25 02:10:14 CET 2001
Hi all,
Just to let you know, there are some issues running tinc on RedHat 7.
Apparently it comes with a broken libc, which may give you very weird
errors in the syslog, such as:
Metadata socket read error for blaataap (12.34.56.78): Function not implemented
or:
Got bad ID from 23.45.67.89
and you are absolutely sure that you configured everything else
correctly, you may be running into this problem.
If you want to know if your libc works correctly, copy this into a
file called test.c:
------------------------------------------------------------
#include <string.h>
int main() {
char *buf = "3 bla 7\n", *p; int q,r;
r = sscanf(buf, "%*d %as %d\n", &p, &q);
printf("%d %s %d\n", r, p, q);
return 0;
}
------------------------------------------------------------
compile this with `gcc -o test test.c', and run `./test'.
If your libc is as it should be, it will return
2 bla 7
However, a broken libc will (for example) show
0 134513777
In any case, the first number should not be zero.
If the test program shows the correct results, but tinc still does not
work, your configuration is incorrect, for that I refer you to the
online manual at http://tinc.nl.linux.org/.
If the program shows different output than the correct one above, you
can still run tinc by downloading the statically linked version from
the download page.
Ivo
--
Deja moo: the feeling you've heard this bullshit before.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://brouwer.uvt.nl/pipermail/tinc/attachments/20010225/fa10c150/attachment.pgp
More information about the Tinc
mailing list