Open Ethernet Networking (OpEN) API Guide and Reference Manual  3.13.1.2
openapi_voice_vlan.h
Go to the documentation of this file.
1 
9 /*********************************************************************
10 *
11 * Copyright 2016-2023 Broadcom.
12 *
13 * Licensed under the Apache License, Version 2.0 (the "License");
14 * you may not use this file except in compliance with the License.
15 * You may obtain a copy of the License at
16 *
17 * http://www.apache.org/licenses/LICENSE-2.0
18 *
19 * Unless required by applicable law or agreed to in writing, software
20 * distributed under the License is distributed on an "AS IS" BASIS,
21 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
22 * See the License for the specific language governing permissions and
23 * limitations under the License.
24 *
25 **********************************************************************
26 *
27 * @filename openapi_voice_vlan.h
28 *
29 * @purpose Voice VLAN Configuration and Status
30 *
31 * @component OpEN
32 *
33 * @create 11/02/2016
34 *
35 * @end
36 *
37 **********************************************************************/
38 #ifndef OPENAPI_VOICE_VLAN_H_INCLUDED
39 #define OPENAPI_VOICE_VLAN_H_INCLUDED
40 
41 #include "openapi_common.h"
42 
43 typedef enum
44 {
51 
52 #define OPEN_VOICE_VLAN_DSCP_MIN 0
53 #define OPEN_VOICE_VLAN_DSCP_MAX 64
54 #define OPEN_VOICE_VLAN_DOT1P_MIN 0
55 #define OPEN_VOICE_VLAN_DOT1P_MAX 7
56 /*****************************************************************/
71 open_error_t openapiVoiceVlanAdminModeSet(openapiClientHandle_t *client_handle,
72  OPEN_CONTROL_t mode);
73 
74 /*****************************************************************/
88  OPEN_CONTROL_t *mode);
89 
90 /*****************************************************************/
110  uint32_t ifNum, OPEN_VOICE_VLAN_CONFIG_TYPE_t mode,
111  uint32_t dataValue);
112 
113 /*****************************************************************/
128  uint32_t ifNum, OPEN_VOICE_VLAN_CONFIG_TYPE_t *mode);
129 
130 /*****************************************************************/
145  uint32_t ifNum, uint32_t *vlanId);
146 
147 /*****************************************************************/
162  uint32_t ifNum, uint32_t *priority);
163 
164 /*************************************************************************/
180  uint32_t ifNum,
181  OPEN_CONTROL_t *mode);
182 
183 /*************************************************************************/
200  uint32_t ifNum,
201  OPEN_CONTROL_t mode);
202 
203 /*************************************************************************/
219  uint32_t ifNum, OPEN_CONTROL_t *state);
220 
221 /*************************************************************************/
238  uint32_t ifNum, OPEN_CONTROL_t state);
239 
240 /*************************************************************************/
256  uint32_t ifNum, uint32_t *dscp);
257 
258 /*************************************************************************/
275  uint32_t ifNum, uint32_t dscp);
276 
277 /*************************************************************************/
294  uint32_t ifNum,
295  uint32_t dot1pPriority);
296 
297 /*************************************************************************/
314  uint32_t ifNum, uint32_t vlanId);
315 
316 /*************************************************************************/
332  uint32_t ifNum, OPEN_CONTROL_t *mode);
333 
334 
335 #endif /* OPENAPI_VOICE_VLAN_H_INCLUDED */
336 
open_error_t openapiVoiceVlanPortDot1pPriorityGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *priority)
Get the Voice VLAN port DOT1P priority.
open_error_t openapiVoiceVlanPortCosOverrideModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *mode)
Get the value of the cos override mode.
open_error_t openapiVoiceVlanPortStatusGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *mode)
Get the value voice vlan status.
open_error_t openapiVoiceVlanPortDscpSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t dscp)
Set the value of the dscp.
send untagged packets, no data needed to configure
open_error_t
OPEN uses these enumerators to indicate the error codes.
open_error_t openapiVoiceVlanPortDscpGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *dscp)
Get the value of the dscp.
open_error_t openapiVoiceVlanPortDot1pPrioritySet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t dot1pPriority)
Set the value of the dot1p.
open_error_t openapiVoiceVlanPortAuthStateSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t state)
Set voice vlan Auth State.
open_error_t openapiVoiceVlanPortCosOverrideModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t mode)
Set the value of the cos override mode.
allow device to use its own configuration, no data needed to configure
voice VLAN disabled, no data needed to configure
open_error_t openapiVoiceVlanPortVlanIdSet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t vlanId)
Set the value of the vlan ID.
OPEN_CONTROL_t
OPEN uses these enumerators to indicate enable or disable for a given config or status parameter...
open_error_t openapiVoiceVlanAdminModeGet(openapiClientHandle_t *client_handle, OPEN_CONTROL_t *mode)
Gets Voice VLAN global administrative mode.
use 802.1p priority tagging, priority data specified when configured
open_error_t openapiVoiceVlanPortAuthStateGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_CONTROL_t *state)
Get voice vlan Auth State.
open_error_t openapiVoiceVlanPortAdminModeSet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_VOICE_VLAN_CONFIG_TYPE_t mode, uint32_t dataValue)
Set the Voice VLAN interface mode.
OPEN_VOICE_VLAN_CONFIG_TYPE_t
open_error_t openapiVoiceVlanPortAdminModeGet(openapiClientHandle_t *client_handle, uint32_t ifNum, OPEN_VOICE_VLAN_CONFIG_TYPE_t *mode)
Get the Voice VLAN interface mode.
tag with specified VLAN ID, VLAN ID specified when configured
open_error_t openapiVoiceVlanPortVlanIdGet(openapiClientHandle_t *client_handle, uint32_t ifNum, uint32_t *vlanId)
Get the Voice VLAN port VLAN ID.