diff options
| author | Junzy <[email protected]> | 2024-08-27 11:02:31 +0800 |
|---|---|---|
| committer | Junzy <[email protected]> | 2024-08-27 11:02:31 +0800 |
| commit | 4b7168f6bd18fac87b422e16d19efbb36fe30026 (patch) | |
| tree | c722e64ac38b22e8cca586d056ef333d8c5b9c4c /src/nat_format.h | |
| parent | 919b90a2da9ff0188ef56805c757456d81b6f47c (diff) | |
update src and CMake: now make succ
Diffstat (limited to 'src/nat_format.h')
| -rw-r--r-- | src/nat_format.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/nat_format.h b/src/nat_format.h index da1519f..6452b99 100644 --- a/src/nat_format.h +++ b/src/nat_format.h @@ -16,9 +16,9 @@ struct nat_format_global_info { u_int32_t batch_size; char host_ip[64]; - u_int32_t host_port; + int32_t host_port; char multicast_ip[64]; - u_int32_t multicast_port; + int32_t multicast_port; int32_t hw_syslog_port; int32_t hw_binary_port; @@ -50,4 +50,8 @@ struct nat_payload { char protocol = FORMAT_LOG_PROTOCOL_UDP; }; +extern "C" int nat_format_init(void); +extern "C" void nat_format_destroy(void); +extern "C" char nat_format_entry(struct streaminfo *a_udp, void **pme, int thread_seq, void *a_packet); + #endif // NAT_FORMAT_H_ |
