blob: 416579b815bf2f777e55da1f37ec13c55233f894 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*\
File: OCTVC1_VLAN.h
Copyright (c) 2017 Octasic Inc. All rights reserved.
Description:
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Release: OCTSDR Software Development Kit OCTSDR_GSM-02.09.00-B1607 (2017/08/29)
$Revision: $
\*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
#ifndef __OCTVC1_VLAN_H__
#define __OCTVC1_VLAN_H__
/***************************** INCLUDE FILES *******************************/
#include "../octdev_types.h"
/************************ COMMON DEFINITIONS *******************************/
#define cOCTVC1_VLAN_MAX_TAG 4
/*-------------------------------------------------------------------------------------
tOCTVC1_VLAN_PROTOCOL_ID_ENUM :
-------------------------------------------------------------------------------------*/
#define tOCTVC1_VLAN_PROTOCOL_ID_ENUM tOCT_UINT32
#define cOCTVC1_VLAN_PROTOCOL_ID_ENUM_8100 0
#define cOCTVC1_VLAN_PROTOCOL_ID_ENUM_88A8 1
#define cOCTVC1_VLAN_PROTOCOL_ID_ENUM_9100 2
#define cOCTVC1_VLAN_PROTOCOL_ID_ENUM_9200 3
/*-------------------------------------------------------------------------------------
tOCTVC1_VLAN_TAG
Members:
ulPriority
Range: [0..7]
Default: 5
ulVlanId
Range: [0..4095]
Default: 0
ulProtocolId
Default: cOCTVC1_VLAN_PROTOCOL_ID_ENUM_8100
-------------------------------------------------------------------------------------*/
typedef struct
{
tOCT_UINT32 ulPriority;
tOCT_UINT32 ulVlanId;
tOCTVC1_VLAN_PROTOCOL_ID_ENUM ulProtocolId;
} tOCTVC1_VLAN_TAG;
/*-------------------------------------------------------------------------------------
tOCTVC1_VLAN_HEADER_INFO
Members:
ulNumVlanTag
Range: [0..cOCTVC1_VLAN_MAX_TAG]
Default: 0
Number of Vlan TAGs present in the header. The tag inserted right after the
Ethernet header must be located at index 0 of aVlanTag while the one at the
highest index is located right before the transport header.
aVlanTag
Array containing the VLAN TAG to present in the header for this member.
-------------------------------------------------------------------------------------*/
typedef struct
{
tOCT_UINT32 ulNumVlanTag;
tOCTVC1_VLAN_TAG aVlanTag[cOCTVC1_VLAN_MAX_TAG];
} tOCTVC1_VLAN_HEADER_INFO;
#endif /* __OCTVC1_VLAN_H__ */
|