Commit 44973796 authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller

[IPV4/IPV6]: ICMP cleanups.

parent d63b5a73
...@@ -116,7 +116,7 @@ struct icmp_bxm { ...@@ -116,7 +116,7 @@ struct icmp_bxm {
DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics); DEFINE_SNMP_STAT(struct icmp_mib, icmp_statistics);
/* An array of errno for error messages from dest unreach. */ /* An array of errno for error messages from dest unreach. */
/* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOS_UNREACH and SR_FAIELD MUST be considered 'transient errs'. */ /* RFC 1122: 3.2.2.1 States that NET_UNREACH, HOST_UNREACH and SR_FAILED MUST be considered 'transient errs'. */
struct icmp_err icmp_err_convert[] = { struct icmp_err icmp_err_convert[] = {
{ {
......
...@@ -353,7 +353,7 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info, ...@@ -353,7 +353,7 @@ void icmpv6_send(struct sk_buff *skb, int type, int code, __u32 info,
ip6_build_xmit(sk, icmpv6_getfrag, &msg, &fl, len, NULL, -1, ip6_build_xmit(sk, icmpv6_getfrag, &msg, &fl, len, NULL, -1,
MSG_DONTWAIT); MSG_DONTWAIT);
if (type >= ICMPV6_DEST_UNREACH && type <= ICMPV6_PARAMPROB) if (type >= ICMPV6_DEST_UNREACH && type <= ICMPV6_PARAMPROB)
ICMP6_STATS_PTR_BH(Icmp6OutDestUnreachs) [type-1]++; ICMP6_STATS_PTR_BH(Icmp6OutDestUnreachs) [type-ICMPV6_DEST_UNREACH]++;
ICMP6_INC_STATS_BH(Icmp6OutMsgs); ICMP6_INC_STATS_BH(Icmp6OutMsgs);
out: out:
icmpv6_xmit_unlock(); icmpv6_xmit_unlock();
...@@ -524,7 +524,7 @@ static int icmpv6_rcv(struct sk_buff *skb) ...@@ -524,7 +524,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
break; break;
case ICMPV6_ECHO_REPLY: case ICMPV6_ECHO_REPLY:
/* we coulnd't care less */ /* we couldn't care less */
break; break;
case ICMPV6_PKT_TOOBIG: case ICMPV6_PKT_TOOBIG:
...@@ -577,7 +577,7 @@ static int icmpv6_rcv(struct sk_buff *skb) ...@@ -577,7 +577,7 @@ static int icmpv6_rcv(struct sk_buff *skb)
default: default:
if (net_ratelimit()) if (net_ratelimit())
printk(KERN_DEBUG "icmpv6: msg of unkown type\n"); printk(KERN_DEBUG "icmpv6: msg of unknown type\n");
/* informational */ /* informational */
if (type & ICMPV6_INFOMSG_MASK) if (type & ICMPV6_INFOMSG_MASK)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment