2 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @file transmission.h
19 * @brief Kernel - user space transmition structures
23 #ifndef __TRAFFIC_CONTROL_TRAFFIC_STAT_TRANSMITION_H__
24 #define __TRAFFIC_CONTROL_TRAFFIC_STAT_TRANSMITION_H__
26 #include <linux/socket.h>
27 #include <linux/types.h>
29 #include <netinet/in.h>
30 #include <sys/types.h>
33 /* Used both in kernel module and in control daemon */
36 * @brief Entity for outgoing and incomming packet counter information.
37 * Used for serialization.
39 struct traffic_event {
45 enum traffic_restriction_type {
54 * @brief Traffic restriction structure for serialization
55 * type - traffic_restriction_type
57 struct traffic_restriction {
63 int snd_warning_threshold;
64 int rcv_warning_threshold;
67 #define STC_ALL_IFINDEX 1
69 #endif /*TRAFFIC_CONTROL_TRAFFIC_STAT_TRANSMITION */