/* Structure for the userspace part of ipt_ACCOUNT */
struct ipt_acc_info {
- __be32 net_ip;
- __be32 net_mask;
+ __be32 net_ip, net_mask;
char table_name[ACCOUNT_TABLE_NAME_LEN];
int32_t table_nr;
};
*/
struct ipt_acc_handle_ip {
__be32 ip, __dummy;
- uint64_t src_packets;
- uint64_t src_bytes;
- uint64_t dst_packets;
- uint64_t dst_bytes;
+ uint64_t src_packets, src_bytes, dst_packets, dst_bytes;
};
};
struct xt_ipmark_tginfo {
- __u32 andmask;
- __u32 ormask;
- __u8 selector;
- __u8 shift;
+ __u32 andmask, ormask;
+ __u8 selector, shift;
};
};
struct xt_PROTO_info {
- __u8 mode;
- __u8 proto;
+ __u8 mode, proto;
};
};
struct xt_fuzzy_mtinfo {
- uint32_t minimum_rate;
- uint32_t maximum_rate;
- uint32_t packets_total;
- uint32_t bytes_total;
- uint32_t previous_time;
- uint32_t present_time;
+ uint32_t minimum_rate, maximum_rate;
+ uint32_t packets_total, bytes_total;
+ uint32_t previous_time, present_time;
uint32_t mean_rate;
uint8_t acceptance_rate;
};
/* Yup, an address range will be passed in with host-order */
struct geoip_subnet4 {
- __u32 begin;
- __u32 end;
+ __u32 begin, end;
};
struct geoip_subnet6 {
};
struct xt_geoip_match_info {
- __u8 flags;
- __u8 count;
+ __u8 flags, count;
__u16 cc[XT_GEOIP_MAX];
/* Used internally by the kernel */
#pragma once
struct xt_gradm_mtinfo {
- __u16 flags;
- __u16 invflags;
+ __u16 flags, invflags;
};
struct xt_iface_mtinfo {
char ifname[IFNAMSIZ];
- __u16 flags;
- __u16 invflags;
+ __u16 flags, invflags;
};
};
struct ipt_p2p_info {
- int cmd;
- int debug;
+ int cmd, debug;
};
* @flags: see above
*/
struct xt_ipv4options_mtinfo1 {
- __u32 map;
- __u32 invert;
+ __u32 map, invert;
__u8 flags;
};
#define SCAN_WEIGHT_THRESHOLD SCAN_MAX_COUNT
struct xt_psd_info {
- __u32 weight_threshold;
- __u32 delay_threshold;
- __u16 lo_ports_weight;
- __u16 hi_ports_weight;
+ __u32 weight_threshold, delay_threshold;
+ __u16 lo_ports_weight, hi_ports_weight;
};