FD.io VPP
v21.10.1-2-g0a485f517
Vector Packet Processing
acl_types.hpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Cisco and/or its affiliates.
3
* Licensed under the Apache License, Version 2.0 (the "License");
4
* you may not use this file except in compliance with the License.
5
* You may obtain a copy of the License at:
6
*
7
* http://www.apache.org/licenses/LICENSE-2.0
8
*
9
* Unless required by applicable law or agreed to in writing, software
10
* distributed under the License is distributed on an "AS IS" BASIS,
11
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
* See the License for the specific language governing permissions and
13
* limitations under the License.
14
*/
15
16
#ifndef __VOM_ACL_TYPES_H__
17
#define __VOM_ACL_TYPES_H__
18
19
#include "
vom/types.hpp
"
20
21
namespace
VOM
{
22
namespace
ACL
{
23
/**
24
* ACL Actions
25
*/
26
struct
action_t
:
public
enum_base
<action_t>
27
{
28
/**
29
* Permit and Reflexive
30
*/
31
const
static
action_t
PERMITANDREFLEX
;
32
33
/**
34
* Permit Action
35
*/
36
const
static
action_t
PERMIT
;
37
38
/**
39
* Deny Action
40
*/
41
const
static
action_t
DENY
;
42
43
/**
44
* Get the enum type from a VPP integer value
45
*/
46
static
const
action_t
&
from_int
(uint8_t
i
);
47
48
/**
49
*Get the enum type from a bool value and optional uint8_t value
50
*which implements the connection tracking ....
51
*/
52
static
const
action_t
&
from_bool
(
bool
b
, uint8_t
c
);
53
54
private
:
55
action_t
(
int
v,
const
std::string
s);
56
};
57
};
58
};
59
60
/*
61
* fd.io coding-style-patch-verification: OFF
62
*
63
* Local Variables:
64
* eval: (c-set-style "mozilla")
65
* End:
66
*/
67
68
#endif
VOM
The VPP Object Model (VOM) library.
Definition:
acl_binding.cpp:19
VOM::ACL::action_t
ACL Actions.
Definition:
acl_types.hpp:26
types.hpp
VOM::ACL::action_t::PERMITANDREFLEX
const static action_t PERMITANDREFLEX
Permit and Reflexive.
Definition:
acl_types.hpp:31
c
svmdb_client_t * c
Definition:
vpp_get_metrics.c:48
VOM::enum_base
A template base class for all enum types.
Definition:
enum_base.hpp:30
VOM::ACL::action_t::from_bool
static const action_t & from_bool(bool b, uint8_t c)
Get the enum type from a bool value and optional uint8_t value which implements the connection tracki...
Definition:
acl_types.cpp:41
VOM::ACL::action_t::DENY
const static action_t DENY
Deny Action.
Definition:
acl_types.hpp:41
b
vlib_buffer_t ** b
Definition:
nat44_ei_out2in.c:717
i
int i
Definition:
flowhash_template.h:376
VOM::ACL::action_t::from_int
static const action_t & from_int(uint8_t i)
Get the enum type from a VPP integer value.
Definition:
acl_types.cpp:30
VOM::ACL::action_t::PERMIT
const static action_t PERMIT
Permit Action.
Definition:
acl_types.hpp:36
VOM::dependency_t::ACL
@ ACL
ACLs.
string
const char *const string
Definition:
cJSON.h:172
extras
deprecated
vom
vom
acl_types.hpp
Generated on Sat Jan 8 2022 10:34:45 for FD.io VPP by
1.8.17