inet_diag: Introduce the byte-code run on an inet socket
The upcoming UDP module will require exactly this ability, so just move the existing code to provide one. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
efb3cb428d
commit
8d07d1518a
@@ -135,6 +135,7 @@ struct tcpvegas_info {
|
||||
#ifdef __KERNEL__
|
||||
struct sock;
|
||||
struct inet_hashinfo;
|
||||
struct nlattr;
|
||||
|
||||
struct inet_diag_handler {
|
||||
struct inet_hashinfo *idiag_hashinfo;
|
||||
@@ -144,6 +145,7 @@ struct inet_diag_handler {
|
||||
__u16 idiag_type;
|
||||
};
|
||||
|
||||
int inet_diag_bc_sk(const struct nlattr *_bc, struct sock *sk);
|
||||
int inet_diag_check_cookie(struct sock *sk, struct inet_diag_req *req);
|
||||
|
||||
extern int inet_diag_register(const struct inet_diag_handler *handler);
|
||||
|
Reference in New Issue
Block a user