add IPv6 default route interface auto-detection for permanent/temporary IPv6 without netif
- get_default_route_netif_index(): UDP connect trick + getifaddrs to find default route iface - etcp_socket_add(): auto-detect netif_index when not specified in config - queue_new() API: explicit index_offset/index_size params instead of implicit from hash_size - radix: cleanup types (uint8_t*), replace bzero/bcmp with memset/memcmp, remove kernel ifdefs - route6_lib: new IPv6 routing library + get_node_v6_routes()
This commit is contained in:
1 parent
e1f051856f
commit
c24a6367cc
65 files changed
+34811
-556
No files matched your search
@@ -27,7 +27,7 @@ static double test_without_pools(int iterations) {
|
||||
clock_t start = clock();
|
||||
|
||||
struct UASYNC* ua = uasync_create();
|
||||
struct ll_queue* queue = queue_new(ua, 0,"q1"); // Без пулов
|
||||
struct ll_queue* queue = queue_new(ua, 0, 0, 0,"q1"); // Без пулов
|
||||
|
||||
for (int cycle = 0; cycle < iterations; cycle++) {
|
||||
// Создать много waiters
|
||||
@@ -70,7 +70,7 @@ static double test_with_pools(int iterations) {
|
||||
clock_t start = clock();
|
||||
|
||||
struct UASYNC* ua = uasync_create();
|
||||
struct ll_queue* queue = queue_new(ua, 0,"q2"); // С пулами
|
||||
struct ll_queue* queue = queue_new(ua, 0, 0, 0,"q2"); // С пулами
|
||||
|
||||
// Создать пул памяти для данных
|
||||
struct memory_pool* pool = memory_pool_init(sizeof(struct ll_entry) + 64);
|
||||
|
||||
Reference in new issue
Block a user