[Bug 93] New: iptables -L format bug
bugzilla-daemon@netfilter.org
bugzilla-daemon@netfilter.org
Thu, 29 May 2003 07:51:26 +0200
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=93
Summary: iptables -L format bug
Product: iptables userspace
Version: unspecified
Platform: i386
OS/Version: other
Status: NEW
Severity: minor
Priority: P2
Component: iptables
AssignedTo: laforge@netfilter.org
ReportedBy: ejhuff@huff20may77.us
CC: netfilter-buglog@lists.netfilter.org
With a long domain name on destination, iptables -L does not
put a space after the domain name and before the extension match rules.
cvs server: Diffing netfilter//userspace
Index: netfilter//userspace/iptables.c
===================================================================
RCS file: /cvspublic/netfilter/userspace/iptables.c,v
retrieving revision 1.58
diff -u -r1.58 iptables.c
--- netfilter//userspace/iptables.c 5 May 2003 19:33:40 -0000 1.58
+++ netfilter//userspace/iptables.c 29 May 2003 04:49:58 -0000
@@ -1254,14 +1254,14 @@
fputc(fw->ip.invflags & IPT_INV_DSTIP ? '!' : ' ', stdout);
if (fw->ip.dmsk.s_addr == 0L && !(format & FMT_NUMERIC))
- printf(FMT("%-19s","-> %s"), "anywhere");
+ printf(FMT("%-18s ","-> %s "), "anywhere");
else {
if (format & FMT_NUMERIC)
sprintf(buf, "%s", addr_to_dotted(&(fw->ip.dst)));
else
sprintf(buf, "%s", addr_to_anyname(&(fw->ip.dst)));
strcat(buf, mask_to_dotted(&(fw->ip.dmsk)));
- printf(FMT("%-19s","-> %s"), buf);
+ printf(FMT("%-18s ","-> %s "), buf);
}
if (format & FMT_NOTABLE)
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.