diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-11-20 20:00:44 -0500 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-12-03 00:26:20 -0500 |
commit | dc251b2b1c4bfea51903cb9fbc141a5b33f6aca7 (patch) | |
tree | 6eee6336f8613abb5bce93d882ec2e73d15881b0 /include/net | |
parent | f94c0198dd98c2ca66a7a44e9ad310a3eb21ad31 (diff) |
[SCTP]: SCTP_CMD_INIT_FAILED annotations.
argument stored for SCTP_CMD_INIT_FAILED is always __be16
(protocol error). Introduced new field and accessor for
it (SCTP_PERR()); switched to their use (from SCTP_U32() and
.u32)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sctp/command.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sctp/command.h b/include/net/sctp/command.h index 807d6f1ef4b5..dfe5d44b61ab 100644 --- a/include/net/sctp/command.h +++ b/include/net/sctp/command.h | |||
@@ -119,6 +119,7 @@ typedef union { | |||
119 | __u16 u16; | 119 | __u16 u16; |
120 | __u8 u8; | 120 | __u8 u8; |
121 | int error; | 121 | int error; |
122 | __be16 err; | ||
122 | sctp_state_t state; | 123 | sctp_state_t state; |
123 | sctp_event_timeout_t to; | 124 | sctp_event_timeout_t to; |
124 | unsigned long zero; | 125 | unsigned long zero; |
@@ -167,6 +168,7 @@ SCTP_ARG_CONSTRUCTOR(U32, __u32, u32) | |||
167 | SCTP_ARG_CONSTRUCTOR(U16, __u16, u16) | 168 | SCTP_ARG_CONSTRUCTOR(U16, __u16, u16) |
168 | SCTP_ARG_CONSTRUCTOR(U8, __u8, u8) | 169 | SCTP_ARG_CONSTRUCTOR(U8, __u8, u8) |
169 | SCTP_ARG_CONSTRUCTOR(ERROR, int, error) | 170 | SCTP_ARG_CONSTRUCTOR(ERROR, int, error) |
171 | SCTP_ARG_CONSTRUCTOR(PERR, __be16, err) /* protocol error */ | ||
170 | SCTP_ARG_CONSTRUCTOR(STATE, sctp_state_t, state) | 172 | SCTP_ARG_CONSTRUCTOR(STATE, sctp_state_t, state) |
171 | SCTP_ARG_CONSTRUCTOR(TO, sctp_event_timeout_t, to) | 173 | SCTP_ARG_CONSTRUCTOR(TO, sctp_event_timeout_t, to) |
172 | SCTP_ARG_CONSTRUCTOR(PTR, void *, ptr) | 174 | SCTP_ARG_CONSTRUCTOR(PTR, void *, ptr) |