diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-11-27 19:36:28 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-02-04 01:34:14 -0500 |
commit | c3c1a7dbe24282ab8999cb8c964dc6371cde3ea3 (patch) | |
tree | 8644a69ccae0863856427cbe7d185a2dd72f5c51 /net/ipv6 | |
parent | 7ae9abfd9d6f3216500fc2874254e726cc30ca01 (diff) |
ipv6: rawv6_send_hdrinc(): pass msghdr
Switch from passing msg->iov_iter.iov to passing msg itself
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/raw.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index ee25631f8c29..0dbb328fa688 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c | |||
@@ -609,7 +609,7 @@ out: | |||
609 | return err; | 609 | return err; |
610 | } | 610 | } |
611 | 611 | ||
612 | static int rawv6_send_hdrinc(struct sock *sk, void *from, int length, | 612 | static int rawv6_send_hdrinc(struct sock *sk, struct msghdr *msg, int length, |
613 | struct flowi6 *fl6, struct dst_entry **dstp, | 613 | struct flowi6 *fl6, struct dst_entry **dstp, |
614 | unsigned int flags) | 614 | unsigned int flags) |
615 | { | 615 | { |
@@ -648,7 +648,7 @@ static int rawv6_send_hdrinc(struct sock *sk, void *from, int length, | |||
648 | skb->ip_summed = CHECKSUM_NONE; | 648 | skb->ip_summed = CHECKSUM_NONE; |
649 | 649 | ||
650 | skb->transport_header = skb->network_header; | 650 | skb->transport_header = skb->network_header; |
651 | err = memcpy_fromiovecend((void *)iph, from, 0, length); | 651 | err = memcpy_fromiovecend((void *)iph, msg->msg_iter.iov, 0, length); |
652 | if (err) | 652 | if (err) |
653 | goto error_fault; | 653 | goto error_fault; |
654 | 654 | ||
@@ -886,8 +886,7 @@ static int rawv6_sendmsg(struct kiocb *iocb, struct sock *sk, | |||
886 | 886 | ||
887 | back_from_confirm: | 887 | back_from_confirm: |
888 | if (inet->hdrincl) | 888 | if (inet->hdrincl) |
889 | /* XXX: stripping const */ | 889 | err = rawv6_send_hdrinc(sk, msg, len, &fl6, &dst, msg->msg_flags); |
890 | err = rawv6_send_hdrinc(sk, (struct iovec *)msg->msg_iter.iov, len, &fl6, &dst, msg->msg_flags); | ||
891 | else { | 890 | else { |
892 | lock_sock(sk); | 891 | lock_sock(sk); |
893 | err = ip6_append_data(sk, raw6_getfrag, &rfv, | 892 | err = ip6_append_data(sk, raw6_getfrag, &rfv, |