2 .\" This file and its contents are supplied under the terms of the
3 .\" Common Development and Distribution License ("CDDL"), version 1.0.
4 .\" You may only use this file in accordance with the terms of version
7 .\" A full copy of the text of the CDDL should have accompanied this
8 .\" source. A copy of the CDDL is also available via the Internet at
9 .\" http://www.illumos.org/license/CDDL.
12 .\" Copyright 2016 Joyent, Inc.
19 .Nd modify device promiscuous mode entry point
21 .In sys/mac_provider.h
23 .Fo prefix_m_setpromisc
25 .Fa "boolean_t enable"
32 A pointer to the driver's private data that was passed in via the
40 A boolean that indicates the desired state of the device's promiscuous
44 promiscuous mode should be enabled on the device.
47 then promiscuous mode should be disabled on the device.
52 entry point is called when the GLDv3 wants to change the device's
54 When this entry point is called, the device should manipulate both its unicast
55 and multicast promiscuous mode.
59 is true, then it should make sure that both unicast and multicast
60 promiscuous mode are enabled.
61 When it's set to false, then they should be disabled.
62 In general, devices should always start with promiscuous mode disabled until the
63 framework indicates that it should be enabled.
65 The device driver's private state is available by casting the
67 argument to the function.
68 Note, this entry point may be called in parallel with others and therefore the
69 device driver should employ any necessary locking on that structure.
71 Upon successful completion, the device driver's
73 entry point should return
75 after having set the device's state.
76 Otherwise, it should return a non-zero positive error number to indicate the
79 The device driver may return one of the following errors.
80 While this list is not intended to be exhaustive, it is recommended to use one
84 The driver encountered a device or transport error while trying to
85 update the device's state.