diff options
author | 2022-12-09 10:27:02 -0500 | |
---|---|---|
committer | 2022-12-09 10:27:02 -0500 | |
commit | 01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd (patch) | |
tree | f2e07d56ecb48edfb8b3c34acb938ed4e690f54a /src/fnettrace-icmp | |
parent | Merge pull request #5504 from kmk3/build-cflags-improvements (diff) | |
download | firejail-01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd.tar.gz firejail-01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd.tar.zst firejail-01f9dc87bfe191a9e1ded7a1a1d52a61bbe227bd.zip |
small nettrace fixes
Diffstat (limited to 'src/fnettrace-icmp')
-rw-r--r-- | src/fnettrace-icmp/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fnettrace-icmp/main.c b/src/fnettrace-icmp/main.c index 986091bb4..bb857c922 100644 --- a/src/fnettrace-icmp/main.c +++ b/src/fnettrace-icmp/main.c | |||
@@ -64,19 +64,19 @@ char *code_dest_unreachable[16] = { | |||
64 | "Host unreachable for ToS", | 64 | "Host unreachable for ToS", |
65 | "Communication administratively prohibited", | 65 | "Communication administratively prohibited", |
66 | "Host Precedence Violation", | 66 | "Host Precedence Violation", |
67 | "Precedence cutoff in effect " | 67 | "Precedence cutoff in effect" |
68 | }; | 68 | }; |
69 | 69 | ||
70 | char *code_redirect_message[4] = { | 70 | char *code_redirect_message[4] = { |
71 | "Datagram for the Network", | 71 | "Datagram for the Network", |
72 | "Datagram for the Host", | 72 | "Datagram for the Host", |
73 | "Datagram for the ToS & network", | 73 | "Datagram for the ToS & network", |
74 | "Datagram for the ToS & host " | 74 | "Datagram for the ToS & host" |
75 | }; | 75 | }; |
76 | 76 | ||
77 | char *code_time_exceeded[2] = { | 77 | char *code_time_exceeded[2] = { |
78 | "TTL expired in transit", | 78 | "TTL expired in transit", |
79 | "Fragment reassembly time exceeded " | 79 | "Fragment reassembly time exceeded" |
80 | }; | 80 | }; |
81 | 81 | ||
82 | char *code_bad_ip_header[3] = { | 82 | char *code_bad_ip_header[3] = { |
@@ -115,6 +115,7 @@ static void print_icmp(uint32_t ip_dest, uint32_t ip_src, uint8_t type, uint8_t | |||
115 | icmp_bytes, | 115 | icmp_bytes, |
116 | type_ptr, | 116 | type_ptr, |
117 | code_ptr); | 117 | code_ptr); |
118 | fflush(0); | ||
118 | } | 119 | } |
119 | 120 | ||
120 | // https://www.kernel.org/doc/html/latest/networking/filter.html | 121 | // https://www.kernel.org/doc/html/latest/networking/filter.html |