diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-04-21 01:47:35 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:25:10 -0400 |
commit | eddc9ec53be2ecdbf4efe0efd4a83052594f0ac0 (patch) | |
tree | 4a38ab4dbd9d61fdf5a5ea6ed61463e0b9e33ba7 /net/sctp/ipv6.c | |
parent | e023dd643798c4f06c16466af90b4d250e4b8bd7 (diff) |
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/ipv6.c')
-rw-r--r-- | net/sctp/ipv6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/ipv6.c b/net/sctp/ipv6.c index 5f9b145b0b90..742f9ff42fbf 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -770,9 +770,9 @@ static void sctp_inet6_skb_msgname(struct sk_buff *skb, char *msgname, | |||
770 | 770 | ||
771 | /* Map ipv4 address into v4-mapped-on-v6 address. */ | 771 | /* Map ipv4 address into v4-mapped-on-v6 address. */ |
772 | if (sctp_sk(skb->sk)->v4mapped && | 772 | if (sctp_sk(skb->sk)->v4mapped && |
773 | skb->nh.iph->version == 4) { | 773 | ip_hdr(skb)->version == 4) { |
774 | sctp_v4_map_v6((union sctp_addr *)sin6); | 774 | sctp_v4_map_v6((union sctp_addr *)sin6); |
775 | sin6->sin6_addr.s6_addr32[3] = skb->nh.iph->saddr; | 775 | sin6->sin6_addr.s6_addr32[3] = ip_hdr(skb)->saddr; |
776 | return; | 776 | return; |
777 | } | 777 | } |
778 | 778 | ||