Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

DCCP socket should use SOCK_CONN_DGRAM or SOCK_DCCP

  • Loading branch information...
commit ea43dd28654febc9aa01f065d228b6d29fe6aea8 1 parent 37ff208
nishida authored
View
2  freebsd5/sys/netinet/in_proto.c
@@ -175,7 +175,7 @@ struct protosw inetsw[] = {
},
#endif /* SCTP */
#ifdef DCCP
-{ SOCK_DGRAM, &inetdomain, IPPROTO_DCCP, PR_CONNREQUIRED|PR_IMPLOPCL|PR_ATOMIC,
+{ SOCK_CONN_DGRAM, &inetdomain, IPPROTO_DCCP, PR_CONNREQUIRED|PR_IMPLOPCL|PR_ATOMIC,
dccp_input, 0, dccp_ctlinput, dccp_ctloutput,
0,
dccp_init, 0, 0, 0,
View
3  freebsd5/sys/sys/socket.h
@@ -96,6 +96,9 @@ typedef __uid_t uid_t;
#define SOCK_RDM 4 /* reliably-delivered message */
#endif
#define SOCK_SEQPACKET 5 /* sequenced packet stream */
+#define SOCK_CONN_DGRAM 6 /* connection-oriented datagram socket */
+#define SOCK_DCCP 6 /* DCCP socket */
+
/*
* Option flags per-socket.
View
2  openbsd/sys/netinet/in_proto.c
@@ -238,7 +238,7 @@ struct protosw inetsw[] = {
},
#endif /* SCTP */
#ifdef DCCP
-{ SOCK_DGRAM, &inetdomain, IPPROTO_DCCP,
+{ SOCK_CONN_DGRAM, &inetdomain, IPPROTO_DCCP,
PR_CONNREQUIRED|PR_WANTRCVD|PR_ATOMIC|PR_ABRTACPTDIS,
dccp_input, 0, dccp_ctlinput, dccp_ctloutput,
dccp_usrreq,
View
3  openbsd/sys/sys/socket.h
@@ -52,6 +52,9 @@
#define SOCK_RAW 3 /* raw-protocol interface */
#define SOCK_RDM 4 /* reliably-delivered message */
#define SOCK_SEQPACKET 5 /* sequenced packet stream */
+#define SOCK_CONN_DGRAM 6 /* connection-oriented datagram socket */
+#define SOCK_DCCP 6 /* DCCP socket */
+
/*
* Option flags per-socket.
Please sign in to comment.
Something went wrong with that request. Please try again.