소스 검색

core: tcp - increase the TCP_ID_HASH_SIZE

- now 2048 instead of 1024
Daniel-Constantin Mierla 3 달 전
부모
커밋
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,