tcp_diag generalised

David came up with a proof-of-concept patch in the dccp at vger dot kernel dot org mailing list, mostly with what I was planning to do anyway, so I took from there and now there are 6 changesets doing this work waiting for review/merging at my latest tree.

UDP needs more thinking on how to properly make it use inet_diag, perhaps by passing the lookup function pointer in struct inet_diag_handler and marking this struct as handling non inet_connection_sock sockets so that it doesn’t try to mess with non existing fields of the cast passed udp_hashinfo, that would really be just a struct inet_ehash_bucket modified to have the ehash_size moved from inet_hashtables to it.

Post a comment or leave a trackback: Trackback URL.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: