mirror of https://github.com/mkerrisk/man-pages
bpf.2: ffix
'\' must be escaped. Signed-off-by: Douglas Caetano dos Santos <douglascs@taghos.com.br> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
49145a385b
commit
8f66cfd74a
|
@ -986,7 +986,7 @@ main(int argc, char **argv)
|
||||||
assert(bpf_lookup_elem(map_fd, &key, &tcp_cnt) == 0);
|
assert(bpf_lookup_elem(map_fd, &key, &tcp_cnt) == 0);
|
||||||
key = IPPROTO_UDP;
|
key = IPPROTO_UDP;
|
||||||
assert(bpf_lookup_elem(map_fd, &key, &udp_cnt) == 0);
|
assert(bpf_lookup_elem(map_fd, &key, &udp_cnt) == 0);
|
||||||
printf("TCP %lld UDP %lld packets\n", tcp_cnt, udp_cnt);
|
printf("TCP %lld UDP %lld packets\\n", tcp_cnt, udp_cnt);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue