icmp: ICMP is MPSAFE
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 21 Feb 2013 04:44:42 +0000 (12:44 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 21 Feb 2013 04:44:42 +0000 (12:44 +0800)
sys/netinet/in_proto.c

index 461362f..7c6cfad 100644 (file)
@@ -231,7 +231,7 @@ struct protosw inetsw[] = {
        .pr_type = SOCK_RAW,
        .pr_domain = &inetdomain,
        .pr_protocol = IPPROTO_ICMP,
-       .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR,
+       .pr_flags = PR_ATOMIC|PR_ADDR|PR_LASTHDR|PR_MPSAFE,
 
        .pr_input = icmp_input,
        .pr_output = NULL,