Hallo Philipp,
Das Problem reduziert sich also auf das Implementieren
eines schnellen Algorithmus für das Extrahieren
unterschiedlicher IP's.
IMHO wuerde sich da herrlich eine Hashtable-Bibliothek eignen.
Vielleicht kannst du ja
http://cvs.teamone.de/selfforum/src/hashlib.c?rev=1.6&content-type=text/x-cvsweb-markup
bzw.
http://cvs.teamone.de/selfforum/src/hashlib.h?rev=1.4&content-type=text/x-cvsweb-markup
gebrauchen. Eine Doku gibts unter
http://cforum.teamone.de/doku/developer/hashlib_8c.htm
Gruesse,
CK