? .cdtproject ? .project ? iptables-save.patch Index: iptables-save.c =================================================================== RCS file: /cvspublic/iptables/iptables-save.c,v retrieving revision 1.27 diff -u -r1.27 iptables-save.c --- iptables-save.c 21 Feb 2004 09:20:34 -0000 1.27 +++ iptables-save.c 2 Apr 2004 00:53:10 -0000 @@ -84,6 +84,13 @@ unsigned int i; const char *invertstr = invert ? "! " : ""; + struct protoent *pent = getprotobynumber(proto); + if (pent) { + printf("-p %s%s ", + invertstr, pent->p_name); + return; + } + for (i = 0; i < sizeof(chain_protos)/sizeof(struct pprot); i++) if (chain_protos[i].num == proto) { printf("-p %s%s ",