xtables-monitor: add missing spaces in printed str
PATCH 1/1 xtables-monitor: add missing spaces in printed str
when printing the ID and OPTs in iptables/xtables-monitor.c, a space is missing after the string, thereby concatenating the number with the next item in the printed PACKET line.
Signed-off-by Anton Luka Šijanec <[email protected]>
--- iptables/xtables-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
iptables/xtables-monitor.c +2 -2
@@ -339,7 +339,7 @@ static void trace_print_packet(const struct nftnl_trace *nlt, struct cb_arg *arginet_ntop (AF_INET , &iph->daddr, addrbuf,sizeof (addrbuf));printf ("DST=%s " , addrbuf); -printf ("LEN=%d TOS=0x%x TTL=%d ID=%d" ,ntohs (iph->tot_len), iph->tos, iph->ttl,ntohs (iph->id)); +printf ("LEN=%d TOS=0x%x TTL=%d ID=%d " ,ntohs (iph->tot_len), iph->tos, iph->ttl,ntohs (iph->id));if (iph->frag_off &htons (0x8000 ))printf ("CE " );if (iph->frag_off &htons (IP_DF ))
@@ -362,7 +362,7 @@ static void trace_print_packet(const struct nftnl_trace *nlt, struct cb_arg *argprintf ("OPT (" );for (i =0 ; i < optsize; i++)printf ("%02X" , op[i]); -printf (")" ); +printf (") " ); }break ; }
Signature · 1 line
2.35.1
Phil Sutter
reviewerQuoted 5 lines · Anton Luka Šijanec
when printing the ID and OPTs in
iptables/xtables-monitor.c, a space is missing after the string, thereby concatenating the number with the next item in the printed PACKET line.Signed-off-by Anton Luka Šijanec <[email protected]>
Applied after adding Fixes: tag.
Thanks, Phil