mirror of
https://passt.top/passt
synced 2025-06-13 19:15:34 +02:00
conf, util, tap: Implement --trace option for extra verbose logging
--debug can be a bit too noisy, especially as single packets or socket messages are logged: implement a new option, --trace, implying --debug, that enables all debug messages. Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
14c4c0253c
commit
d2e40bb8d9
9 changed files with 55 additions and 4 deletions
4
tap.c
4
tap.c
|
@ -283,14 +283,14 @@ static void tap_packet_debug(struct iphdr *iph, struct ipv6hdr *ip6h,
|
|||
}
|
||||
|
||||
if (proto == IPPROTO_TCP || proto == IPPROTO_UDP) {
|
||||
debug("protocol %i from tap: %s:%i -> %s:%i (%i packet%s)",
|
||||
trace("protocol %i from tap: %s:%i -> %s:%i (%i packet%s)",
|
||||
proto, seq4 ? buf4s : buf6s,
|
||||
ntohs(seq4 ? seq4->source : seq6->source),
|
||||
seq4 ? buf4d : buf6d,
|
||||
ntohs(seq4 ? seq4->dest : seq6->dest),
|
||||
count, count == 1 ? "" : "s");
|
||||
} else {
|
||||
debug("protocol %i from tap: %s -> %s (%i packet%s)",
|
||||
trace("protocol %i from tap: %s -> %s (%i packet%s)",
|
||||
proto, iph ? buf4s : buf6s, iph ? buf4d : buf6d,
|
||||
count, count == 1 ? "" : "s");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue