sctp: remove the typedef sctp_transport_cmd_t
This patch is to remove the typedef sctp_transport_cmd_t, and replace with enum sctp_transport_cmd in the places where it's using this typedef. Signed-off-by: Xin Long <lucien.xin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
1c662018d2
commit
0ceaeebe28
@@ -320,11 +320,11 @@ typedef enum {
|
|||||||
} sctp_xmit_t;
|
} sctp_xmit_t;
|
||||||
|
|
||||||
/* These are the commands for manipulating transports. */
|
/* These are the commands for manipulating transports. */
|
||||||
typedef enum {
|
enum sctp_transport_cmd {
|
||||||
SCTP_TRANSPORT_UP,
|
SCTP_TRANSPORT_UP,
|
||||||
SCTP_TRANSPORT_DOWN,
|
SCTP_TRANSPORT_DOWN,
|
||||||
SCTP_TRANSPORT_PF,
|
SCTP_TRANSPORT_PF,
|
||||||
} sctp_transport_cmd_t;
|
};
|
||||||
|
|
||||||
/* These are the address scopes defined mainly for IPv4 addresses
|
/* These are the address scopes defined mainly for IPv4 addresses
|
||||||
* based on draft of SCTP IPv4 scoping <draft-stewart-tsvwg-sctp-ipv4-00.txt>.
|
* based on draft of SCTP IPv4 scoping <draft-stewart-tsvwg-sctp-ipv4-00.txt>.
|
||||||
|
@@ -1947,9 +1947,10 @@ void sctp_assoc_del_peer(struct sctp_association *asoc,
|
|||||||
const union sctp_addr *addr);
|
const union sctp_addr *addr);
|
||||||
void sctp_assoc_rm_peer(struct sctp_association *asoc,
|
void sctp_assoc_rm_peer(struct sctp_association *asoc,
|
||||||
struct sctp_transport *peer);
|
struct sctp_transport *peer);
|
||||||
void sctp_assoc_control_transport(struct sctp_association *,
|
void sctp_assoc_control_transport(struct sctp_association *asoc,
|
||||||
struct sctp_transport *,
|
struct sctp_transport *transport,
|
||||||
sctp_transport_cmd_t, sctp_sn_error_t);
|
enum sctp_transport_cmd command,
|
||||||
|
sctp_sn_error_t error);
|
||||||
struct sctp_transport *sctp_assoc_lookup_tsn(struct sctp_association *, __u32);
|
struct sctp_transport *sctp_assoc_lookup_tsn(struct sctp_association *, __u32);
|
||||||
struct sctp_transport *sctp_assoc_is_match(struct sctp_association *,
|
struct sctp_transport *sctp_assoc_is_match(struct sctp_association *,
|
||||||
struct net *,
|
struct net *,
|
||||||
|
@@ -796,7 +796,7 @@ void sctp_assoc_del_nonprimary_peers(struct sctp_association *asoc,
|
|||||||
*/
|
*/
|
||||||
void sctp_assoc_control_transport(struct sctp_association *asoc,
|
void sctp_assoc_control_transport(struct sctp_association *asoc,
|
||||||
struct sctp_transport *transport,
|
struct sctp_transport *transport,
|
||||||
sctp_transport_cmd_t command,
|
enum sctp_transport_cmd command,
|
||||||
sctp_sn_error_t error)
|
sctp_sn_error_t error)
|
||||||
{
|
{
|
||||||
struct sctp_ulpevent *event;
|
struct sctp_ulpevent *event;
|
||||||
|
Reference in New Issue
Block a user