diff options
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 001be2de0b3c..0992bc5bb528 100644 --- a/net/sctp/ipv6.c +++ b/net/sctp/ipv6.c | |||
@@ -390,7 +390,7 @@ static void sctp_v6_from_skb(union sctp_addr *addr,struct sk_buff *skb, | |||
390 | addr->v6.sin6_flowinfo = 0; /* FIXME */ | 390 | addr->v6.sin6_flowinfo = 0; /* FIXME */ |
391 | addr->v6.sin6_scope_id = ((struct inet6_skb_parm *)skb->cb)->iif; | 391 | addr->v6.sin6_scope_id = ((struct inet6_skb_parm *)skb->cb)->iif; |
392 | 392 | ||
393 | sh = (struct sctphdr *) skb->h.raw; | 393 | sh = sctp_hdr(skb); |
394 | if (is_saddr) { | 394 | if (is_saddr) { |
395 | *port = sh->source; | 395 | *port = sh->source; |
396 | from = &ipv6_hdr(skb)->saddr; | 396 | from = &ipv6_hdr(skb)->saddr; |
@@ -765,7 +765,7 @@ static void sctp_inet6_skb_msgname(struct sk_buff *skb, char *msgname, | |||
765 | if (msgname) { | 765 | if (msgname) { |
766 | sctp_inet6_msgname(msgname, addr_len); | 766 | sctp_inet6_msgname(msgname, addr_len); |
767 | sin6 = (struct sockaddr_in6 *)msgname; | 767 | sin6 = (struct sockaddr_in6 *)msgname; |
768 | sh = (struct sctphdr *)skb->h.raw; | 768 | sh = sctp_hdr(skb); |
769 | sin6->sin6_port = sh->source; | 769 | sin6->sin6_port = sh->source; |
770 | 770 | ||
771 | /* Map ipv4 address into v4-mapped-on-v6 address. */ | 771 | /* Map ipv4 address into v4-mapped-on-v6 address. */ |