… | |
… | |
25 | |
25 | |
26 | #include "gettext.h" |
26 | #include "gettext.h" |
27 | |
27 | |
28 | #include "sockinfo.h" |
28 | #include "sockinfo.h" |
29 | #include "slog.h" |
29 | #include "slog.h" |
|
|
30 | |
|
|
31 | #include <cstring> |
|
|
32 | #include <cstdio> |
30 | |
33 | |
31 | // all ipv4-based protocols |
34 | // all ipv4-based protocols |
32 | #define PROTv4 (PROT_UDPv4 | PROT_TCPv4 | PROT_ICMPv4 | PROT_IPv4 | PROT_DNSv4) |
35 | #define PROTv4 (PROT_UDPv4 | PROT_TCPv4 | PROT_ICMPv4 | PROT_IPv4 | PROT_DNSv4) |
33 | |
36 | |
34 | void sockinfo::set (const sockaddr_in *sa, u8 prot_) |
37 | void sockinfo::set (const sockaddr_in *sa, u8 prot_) |