Skip to content

Instantly share code, notes, and snippets.

@kkumar-fk
Last active July 23, 2019 04:26
Show Gist options
  • Save kkumar-fk/b087a115ee2cd7a5cb805f895c046736 to your computer and use it in GitHub Desktop.
Save kkumar-fk/b087a115ee2cd7a5cb805f895c046736 to your computer and use it in GitHub Desktop.
inet hash info
#define LHTABLE_SIZE 32 /* Yes, really, this is all you need */
struct inet_hashinfo {
/* Hash table for fully established sockets */
struct inet_ehash_bucket *ehash;
/* Hash table for LISTEN sockets */
struct inet_listen_hashbucket listening_hash[LHTABLE_SIZE];
};
struct inet_hashinfo tcp_hashinfo;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment