aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/ipv6.c
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2007-03-13 12:59:32 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:25:19 -0400
commit2c0fd387b00a6758550b5ca1aae4408374483fe7 (patch)
treee6bd255fb77d476424345c7864f6ee14cb0d1ddc /net/sctp/ipv6.c
parent967b05f64e27d04a4c8879addd0e1c52137e2c9e (diff)
[SCTP]: Introduce sctp_hdr()
For consistency with all the other skb->h.raw accessors. 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.c4
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. */