blob: 04d3ce0e9e29aa2cb4de92489e82aff53bcc44a4 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/bandwidthd.h
2+++ b/bandwidthd.h
3@@ -120,7 +120,7 @@ struct config
4 char *sensor_id;
5 };
6
7-struct SubnetData
8+extern struct SubnetData
9 {
10 uint32_t ip;
11 uint32_t mask;
12@@ -139,7 +139,7 @@ struct Statistics
13 unsigned long long p2p;
14 };
15
16-struct IPData
17+extern struct IPData
18 {
19 time_t timestamp;
20 uint32_t ip; // Host byte order