extensions: syntactically compact struct definitions

This commit is contained in:
Jan Engelhardt
2021-07-17 11:32:19 +02:00
parent 81ab0b9586
commit 714998176a
10 changed files with 16 additions and 34 deletions

View File

@@ -37,8 +37,7 @@
/* 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;
};
@@ -57,8 +56,5 @@ struct ipt_acc_handle_sockopt {
*/
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;
};