radix server

Network radix lookup

Sat, 02/27/2010 - 08:54 by Damien Saucez • Categories:

You frequently need to resolve IP addresses into their longest-match prefix? RADIX_UDP is for you ;-)

The tool loads a list of prefixes into a radix that can be queried in UDP. The syntax is simple, send a UDP segment in text with the first column being the IP, we don't care about the others ;-)

The server will reply with the same text but with the corresponding prefix prepended.


create a file "prefix.dat" with this content:

start the server:

./radix_udp prefix.dat 45005

query it

Syndicate content