* [PATCH] ctproto printing in conntrack match (bug 398)
@ 2005-11-13 15:18 Phil Oester
2005-11-17 13:23 ` Harald Welte
0 siblings, 1 reply; 2+ messages in thread
From: Phil Oester @ 2005-11-13 15:18 UTC (permalink / raw)
To: netfilter-devel
[-- Attachment #1: Type: text/plain, Size: 176 bytes --]
The conntrack match does not print any info for --ctproto, thus
breaking iptables-restore of any rules using this option. Below
patch adds output and closes bug #398.
Phil
[-- Attachment #2: patch-ctproto --]
[-- Type: text/plain, Size: 618 bytes --]
diff -ru ipt-orig/extensions/libipt_conntrack.c ipt-new/extensions/libipt_conntrack.c
--- ipt-orig/extensions/libipt_conntrack.c 2005-10-31 11:03:50.000000000 -0800
+++ ipt-new/extensions/libipt_conntrack.c 2005-11-13 07:12:20.000000000 -0800
@@ -442,6 +442,13 @@
print_state(sinfo->statemask);
}
+ if(sinfo->flags & IPT_CONNTRACK_PROTO) {
+ printf("%sctproto ", optpfx);
+ if (sinfo->invflags & IPT_CONNTRACK_PROTO)
+ printf("! ");
+ printf("%u ", sinfo->tuple[IP_CT_DIR_ORIGINAL].dst.protonum);
+ }
+
if(sinfo->flags & IPT_CONNTRACK_ORIGSRC) {
printf("%sctorigsrc ", optpfx);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-11-17 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13 15:18 [PATCH] ctproto printing in conntrack match (bug 398) Phil Oester
2005-11-17 13:23 ` Harald Welte
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.