-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yaml --- r: 6340 b: refs/heads/master c: 4f5736c h: refs/heads/master v: v3
- Loading branch information
Arnaldo Carvalho de Melo
authored and
David S. Miller
committed
Aug 29, 2005
1 parent
f619bd2
commit fee7f04
Showing
7 changed files
with
187 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 5324a040ccc708998e61ea93e669b81312f0ae11 | ||
refs/heads/master: 4f5736c4c7cf6f9bd8db82b712cfdd51c87e06b9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/* | ||
* net/dccp/diag.c | ||
* | ||
* An implementation of the DCCP protocol | ||
* Arnaldo Carvalho de Melo <acme@mandriva.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 as | ||
* published by the Free Software Foundation. | ||
*/ | ||
|
||
#include <linux/config.h> | ||
|
||
#include <linux/module.h> | ||
#include <linux/tcp_diag.h> | ||
|
||
#include "dccp.h" | ||
|
||
static void dccp_diag_get_info(struct sock *sk, struct tcpdiagmsg *r, | ||
void *_info) | ||
{ | ||
r->tcpdiag_rqueue = r->tcpdiag_wqueue = 0; | ||
} | ||
|
||
static struct inet_diag_handler dccp_diag_handler = { | ||
.idiag_hashinfo = &dccp_hashinfo, | ||
.idiag_get_info = dccp_diag_get_info, | ||
.idiag_type = DCCPDIAG_GETSOCK, | ||
.idiag_info_size = 0, | ||
}; | ||
|
||
static int __init dccp_diag_init(void) | ||
{ | ||
return inet_diag_register(&dccp_diag_handler); | ||
} | ||
|
||
static void __exit dccp_diag_fini(void) | ||
{ | ||
inet_diag_unregister(&dccp_diag_handler); | ||
} | ||
|
||
module_init(dccp_diag_init); | ||
module_exit(dccp_diag_fini); | ||
|
||
MODULE_LICENSE("GPL"); | ||
MODULE_AUTHOR("Arnaldo Carvalho de Melo <acme@mandriva.com>"); | ||
MODULE_DESCRIPTION("DCCP inet_diag handler"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters