diff options
| author | Jon Grimm <jgrimm@touki.austin.ibm.com> | 2003-02-26 02:07:01 -0600 |
|---|---|---|
| committer | Jon Grimm <jgrimm@touki.austin.ibm.com> | 2003-02-26 02:07:01 -0600 |
| commit | 44310455879437f96eade4ba5721408f38fcd711 (patch) | |
| tree | 652c69c0c6c56985ea8ebc36240c55ea20df3952 /include/net | |
| parent | 1402a73c6615ff2d0419401764086bb8214c0540 (diff) | |
[SCTP] Supported address types should be based on pf_family.
PF_INET sockets are advertising v6 address support. Make this
choice a pf_family function.
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/sctp/sctp.h | 3 | ||||
| -rw-r--r-- | include/net/sctp/structs.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/sctp/sctp.h b/include/net/sctp/sctp.h index bf8aaa165bd9..1898cb15c70f 100644 --- a/include/net/sctp/sctp.h +++ b/include/net/sctp/sctp.h @@ -323,7 +323,8 @@ static inline int sctp_ipv6_addr_type(const struct in6_addr *addr) return ipv6_addr_type((struct in6_addr*) addr); } -#define SCTP_SAT_LEN (sizeof(sctp_paramhdr_t) + 2 * sizeof(__u16)) +/* Size of Supported Address Parameter for 'x' address types. */ +#define SCTP_SAT_LEN(x) (sizeof(struct sctp_paramhdr) + (x) * sizeof(__u16)) /* Note: These V6 macros are obsolescent. */ /* Use this macro to enclose code fragments which are V6-dependent. */ diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h index 2cc13c137a18..f027a8c90aa8 100644 --- a/include/net/sctp/structs.h +++ b/include/net/sctp/structs.h @@ -293,6 +293,7 @@ struct sctp_pf { const union sctp_addr *, struct sctp_opt *); int (*bind_verify) (struct sctp_opt *, union sctp_addr *); + int (*supported_addrs)(const struct sctp_opt *, __u16 *); struct sctp_af *af; }; @@ -397,8 +398,6 @@ typedef struct sctp_signed_cookie { sctp_cookie_t c; } sctp_signed_cookie_t; - - /* This is another convenience type to allocate memory for address * params for the maximum size and pass such structures around * internally. |
