xt_rateest.h revision 96c1db7b9d601c31d103389cac074a6cce0d7633
1/**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19#ifndef _XT_RATEEST_MATCH_H 20#define _XT_RATEEST_MATCH_H 21#include <linux/types.h> 22#include <linux/if.h> 23enum xt_rateest_match_flags { 24 XT_RATEEST_MATCH_INVERT = 1 << 0, 25 XT_RATEEST_MATCH_ABS = 1 << 1, 26 XT_RATEEST_MATCH_REL = 1 << 2, 27 XT_RATEEST_MATCH_DELTA = 1 << 3, 28 XT_RATEEST_MATCH_BPS = 1 << 4, 29 XT_RATEEST_MATCH_PPS = 1 << 5, 30}; 31enum xt_rateest_match_mode { 32 XT_RATEEST_MATCH_NONE, 33 XT_RATEEST_MATCH_EQ, 34 XT_RATEEST_MATCH_LT, 35 XT_RATEEST_MATCH_GT, 36}; 37struct xt_rateest_match_info { 38 char name1[IFNAMSIZ]; 39 char name2[IFNAMSIZ]; 40 __u16 flags; 41 __u16 mode; 42 __u32 bps1; 43 __u32 pps1; 44 __u32 bps2; 45 __u32 pps2; 46 struct xt_rateest * est1 __attribute__((aligned(8))); 47 struct xt_rateest * est2 __attribute__((aligned(8))); 48}; 49#endif 50