linux/include/uapi/linux/netfilter/xt_connbytes.h
<<
>>
Prefs
   1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
   2#ifndef _XT_CONNBYTES_H
   3#define _XT_CONNBYTES_H
   4
   5#include <linux/types.h>
   6
   7enum xt_connbytes_what {
   8        XT_CONNBYTES_PKTS,
   9        XT_CONNBYTES_BYTES,
  10        XT_CONNBYTES_AVGPKT,
  11};
  12
  13enum xt_connbytes_direction {
  14        XT_CONNBYTES_DIR_ORIGINAL,
  15        XT_CONNBYTES_DIR_REPLY,
  16        XT_CONNBYTES_DIR_BOTH,
  17};
  18
  19struct xt_connbytes_info {
  20        struct {
  21                __aligned_u64 from;     /* count to be matched */
  22                __aligned_u64 to;       /* count to be matched */
  23        } count;
  24        __u8 what;              /* ipt_connbytes_what */
  25        __u8 direction; /* ipt_connbytes_direction */
  26};
  27#endif
  28