mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 17:02:17 +00:00
Since DCCP has been removed, sk->sk_prot->twsk_prot->twsk_destructor is always tcp_twsk_destructor(). Let's call tcp_twsk_destructor() directly in inet_twsk_free() and remove ->twsk_destructor(). While at it, tcp_twsk_destructor() is un-exported. Signed-off-by: Kuniyuki Iwashima <[email protected]> Reviewed-by: Eric Dumazet <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
21 lines
439 B
C
21 lines
439 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* NET Generic infrastructure for Network protocols.
|
|
*
|
|
* Authors: Arnaldo Carvalho de Melo <[email protected]>
|
|
*/
|
|
#ifndef _TIMEWAIT_SOCK_H
|
|
#define _TIMEWAIT_SOCK_H
|
|
|
|
#include <linux/slab.h>
|
|
#include <linux/bug.h>
|
|
#include <net/sock.h>
|
|
|
|
struct timewait_sock_ops {
|
|
struct kmem_cache *twsk_slab;
|
|
char *twsk_slab_name;
|
|
unsigned int twsk_obj_size;
|
|
};
|
|
|
|
#endif /* _TIMEWAIT_SOCK_H */
|