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.
Example,
create a file "prefix.dat" with this content:
192.0.2.0/24 192.0.2.128/25
start the server:
./radix_udp prefix.dat 45005
query it