usr/src/uts/common/inet/udp/udp6ddi.c
changeset 741 40027a3621ac
parent 0 68f95e015346
child 5240 e7599510dd03
--- a/usr/src/uts/common/inet/udp/udp6ddi.c	Sat Oct 22 11:06:40 2005 -0700
+++ b/usr/src/uts/common/inet/udp/udp6ddi.c	Sat Oct 22 22:50:14 2005 -0700
@@ -20,7 +20,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 1992,1997-2002 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -36,7 +36,13 @@
 #define	INET_DEVMINOR	IPV6_MINOR
 #define	INET_DEVDESC	"UDP6 STREAMS driver %I%"
 #define	INET_STRTAB	udpinfo
-#define	INET_DEVMTFLAGS	IP_DEVMTFLAGS	/* since we're really ip */
+#define	INET_DEVMTFLAGS	IP_DEVMTFLAGS
+/*
+ * We define both synchronous STREAMS and sockfs direct-access
+ * mode for UDP module instance, because it is autopushed on
+ * top of /dev/ip for the sockets case.
+ */
+#define	INET_MODMTFLAGS	(D_MP|D_SYNCSTR|_D_DIRECT)
 
 #include "../inetddi.c"