aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorYunchih Chen <yunchih.cat@gmail.com>2018-03-18 21:10:49 +0800
committerYunchih Chen <yunchih.cat@gmail.com>2018-03-18 21:10:49 +0800
commitd6fe4152d0a213cc64336853271188371c9d3563 (patch)
tree9a69e6900bb96a9e2906c14840968a92c9eab159 /include
parent597453d4b147cb0e07704e1dec455cfc7cebe382 (diff)
downloadnfcollect-d6fe4152d0a213cc64336853271188371c9d3563.tar
nfcollect-d6fe4152d0a213cc64336853271188371c9d3563.tar.gz
nfcollect-d6fe4152d0a213cc64336853271188371c9d3563.tar.bz2
nfcollect-d6fe4152d0a213cc64336853271188371c9d3563.tar.lz
nfcollect-d6fe4152d0a213cc64336853271188371c9d3563.tar.xz
nfcollect-d6fe4152d0a213cc64336853271188371c9d3563.tar.zst
nfcollect-d6fe4152d0a213cc64336853271188371c9d3563.zip
Format with clang-format
Diffstat (limited to 'include')
-rw-r--r--include/main.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/main.h b/include/main.h
index 44ed766..ad62417 100644
--- a/include/main.h
+++ b/include/main.h
@@ -89,7 +89,7 @@ typedef struct __attribute__((packed)) _nfl_header_t {
uint32_t n_entries; /* 4 4 */
uint32_t max_n_entries; /* 8 4 */
uint32_t cksum; /* 12 4 */
- enum nfl_compression_t compression_opt; /* 16 4 */
+ enum nfl_compression_t compression_opt; /* 16 4 */
time_t start_time; /* 20 8 */
time_t end_time; /* 28 8 */
@@ -99,28 +99,28 @@ typedef struct __attribute__((packed)) _nfl_header_t {
typedef struct __attribute__((packed)) _nfl_entry_t {
// current timestamp since UNIX epoch
- time_t timestamp; /* 0 8 */
+ time_t timestamp; /* 0 8 */
// dest address
- struct in_addr daddr; /* 8 4 */
+ struct in_addr daddr; /* 8 4 */
// uid
- uint32_t uid; /* 12 4 */
+ uint32_t uid; /* 12 4 */
// unused space, just for padding
- uint8_t __unused1; /* 16 1 */
+ uint8_t __unused1; /* 16 1 */
// IP protocol (UDP or TCP)
- uint8_t protocol; /* 17 1 */
+ uint8_t protocol; /* 17 1 */
// unused space, just for padding
- uint16_t __unused2; /* 18 2 */
+ uint16_t __unused2; /* 18 2 */
// source port
- uint16_t sport; /* 20 2 */
+ uint16_t sport; /* 20 2 */
// destination port
- uint16_t dport; /* 22 2 */
+ uint16_t dport; /* 22 2 */
/* size: 24, cachelines: 1, members: 8 */
} nfl_entry_t;