Open Ethernet Networking (OpEN) API Guide and Reference Manual
3.6.0.3
Welcome
ADK Documentation
API Reference
Files
File List
Globals
api
include
openapi_pkt.h
Go to the documentation of this file.
1
9
/*********************************************************************
10
*
11
* Copyright 2016-2018 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_pkt.h
28
*
29
* @purpose Packet transmit and receive
30
*
31
* @component OPEN
32
*
33
* @create 11/29/2012
34
*
35
* @end
36
*
37
**********************************************************************/
38
#ifndef OPENAPI_PKT_H_INCLUDED
39
#define OPENAPI_PKT_H_INCLUDED
40
41
#include "
openapi_common.h
"
42
43
typedef
enum
44
{
45
OPEN_EXT_PKT_TX_NORMAL_UNICAST
= 0,
46
OPEN_EXT_PKT_TX_VLAN_MULTICAST
= 1,
47
OPEN_EXT_PKT_TX_L2RAW_UNICAST
= 2,
48
OPEN_EXT_PKT_TX_L2RAW_VLAN_MULTICAST
= 3,
49
OPEN_EXT_PKT_TX_NUM_OF_TYPE
= 4
50
}
OPEN_EXT_PKT_TX_TYPE_t
;
51
52
/**********************************************************************/
110
open_error_t
openapiExtPktTransmit
(
openapiClientHandle_t
* client_handle,
111
open_buffdesc
*buffer,
112
OPEN_EXT_PKT_TX_TYPE_t
type,
113
uint32_t ifNum,
114
uint32_t vlanId,
115
uint32_t priority);
116
117
#endif
/* OPENAPI_PKT_H_INCLUDED */
118
OPEN_EXT_PKT_TX_L2RAW_VLAN_MULTICAST
Unicast for VLAN members without any modifications or state checks.
Definition:
openapi_pkt.h:48
open_error_t
open_error_t
OPEN uses these enumerators to indicate the error codes.
Definition:
openapi_common.h:64
OPEN_EXT_PKT_TX_TYPE_t
OPEN_EXT_PKT_TX_TYPE_t
Definition:
openapi_pkt.h:43
open_buffdesc
Definition:
openapi_common.h:136
openapiClientHandle_s
Definition:
openapi_common.h:129
OPEN_EXT_PKT_TX_NUM_OF_TYPE
Unused, always the last in the enum.
Definition:
openapi_pkt.h:49
OPEN_EXT_PKT_TX_NORMAL_UNICAST
Normal Unicast.
Definition:
openapi_pkt.h:45
OPEN_EXT_PKT_TX_L2RAW_UNICAST
Unicast without any modifications or state checks.
Definition:
openapi_pkt.h:47
OPEN_EXT_PKT_TX_VLAN_MULTICAST
Normal Unicast for VLAN members.
Definition:
openapi_pkt.h:46
openapiExtPktTransmit
open_error_t openapiExtPktTransmit(openapiClientHandle_t *client_handle, open_buffdesc *buffer, OPEN_EXT_PKT_TX_TYPE_t type, uint32_t ifNum, uint32_t vlanId, uint32_t priority)
Transmit frame out of one or multiple front-panel switch interfaces.
openapi_common.h
© 2019 by Broadcom. All rights reserved.