Skip to content

Commit ba2c9ec

Browse files
authored
Merge pull request #430 from lionsoul2014/reserved_region_stdlize
stdlize the Reserved IP region info
2 parents 05158e0 + 91f281d commit ba2c9ec

12 files changed

Lines changed: 32 additions & 32 deletions

File tree

binding/cpp/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bin/

binding/cpp/bin/bench

-79.1 KB
Binary file not shown.

binding/cpp/bin/edit_v4

-73.5 KB
Binary file not shown.

binding/cpp/bin/edit_v6

-73.5 KB
Binary file not shown.

binding/cpp/bin/header

-77.9 KB
Binary file not shown.

binding/cpp/bin/make

-73.7 KB
Binary file not shown.

binding/cpp/bin/search

-79.3 KB
Binary file not shown.

binding/cpp/test/search.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ void test_ipv4(int policy) {
1212
std::cout << "测试 IPv4 " << prompt[policy];
1313

1414
xdb::search_t s("../../data/ip2region_v4.xdb", xdb::ipv4, policy);
15-
test(s, "0.0.0.0", "0|0|Reserved|Reserved|Reserved");
15+
test(s, "0.0.0.0", "Reserved|Reserved|Reserved|0|0");
1616
test(s, "1.2.3.4", "Australia|Queensland|Brisbane|0|AU");
17-
test(s, "255.255.255.255", "0|0|Reserved|Reserved|Reserved");
1817

1918
std::cout << " 成功" << std::endl;
2019
}

0 commit comments

Comments
 (0)