Commit 327c0dab authored by Xin Long's avatar Xin Long Committed by David S. Miller

sctp: fix some indents in sm_make_chunk.c

There are some bad indents of functions' defination in sm_make_chunk.c.
They have been there since beginning, it was probably caused by that
the typedef sctp_chunk_t was replaced with struct sctp_chunk.

So it's the best time to fix them in this patchset, it's also to fix
some bad indents in other functions' defination in sm_make_chunk.c.
Signed-off-by: default avatarXin Long <lucien.xin@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 172a1599
...@@ -184,68 +184,69 @@ __u32 sctp_generate_verification_tag(void); ...@@ -184,68 +184,69 @@ __u32 sctp_generate_verification_tag(void);
void sctp_populate_tie_tags(__u8 *cookie, __u32 curTag, __u32 hisTag); void sctp_populate_tie_tags(__u8 *cookie, __u32 curTag, __u32 hisTag);
/* Prototypes for chunk-building functions. */ /* Prototypes for chunk-building functions. */
struct sctp_chunk *sctp_make_init(const struct sctp_association *, struct sctp_chunk *sctp_make_init(const struct sctp_association *asoc,
const struct sctp_bind_addr *, const struct sctp_bind_addr *bp,
gfp_t gfp, int vparam_len); gfp_t gfp, int vparam_len);
struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *, struct sctp_chunk *sctp_make_init_ack(const struct sctp_association *asoc,
const struct sctp_chunk *, const struct sctp_chunk *chunk,
const gfp_t gfp, const gfp_t gfp, const int unkparam_len);
const int unkparam_len); struct sctp_chunk *sctp_make_cookie_echo(const struct sctp_association *asoc,
struct sctp_chunk *sctp_make_cookie_echo(const struct sctp_association *, const struct sctp_chunk *chunk);
const struct sctp_chunk *); struct sctp_chunk *sctp_make_cookie_ack(const struct sctp_association *asoc,
struct sctp_chunk *sctp_make_cookie_ack(const struct sctp_association *, const struct sctp_chunk *chunk);
const struct sctp_chunk *); struct sctp_chunk *sctp_make_cwr(const struct sctp_association *asoc,
struct sctp_chunk *sctp_make_cwr(const struct sctp_association *,
const __u32 lowest_tsn, const __u32 lowest_tsn,
const struct sctp_chunk *); const struct sctp_chunk *chunk);
struct sctp_chunk * sctp_make_datafrag_empty(struct sctp_association *, struct sctp_chunk *sctp_make_datafrag_empty(struct sctp_association *asoc,
const struct sctp_sndrcvinfo *sinfo, const struct sctp_sndrcvinfo *sinfo,
int len, const __u8 flags, int len, const __u8 flags,
__u16 ssn, gfp_t gfp); __u16 ssn, gfp_t gfp);
struct sctp_chunk *sctp_make_ecne(const struct sctp_association *, struct sctp_chunk *sctp_make_ecne(const struct sctp_association *asoc,
const __u32); const __u32 lowest_tsn);
struct sctp_chunk *sctp_make_sack(const struct sctp_association *); struct sctp_chunk *sctp_make_sack(const struct sctp_association *asoc);
struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc, struct sctp_chunk *sctp_make_shutdown(const struct sctp_association *asoc,
const struct sctp_chunk *chunk); const struct sctp_chunk *chunk);
struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc, struct sctp_chunk *sctp_make_shutdown_ack(const struct sctp_association *asoc,
const struct sctp_chunk *); const struct sctp_chunk *chunk);
struct sctp_chunk *sctp_make_shutdown_complete(const struct sctp_association *, struct sctp_chunk *sctp_make_shutdown_complete(
const struct sctp_chunk *); const struct sctp_association *asoc,
void sctp_init_cause(struct sctp_chunk *, __be16 cause, size_t); const struct sctp_chunk *chunk);
struct sctp_chunk *sctp_make_abort(const struct sctp_association *, void sctp_init_cause(struct sctp_chunk *chunk, __be16 cause, size_t paylen);
const struct sctp_chunk *, struct sctp_chunk *sctp_make_abort(const struct sctp_association *asoc,
const size_t hint); const struct sctp_chunk *chunk,
struct sctp_chunk *sctp_make_abort_no_data(const struct sctp_association *, const size_t hint);
const struct sctp_chunk *, struct sctp_chunk *sctp_make_abort_no_data(const struct sctp_association *asoc,
__u32 tsn); const struct sctp_chunk *chunk,
struct sctp_chunk *sctp_make_abort_user(const struct sctp_association *, __u32 tsn);
struct msghdr *, size_t msg_len); struct sctp_chunk *sctp_make_abort_user(const struct sctp_association *asoc,
struct sctp_chunk *sctp_make_abort_violation(const struct sctp_association *, struct msghdr *msg, size_t msg_len);
const struct sctp_chunk *, struct sctp_chunk *sctp_make_abort_violation(
const __u8 *, const struct sctp_association *asoc,
const size_t ); const struct sctp_chunk *chunk,
struct sctp_chunk *sctp_make_violation_paramlen(const struct sctp_association *, const __u8 *payload,
const struct sctp_chunk *, const size_t paylen);
struct sctp_paramhdr *); struct sctp_chunk *sctp_make_violation_paramlen(
struct sctp_chunk *sctp_make_violation_max_retrans(const struct sctp_association *, const struct sctp_association *asoc,
const struct sctp_chunk *); const struct sctp_chunk *chunk,
struct sctp_chunk *sctp_make_heartbeat(const struct sctp_association *, struct sctp_paramhdr *param);
const struct sctp_transport *); struct sctp_chunk *sctp_make_violation_max_retrans(
struct sctp_chunk *sctp_make_heartbeat_ack(const struct sctp_association *, const struct sctp_association *asoc,
const struct sctp_chunk *, const struct sctp_chunk *chunk);
const void *payload, struct sctp_chunk *sctp_make_heartbeat(const struct sctp_association *asoc,
const size_t paylen); const struct sctp_transport *transport);
struct sctp_chunk *sctp_make_op_error(const struct sctp_association *, struct sctp_chunk *sctp_make_heartbeat_ack(const struct sctp_association *asoc,
const struct sctp_chunk *chunk, const struct sctp_chunk *chunk,
__be16 cause_code, const void *payload,
const void *payload, const size_t paylen);
size_t paylen, struct sctp_chunk *sctp_make_op_error(const struct sctp_association *asoc,
size_t reserve_tail); const struct sctp_chunk *chunk,
__be16 cause_code, const void *payload,
struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *, size_t paylen, size_t reserve_tail);
union sctp_addr *,
struct sockaddr *, struct sctp_chunk *sctp_make_asconf_update_ip(struct sctp_association *asoc,
int, __be16); union sctp_addr *laddr,
struct sockaddr *addrs,
int addrcnt, __be16 flags);
struct sctp_chunk *sctp_make_asconf_set_prim(struct sctp_association *asoc, struct sctp_chunk *sctp_make_asconf_set_prim(struct sctp_association *asoc,
union sctp_addr *addr); union sctp_addr *addr);
bool sctp_verify_asconf(const struct sctp_association *asoc, bool sctp_verify_asconf(const struct sctp_association *asoc,
...@@ -259,27 +260,25 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc, ...@@ -259,27 +260,25 @@ struct sctp_chunk *sctp_make_fwdtsn(const struct sctp_association *asoc,
__u32 new_cum_tsn, size_t nstreams, __u32 new_cum_tsn, size_t nstreams,
struct sctp_fwdtsn_skip *skiplist); struct sctp_fwdtsn_skip *skiplist);
struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc); struct sctp_chunk *sctp_make_auth(const struct sctp_association *asoc);
struct sctp_chunk *sctp_make_strreset_req( struct sctp_chunk *sctp_make_strreset_req(const struct sctp_association *asoc,
const struct sctp_association *asoc, __u16 stream_num, __u16 *stream_list,
__u16 stream_num, __u16 *stream_list, bool out, bool in);
bool out, bool in);
struct sctp_chunk *sctp_make_strreset_tsnreq( struct sctp_chunk *sctp_make_strreset_tsnreq(
const struct sctp_association *asoc); const struct sctp_association *asoc);
struct sctp_chunk *sctp_make_strreset_addstrm( struct sctp_chunk *sctp_make_strreset_addstrm(
const struct sctp_association *asoc, const struct sctp_association *asoc,
__u16 out, __u16 in); __u16 out, __u16 in);
struct sctp_chunk *sctp_make_strreset_resp( struct sctp_chunk *sctp_make_strreset_resp(const struct sctp_association *asoc,
const struct sctp_association *asoc, __u32 result, __u32 sn);
__u32 result, __u32 sn); struct sctp_chunk *sctp_make_strreset_tsnresp(struct sctp_association *asoc,
struct sctp_chunk *sctp_make_strreset_tsnresp( __u32 result, __u32 sn,
struct sctp_association *asoc, __u32 sender_tsn,
__u32 result, __u32 sn, __u32 receiver_tsn);
__u32 sender_tsn, __u32 receiver_tsn);
bool sctp_verify_reconf(const struct sctp_association *asoc, bool sctp_verify_reconf(const struct sctp_association *asoc,
struct sctp_chunk *chunk, struct sctp_chunk *chunk,
struct sctp_paramhdr **errp); struct sctp_paramhdr **errp);
void sctp_chunk_assign_tsn(struct sctp_chunk *); void sctp_chunk_assign_tsn(struct sctp_chunk *chunk);
void sctp_chunk_assign_ssn(struct sctp_chunk *); void sctp_chunk_assign_ssn(struct sctp_chunk *chunk);
/* Prototypes for stream-processing functions. */ /* Prototypes for stream-processing functions. */
struct sctp_chunk *sctp_process_strreset_outreq( struct sctp_chunk *sctp_process_strreset_outreq(
...@@ -322,11 +321,12 @@ void sctp_generate_proto_unreach_event(unsigned long peer); ...@@ -322,11 +321,12 @@ void sctp_generate_proto_unreach_event(unsigned long peer);
void sctp_ootb_pkt_free(struct sctp_packet *packet); void sctp_ootb_pkt_free(struct sctp_packet *packet);
struct sctp_association *sctp_unpack_cookie(const struct sctp_endpoint *ep, struct sctp_association *sctp_unpack_cookie(
const struct sctp_association *asoc, const struct sctp_endpoint *ep,
struct sctp_chunk *chunk, const struct sctp_association *asoc,
gfp_t gfp, int *err, struct sctp_chunk *chunk,
struct sctp_chunk **err_chk_p); gfp_t gfp, int *err,
struct sctp_chunk **err_chk_p);
/* 3rd level prototypes */ /* 3rd level prototypes */
__u32 sctp_generate_tag(const struct sctp_endpoint *ep); __u32 sctp_generate_tag(const struct sctp_endpoint *ep);
......
This diff is collapsed.
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