patch-2.1.1 linux/net/ipv4/icmp.c
Next file: linux/net/ipv4/raw.c
Previous file: linux/net/ipv4/arp.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Oct 2 13:16:56 1996
- Orig file:
v2.1.0/linux/net/ipv4/icmp.c
- Orig date:
Wed Sep 25 11:10:02 1996
diff -u --recursive --new-file v2.1.0/linux/net/ipv4/icmp.c linux/net/ipv4/icmp.c
@@ -283,7 +283,10 @@
{ ENETUNREACH, 1 }, /* ICMP_NET_ANO */
{ EHOSTUNREACH, 1 }, /* ICMP_HOST_ANO */
{ EOPNOTSUPP, 0 }, /* ICMP_NET_UNR_TOS */
- { EOPNOTSUPP, 0 } /* ICMP_HOST_UNR_TOS */
+ { EOPNOTSUPP, 0 }, /* ICMP_HOST_UNR_TOS */
+ { EOPNOTSUPP, 1 }, /* ICMP_PKT_FILTERED */
+ { EOPNOTSUPP, 1 }, /* ICMP_PREC_VIOLATION */
+ { EOPNOTSUPP, 1 } /* ICMP_PREC_CUTOFF */
};
/*
@@ -734,7 +737,7 @@
default:
break;
}
- if(icmph->code>15) /* Invalid type */
+ if(icmph->code>NR_ICMP_UNREACH) /* Invalid type */
return;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov