icmp.c (b05005772f34497eb2b7415a651fe785cbe70e16) | icmp.c (6f912042256c12b0927438122594f5379b364f5d) |
---|---|
1/* 2 * Internet Control Message Protocol (ICMPv6) 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * $Id: icmp.c,v 1.38 2002/02/08 03:57:19 davem Exp $ --- 703 unchanged lines hidden (view full) --- 712 return 0; 713} 714 715int __init icmpv6_init(struct net_proto_family *ops) 716{ 717 struct sock *sk; 718 int err, i, j; 719 | 1/* 2 * Internet Control Message Protocol (ICMPv6) 3 * Linux INET6 implementation 4 * 5 * Authors: 6 * Pedro Roque <roque@di.fc.ul.pt> 7 * 8 * $Id: icmp.c,v 1.38 2002/02/08 03:57:19 davem Exp $ --- 703 unchanged lines hidden (view full) --- 712 return 0; 713} 714 715int __init icmpv6_init(struct net_proto_family *ops) 716{ 717 struct sock *sk; 718 int err, i, j; 719 |
720 for_each_cpu(i) { | 720 for_each_possible_cpu(i) { |
721 err = sock_create_kern(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6, 722 &per_cpu(__icmpv6_socket, i)); 723 if (err < 0) { 724 printk(KERN_ERR 725 "Failed to initialize the ICMP6 control socket " 726 "(err %d).\n", 727 err); 728 goto fail; --- 29 unchanged lines hidden (view full) --- 758 759 return err; 760} 761 762void icmpv6_cleanup(void) 763{ 764 int i; 765 | 721 err = sock_create_kern(PF_INET6, SOCK_RAW, IPPROTO_ICMPV6, 722 &per_cpu(__icmpv6_socket, i)); 723 if (err < 0) { 724 printk(KERN_ERR 725 "Failed to initialize the ICMP6 control socket " 726 "(err %d).\n", 727 err); 728 goto fail; --- 29 unchanged lines hidden (view full) --- 758 759 return err; 760} 761 762void icmpv6_cleanup(void) 763{ 764 int i; 765 |
766 for_each_cpu(i) { | 766 for_each_possible_cpu(i) { |
767 sock_release(per_cpu(__icmpv6_socket, i)); 768 } 769 inet6_del_protocol(&icmpv6_protocol, IPPROTO_ICMPV6); 770} 771 772static const struct icmp6_err { 773 int err; 774 int fatal; --- 69 unchanged lines hidden --- | 767 sock_release(per_cpu(__icmpv6_socket, i)); 768 } 769 inet6_del_protocol(&icmpv6_protocol, IPPROTO_ICMPV6); 770} 771 772static const struct icmp6_err { 773 int err; 774 int fatal; --- 69 unchanged lines hidden --- |