Skip to content

Instantly share code, notes, and snippets.

@wttw
Created November 18, 2012 20:32
Show Gist options
  • Save wttw/4107242 to your computer and use it in GitHub Desktop.
Save wttw/4107242 to your computer and use it in GitHub Desktop.
node-iptrie bug example
// g++ main.cc btrie.cc
#include "btrie.h"
int main()
{
btrie tree4=0;
struct in_addr a1, a2;
inet_pton(AF_INET, "10.80.116.0", &a2);
add_route_ipv4(&tree4, &a2, 25, 0);
inet_pton(AF_INET, "10.0.0.0", &a1);
add_route_ipv4(&tree4, &a1, 8, 0);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment