summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo2005-08-10 05:26:28 +0200
committerDavid S. Miller2005-08-30 00:54:23 +0200
commite2e268665f6c01686b477a6b0cc5a70bab689d54 (patch)
tree1e0ea532c344e09c0747f488088bf7f85feed3ec /include
parent[DCCP]: make <linux/dccp.h> include-able from userspace (diff)
downloadkernel-qcow2-linux-e2e268665f6c01686b477a6b0cc5a70bab689d54.tar.gz
kernel-qcow2-linux-e2e268665f6c01686b477a6b0cc5a70bab689d54.tar.xz
kernel-qcow2-linux-e2e268665f6c01686b477a6b0cc5a70bab689d54.zip
[DCCP]: Fix struct sockaddr_dccp definition
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dccp.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/linux/dccp.h b/include/linux/dccp.h
index add4908b8e57..fd1412ddb3ff 100644
--- a/include/linux/dccp.h
+++ b/include/linux/dccp.h
@@ -4,10 +4,14 @@
#include <linux/types.h>
#include <asm/byteorder.h>
-/* FIXME: this is utterly wrong */
+/* Structure describing an Internet (DCCP) socket address. */
struct sockaddr_dccp {
- struct sockaddr_in in;
- unsigned int service;
+ __u16 sdccp_family; /* Address family */
+ __u16 sdccp_port; /* Port number */
+ __u32 sdccp_addr; /* Internet address */
+ __u32 sdccp_service; /* Service */
+ /* Pad to size of `struct sockaddr': 16 bytes . */
+ __u32 sdccp_pad;
};
/**