diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index d86d7f67a597..91f8047463ec 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -915,7 +915,7 @@ static int udp_v6_push_pending_frames(struct sock *sk) | |||
915 | 915 | ||
916 | /* add protocol-dependent pseudo-header */ | 916 | /* add protocol-dependent pseudo-header */ |
917 | uh->check = csum_ipv6_magic(&fl->fl6_src, &fl->fl6_dst, | 917 | uh->check = csum_ipv6_magic(&fl->fl6_src, &fl->fl6_dst, |
918 | up->len, fl->proto, csum ); | 918 | up->len, fl->flowi_proto, csum); |
919 | if (uh->check == 0) | 919 | if (uh->check == 0) |
920 | uh->check = CSUM_MANGLED_0; | 920 | uh->check = CSUM_MANGLED_0; |
921 | 921 | ||
@@ -1060,7 +1060,7 @@ do_udp_sendmsg: | |||
1060 | if (addr_len >= sizeof(struct sockaddr_in6) && | 1060 | if (addr_len >= sizeof(struct sockaddr_in6) && |
1061 | sin6->sin6_scope_id && | 1061 | sin6->sin6_scope_id && |
1062 | ipv6_addr_type(daddr)&IPV6_ADDR_LINKLOCAL) | 1062 | ipv6_addr_type(daddr)&IPV6_ADDR_LINKLOCAL) |
1063 | fl.oif = sin6->sin6_scope_id; | 1063 | fl.flowi_oif = sin6->sin6_scope_id; |
1064 | } else { | 1064 | } else { |
1065 | if (sk->sk_state != TCP_ESTABLISHED) | 1065 | if (sk->sk_state != TCP_ESTABLISHED) |
1066 | return -EDESTADDRREQ; | 1066 | return -EDESTADDRREQ; |
@@ -1071,13 +1071,13 @@ do_udp_sendmsg: | |||
1071 | connected = 1; | 1071 | connected = 1; |
1072 | } | 1072 | } |
1073 | 1073 | ||
1074 | if (!fl.oif) | 1074 | if (!fl.flowi_oif) |
1075 | fl.oif = sk->sk_bound_dev_if; | 1075 | fl.flowi_oif = sk->sk_bound_dev_if; |
1076 | 1076 | ||
1077 | if (!fl.oif) | 1077 | if (!fl.flowi_oif) |
1078 | fl.oif = np->sticky_pktinfo.ipi6_ifindex; | 1078 | fl.flowi_oif = np->sticky_pktinfo.ipi6_ifindex; |
1079 | 1079 | ||
1080 | fl.mark = sk->sk_mark; | 1080 | fl.flowi_mark = sk->sk_mark; |
1081 | 1081 | ||
1082 | if (msg->msg_controllen) { | 1082 | if (msg->msg_controllen) { |
1083 | opt = &opt_space; | 1083 | opt = &opt_space; |
@@ -1105,7 +1105,7 @@ do_udp_sendmsg: | |||
1105 | opt = fl6_merge_options(&opt_space, flowlabel, opt); | 1105 | opt = fl6_merge_options(&opt_space, flowlabel, opt); |
1106 | opt = ipv6_fixup_options(&opt_space, opt); | 1106 | opt = ipv6_fixup_options(&opt_space, opt); |
1107 | 1107 | ||
1108 | fl.proto = sk->sk_protocol; | 1108 | fl.flowi_proto = sk->sk_protocol; |
1109 | if (!ipv6_addr_any(daddr)) | 1109 | if (!ipv6_addr_any(daddr)) |
1110 | ipv6_addr_copy(&fl.fl6_dst, daddr); | 1110 | ipv6_addr_copy(&fl.fl6_dst, daddr); |
1111 | else | 1111 | else |
@@ -1118,8 +1118,8 @@ do_udp_sendmsg: | |||
1118 | if (final_p) | 1118 | if (final_p) |
1119 | connected = 0; | 1119 | connected = 0; |
1120 | 1120 | ||
1121 | if (!fl.oif && ipv6_addr_is_multicast(&fl.fl6_dst)) { | 1121 | if (!fl.flowi_oif && ipv6_addr_is_multicast(&fl.fl6_dst)) { |
1122 | fl.oif = np->mcast_oif; | 1122 | fl.flowi_oif = np->mcast_oif; |
1123 | connected = 0; | 1123 | connected = 0; |
1124 | } | 1124 | } |
1125 | 1125 | ||