patch-1.3.60 linux/net/ipv4/ip_fw.c

Next file: linux/net/ipv4/ip_input.c
Previous file: linux/net/ipv4/ip_forward.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.59/linux/net/ipv4/ip_fw.c linux/net/ipv4/ip_fw.c
@@ -24,6 +24,8 @@
  *		Wilfred Mollenvanger 7/7/1995.
  *	TCP attack protection.
  *		Alan Cox 25/8/95, based on information from bugtraq.
+ *	ICMP type printk, IP_FW_F_APPEND
+ *		Bernd Eckenfels 1996-01-31
  *
  * Masquerading functionality
  *
@@ -441,7 +443,7 @@
 				case IPPROTO_UDP:
 					printk("UDP ");
 				case IPPROTO_ICMP:
-					printk("ICMP ");
+					printk("ICMP:%d ",icmp_type);
 					break;
 				default:
 					printk("p=%d ",ip->protocol);
@@ -1082,6 +1084,10 @@
 		chtmp_prev=NULL;
 		for (chtmp=*chainptr;chtmp!=NULL;chtmp=chtmp->fw_next) 
 		{
+			if (ftmp->fw_flg & IP_FW_F_APPEND) {
+				chtmp_prev=chtmp;
+				continue;
+			}
 			addb4=0;
 			newkind=ftmp->fw_flg & IP_FW_F_KIND;
 			oldkind=chtmp->fw_flg & IP_FW_F_KIND;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this