2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DLPI_PROMISCON 3DLPI "Aug 22, 2007"
8 dlpi_promiscon, dlpi_promiscoff \- enable or disable DLPI promiscuous mode
12 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-ldlpi\fR [ \fIlibrary\fR... ]
15 \fBint\fR \fBdlpi_promiscon\fR(\fBdlpi_handle_t\fR \fIdh\fR, \fBuint_t\fR \fIlevel\fR);
20 \fBint\fR \fBdlpi_promiscoff\fR(\fBdlpi_handle_t\fR \fIdh\fR, \fBuint_t\fR \fIlevel\fR);
26 The \fBdlpi_promiscon()\fR function enables promiscuous mode on a \fBDLPI\fR
27 link instance associated with \fBDLPI\fR handle \fIdh\fR, at the specified
28 \fIlevel\fR. After enabling promiscuous mode, the caller will be able to
29 receive all messages destined for the \fBDLPI\fR link instance at the specified
30 \fIlevel\fR. This operation can be performed in any \fBDLPI\fR state of a
34 The \fBdlpi_promiscoff()\fR function disables promiscuous mode on a \fBDLPI\fR
35 link instance associated with \fBDLPI\fR handle \fIdh\fR, at the specified
36 level. This operation can be performed in any \fBDLPI\fR state of a handle in
37 which promiscuous mode is enabled at the specified \fIlevel\fR.
40 The \fIlevel\fR modes are:
44 \fB\fBDL_PROMISC_PHYS\fR\fR
47 Promiscuous mode at the physical level
53 \fB\fBDL_PROMISC_SAP\fR\fR
56 Promiscuous mode at the \fBSAP\fR level
62 \fB\fBDL_PROMISC_MULTI\fR\fR
65 Promiscuous mode for all multicast addresses
71 Upon success, \fBDLPI_SUCCESS\fR is returned. If \fBDL_SYSERR\fR is returned,
72 \fBerrno\fR contains the specific UNIX system error value. Otherwise, a
73 \fBDLPI\fR error value defined in \fB<sys/dlpi.h>\fR or an error value listed
74 in the following section is returned.
79 \fB\fBDLPI_EBADMSG\fR\fR
88 \fB\fBDLPI_EINHANDLE\fR\fR
91 Invalid \fBDLPI\fR handle
97 \fB\fBDLPI_EINVAL\fR\fR
106 \fB\fBDLPI_ETIMEDOUT\fR\fR
109 \fBDLPI\fR operation timed out
115 See \fBattributes\fR(5) for description of the following attributes:
123 ATTRIBUTE TYPE ATTRIBUTE VALUE
125 Interface Stability Committed
133 \fBlibdlpi\fR(3LIB), \fBattributes\fR(5)