Created
November 18, 2012 20:32
-
-
Save wttw/4107242 to your computer and use it in GitHub Desktop.
node-iptrie bug example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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