diff options
| author | Artem B. Bityuckiy <dedekind@infradead.org> | 2005-07-06 10:43:18 -0400 |
|---|---|---|
| committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-07-06 13:40:38 -0400 |
| commit | b3539219c9ea20ebf6a5ea3cc534f423a3607c41 (patch) | |
| tree | d17c31c0eac0a7290ba5011b59a100fd9e9c9532 /net/ipv6 | |
| parent | 6430a8def12edebc1c9c7c2621d33ca0e8653c33 (diff) | |
| parent | a18bcb7450840f07a772a45229de4811d930f461 (diff) | |
Merge with rsync://fileserver/linux
Update to 2.6.12-rc3
Diffstat (limited to 'net/ipv6')
| -rw-r--r-- | net/ipv6/addrconf.c | 19 | ||||
| -rw-r--r-- | net/ipv6/af_inet6.c | 4 | ||||
| -rw-r--r-- | net/ipv6/ip6_flowlabel.c | 1 | ||||
| -rw-r--r-- | net/ipv6/ip6_output.c | 1 | ||||
| -rw-r--r-- | net/ipv6/tcp_ipv6.c | 2 |
5 files changed, 8 insertions, 19 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c index a54d4ef3fd35..77004b9456c0 100644 --- a/net/ipv6/addrconf.c +++ b/net/ipv6/addrconf.c | |||
| @@ -2777,7 +2777,7 @@ static int inet6_dump_addr(struct sk_buff *skb, struct netlink_callback *cb, | |||
| 2777 | read_lock_bh(&idev->lock); | 2777 | read_lock_bh(&idev->lock); |
| 2778 | switch (type) { | 2778 | switch (type) { |
| 2779 | case UNICAST_ADDR: | 2779 | case UNICAST_ADDR: |
| 2780 | /* unicast address */ | 2780 | /* unicast address incl. temp addr */ |
| 2781 | for (ifa = idev->addr_list; ifa; | 2781 | for (ifa = idev->addr_list; ifa; |
| 2782 | ifa = ifa->if_next, ip_idx++) { | 2782 | ifa = ifa->if_next, ip_idx++) { |
| 2783 | if (ip_idx < s_ip_idx) | 2783 | if (ip_idx < s_ip_idx) |
| @@ -2788,19 +2788,6 @@ static int inet6_dump_addr(struct sk_buff *skb, struct netlink_callback *cb, | |||
| 2788 | NLM_F_MULTI)) <= 0) | 2788 | NLM_F_MULTI)) <= 0) |
| 2789 | goto done; | 2789 | goto done; |
| 2790 | } | 2790 | } |
| 2791 | /* temp addr */ | ||
| 2792 | #ifdef CONFIG_IPV6_PRIVACY | ||
| 2793 | for (ifa = idev->tempaddr_list; ifa; | ||
| 2794 | ifa = ifa->tmp_next, ip_idx++) { | ||
| 2795 | if (ip_idx < s_ip_idx) | ||
| 2796 | continue; | ||
| 2797 | if ((err = inet6_fill_ifaddr(skb, ifa, | ||
| 2798 | NETLINK_CB(cb->skb).pid, | ||
| 2799 | cb->nlh->nlmsg_seq, RTM_NEWADDR, | ||
| 2800 | NLM_F_MULTI)) <= 0) | ||
| 2801 | goto done; | ||
| 2802 | } | ||
| 2803 | #endif | ||
| 2804 | break; | 2791 | break; |
| 2805 | case MULTICAST_ADDR: | 2792 | case MULTICAST_ADDR: |
| 2806 | /* multicast address */ | 2793 | /* multicast address */ |
| @@ -2923,6 +2910,7 @@ static int inet6_fill_ifinfo(struct sk_buff *skb, struct inet6_dev *idev, | |||
| 2923 | nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*r), flags); | 2910 | nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*r), flags); |
| 2924 | r = NLMSG_DATA(nlh); | 2911 | r = NLMSG_DATA(nlh); |
| 2925 | r->ifi_family = AF_INET6; | 2912 | r->ifi_family = AF_INET6; |
| 2913 | r->__ifi_pad = 0; | ||
| 2926 | r->ifi_type = dev->type; | 2914 | r->ifi_type = dev->type; |
| 2927 | r->ifi_index = dev->ifindex; | 2915 | r->ifi_index = dev->ifindex; |
| 2928 | r->ifi_flags = dev_get_flags(dev); | 2916 | r->ifi_flags = dev_get_flags(dev); |
| @@ -3030,9 +3018,12 @@ static int inet6_fill_prefix(struct sk_buff *skb, struct inet6_dev *idev, | |||
| 3030 | nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*pmsg), flags); | 3018 | nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*pmsg), flags); |
| 3031 | pmsg = NLMSG_DATA(nlh); | 3019 | pmsg = NLMSG_DATA(nlh); |
| 3032 | pmsg->prefix_family = AF_INET6; | 3020 | pmsg->prefix_family = AF_INET6; |
| 3021 | pmsg->prefix_pad1 = 0; | ||
| 3022 | pmsg->prefix_pad2 = 0; | ||
| 3033 | pmsg->prefix_ifindex = idev->dev->ifindex; | 3023 | pmsg->prefix_ifindex = idev->dev->ifindex; |
| 3034 | pmsg->prefix_len = pinfo->prefix_len; | 3024 | pmsg->prefix_len = pinfo->prefix_len; |
| 3035 | pmsg->prefix_type = pinfo->type; | 3025 | pmsg->prefix_type = pinfo->type; |
| 3026 | pmsg->prefix_pad3 = 0; | ||
| 3036 | 3027 | ||
| 3037 | pmsg->prefix_flags = 0; | 3028 | pmsg->prefix_flags = 0; |
| 3038 | if (pinfo->onlink) | 3029 | if (pinfo->onlink) |
diff --git a/net/ipv6/af_inet6.c b/net/ipv6/af_inet6.c index 2b193e3df49a..28d9bcab0970 100644 --- a/net/ipv6/af_inet6.c +++ b/net/ipv6/af_inet6.c | |||
| @@ -774,7 +774,6 @@ static int __init inet6_init(void) | |||
| 774 | if (if6_proc_init()) | 774 | if (if6_proc_init()) |
| 775 | goto proc_if6_fail; | 775 | goto proc_if6_fail; |
| 776 | #endif | 776 | #endif |
| 777 | ipv6_packet_init(); | ||
| 778 | ip6_route_init(); | 777 | ip6_route_init(); |
| 779 | ip6_flowlabel_init(); | 778 | ip6_flowlabel_init(); |
| 780 | err = addrconf_init(); | 779 | err = addrconf_init(); |
| @@ -791,6 +790,8 @@ static int __init inet6_init(void) | |||
| 791 | /* Init v6 transport protocols. */ | 790 | /* Init v6 transport protocols. */ |
| 792 | udpv6_init(); | 791 | udpv6_init(); |
| 793 | tcpv6_init(); | 792 | tcpv6_init(); |
| 793 | |||
| 794 | ipv6_packet_init(); | ||
| 794 | err = 0; | 795 | err = 0; |
| 795 | out: | 796 | out: |
| 796 | return err; | 797 | return err; |
| @@ -798,7 +799,6 @@ out: | |||
| 798 | addrconf_fail: | 799 | addrconf_fail: |
| 799 | ip6_flowlabel_cleanup(); | 800 | ip6_flowlabel_cleanup(); |
| 800 | ip6_route_cleanup(); | 801 | ip6_route_cleanup(); |
| 801 | ipv6_packet_cleanup(); | ||
| 802 | #ifdef CONFIG_PROC_FS | 802 | #ifdef CONFIG_PROC_FS |
| 803 | if6_proc_exit(); | 803 | if6_proc_exit(); |
| 804 | proc_if6_fail: | 804 | proc_if6_fail: |
diff --git a/net/ipv6/ip6_flowlabel.c b/net/ipv6/ip6_flowlabel.c index 0e5f7499debb..b6c73da5ff35 100644 --- a/net/ipv6/ip6_flowlabel.c +++ b/net/ipv6/ip6_flowlabel.c | |||
| @@ -244,7 +244,6 @@ struct ipv6_txoptions *fl6_merge_options(struct ipv6_txoptions * opt_space, | |||
| 244 | opt_space->opt_nflen = 0; | 244 | opt_space->opt_nflen = 0; |
| 245 | } | 245 | } |
| 246 | opt_space->dst1opt = fopt->dst1opt; | 246 | opt_space->dst1opt = fopt->dst1opt; |
| 247 | opt_space->auth = fopt->auth; | ||
| 248 | opt_space->opt_flen = fopt->opt_flen; | 247 | opt_space->opt_flen = fopt->opt_flen; |
| 249 | return opt_space; | 248 | return opt_space; |
| 250 | } | 249 | } |
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 06e7cdaeedc5..1f2c2f9e353f 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
| @@ -465,7 +465,6 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) | |||
| 465 | to->pkt_type = from->pkt_type; | 465 | to->pkt_type = from->pkt_type; |
| 466 | to->priority = from->priority; | 466 | to->priority = from->priority; |
| 467 | to->protocol = from->protocol; | 467 | to->protocol = from->protocol; |
| 468 | to->security = from->security; | ||
| 469 | dst_release(to->dst); | 468 | dst_release(to->dst); |
| 470 | to->dst = dst_clone(from->dst); | 469 | to->dst = dst_clone(from->dst); |
| 471 | to->dev = from->dev; | 470 | to->dev = from->dev; |
diff --git a/net/ipv6/tcp_ipv6.c b/net/ipv6/tcp_ipv6.c index 9dac7fdf4726..f6e288dc116e 100644 --- a/net/ipv6/tcp_ipv6.c +++ b/net/ipv6/tcp_ipv6.c | |||
| @@ -2018,7 +2018,7 @@ static int tcp_v6_init_sock(struct sock *sk) | |||
| 2018 | */ | 2018 | */ |
| 2019 | tp->snd_ssthresh = 0x7fffffff; | 2019 | tp->snd_ssthresh = 0x7fffffff; |
| 2020 | tp->snd_cwnd_clamp = ~0; | 2020 | tp->snd_cwnd_clamp = ~0; |
| 2021 | tp->mss_cache_std = tp->mss_cache = 536; | 2021 | tp->mss_cache = 536; |
| 2022 | 2022 | ||
| 2023 | tp->reordering = sysctl_tcp_reordering; | 2023 | tp->reordering = sysctl_tcp_reordering; |
| 2024 | 2024 | ||
