/* * NET Generic infrastructure for Network protocols. * * Authors: Arnaldo Carvalho de Melo <acme@conectiva.com.br> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version * 2 of the License, or (at your option) any later version. */#ifndef _TIMEWAIT_SOCK_H#define _TIMEWAIT_SOCK_H#include <linux/slab.h>#include <net/sock.h>structtimewait_sock_ops{kmem_cache_t*twsk_slab;unsignedinttwsk_obj_size;int(*twsk_unique)(structsock*sk,structsock*sktw,void*twp);};staticinlineinttwsk_unique(structsock*sk,structsock*sktw,void*twp){if(sk->sk_prot->twsk_prot->twsk_unique!=NULL)returnsk->sk_prot->twsk_prot->twsk_unique(sk,sktw,twp);return0;}#endif /* _TIMEWAIT_SOCK_H */