2 * mactime_device.h - device table entry
4 * Copyright (c) 2018 Cisco and/or its affiliates.
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at:
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 #ifndef included_mactime_device_h
19 #define included_mactime_device_h
20 #include <vppinfra/time_range.h>
22 #define MACTIME_RANGE_TYPE_DROP 0
23 #define MACTIME_RANGE_TYPE_ALLOW 1
30 u64 data_used_in_range;
34 clib_timebase_range_t *ranges;
37 /** Always drop packets from this device */
38 #define MACTIME_DEVICE_FLAG_STATIC_DROP (1<<0)
39 #define MACTIME_DEVICE_FLAG_STATIC_ALLOW (1<<1)
40 #define MACTIME_DEVICE_FLAG_DYNAMIC_DROP (1<<2)
41 #define MACTIME_DEVICE_FLAG_DYNAMIC_ALLOW (1<<3)
42 #define MACTIME_DEVICE_FLAG_DYNAMIC_ALLOW_QUOTA (1<<4)
43 #define MACTIME_DEVICE_FLAG_DROP_UDP_10001 (1<<5)
45 #endif /* included_mactime_device_h */
48 * fd.io coding-style-patch-verification: ON
51 * eval: (c-set-style "gnu")