ソースを参照

core: tcp - increase the TCP_ID_HASH_SIZE

- now 2048 instead of 1024
Daniel-Constantin Mierla 2 ヶ月 前
コミット
0f34b62ad2
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/core/tcp_conn.h

+ 1 - 1
src/core/tcp_conn.h

@@ -376,7 +376,7 @@ typedef struct tcp_connection
 #define TCPCONN_UNLOCK lock_release(tcpconn_lock);
 
 #define TCP_ALIAS_HASH_SIZE 4096
-#define TCP_ID_HASH_SIZE 1024
+#define TCP_ID_HASH_SIZE 2048
 
 /* hash (dst_ip, dst_port, local_ip, local_port) */
 static inline unsigned tcp_addr_hash(struct ip_addr *ip, unsigned short port,