b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- 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 |