summaryrefslogtreecommitdiff
path: root/mainline/runtime/sdk/android/arm/include/bionic/libc/kernel/uapi/linux/netfilter/xt_rateest.h
blob: d020f2341ef2226494b7b1dfd52b7bc4d02c88a7 (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
/*
 * This file is auto-generated. Modifications will be lost.
 *
 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
 * for more information.
 */
#ifndef _XT_RATEEST_MATCH_H
#define _XT_RATEEST_MATCH_H
#include <linux/types.h>
#include <linux/if.h>
enum xt_rateest_match_flags {
  XT_RATEEST_MATCH_INVERT = 1 << 0,
  XT_RATEEST_MATCH_ABS = 1 << 1,
  XT_RATEEST_MATCH_REL = 1 << 2,
  XT_RATEEST_MATCH_DELTA = 1 << 3,
  XT_RATEEST_MATCH_BPS = 1 << 4,
  XT_RATEEST_MATCH_PPS = 1 << 5,
};
enum xt_rateest_match_mode {
  XT_RATEEST_MATCH_NONE,
  XT_RATEEST_MATCH_EQ,
  XT_RATEEST_MATCH_LT,
  XT_RATEEST_MATCH_GT,
};
struct xt_rateest_match_info {
  char name1[IFNAMSIZ];
  char name2[IFNAMSIZ];
  __u16 flags;
  __u16 mode;
  __u32 bps1;
  __u32 pps1;
  __u32 bps2;
  __u32 pps2;
  struct xt_rateest * est1 __attribute__((aligned(8)));
  struct xt_rateest * est2 __attribute__((aligned(8)));
};
#endif