Commit 00987cc0 authored by Xin Long's avatar Xin Long Committed by David S. Miller

sctp: remove the typedef sctp_ipv6addr_param_t

This patch is to remove the typedef sctp_ipv6addr_param_t, and replace
with struct sctp_ipv6addr_param in the places where it's using this
typedef.
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a38905e6
...@@ -279,10 +279,10 @@ struct sctp_ipv4addr_param { ...@@ -279,10 +279,10 @@ struct sctp_ipv4addr_param {
}; };
/* Section 3.3.2.1. IPv6 Address Parameter (6) */ /* Section 3.3.2.1. IPv6 Address Parameter (6) */
typedef struct sctp_ipv6addr_param { struct sctp_ipv6addr_param {
struct sctp_paramhdr param_hdr; struct sctp_paramhdr param_hdr;
struct in6_addr addr; struct in6_addr addr;
} sctp_ipv6addr_param_t; };
/* Section 3.3.2.1 Cookie Preservative (9) */ /* Section 3.3.2.1 Cookie Preservative (9) */
typedef struct sctp_cookie_preserve_param { typedef struct sctp_cookie_preserve_param {
......
...@@ -497,7 +497,7 @@ static void sctp_v6_from_addr_param(union sctp_addr *addr, ...@@ -497,7 +497,7 @@ static void sctp_v6_from_addr_param(union sctp_addr *addr,
static int sctp_v6_to_addr_param(const union sctp_addr *addr, static int sctp_v6_to_addr_param(const union sctp_addr *addr,
union sctp_addr_param *param) union sctp_addr_param *param)
{ {
int length = sizeof(sctp_ipv6addr_param_t); int length = sizeof(struct sctp_ipv6addr_param);
param->v6.param_hdr.type = SCTP_PARAM_IPV6_ADDRESS; param->v6.param_hdr.type = SCTP_PARAM_IPV6_ADDRESS;
param->v6.param_hdr.length = htons(length); param->v6.param_hdr.length = htons(length);
......
...@@ -3163,7 +3163,7 @@ bool sctp_verify_asconf(const struct sctp_association *asoc, ...@@ -3163,7 +3163,7 @@ bool sctp_verify_asconf(const struct sctp_association *asoc,
addr_param_seen = true; addr_param_seen = true;
break; break;
case SCTP_PARAM_IPV6_ADDRESS: case SCTP_PARAM_IPV6_ADDRESS:
if (length != sizeof(sctp_ipv6addr_param_t)) if (length != sizeof(struct sctp_ipv6addr_param))
return false; return false;
if (param.v != addip->addip_hdr.params) if (param.v != addip->addip_hdr.params)
return false; return false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment