public inbox for linux-sctp@vger.kernel.org
 help / color / mirror / Atom feed
* uapi header mismatch with kernel ?
@ 2014-08-28  6:33 苏庆
  2014-08-28  7:34 ` Daniel Borkmann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: 苏庆 @ 2014-08-28  6:33 UTC (permalink / raw)
  To: linux-sctp

Hi all,

I found that In 3.x kernel, the sctp states are defined differently
between kernel and uapi header. This makes our application fails to
work.

Is that a mismatch or am I missing something?

----------------------------------------------------------------
in include/uapi/linux/sctp.h

/* Association states.  */
enum sctp_sstat_state {
    SCTP_EMPTY                = 0,
    SCTP_CLOSED               = 1,
    SCTP_COOKIE_WAIT          = 2,
    SCTP_COOKIE_ECHOED        = 3,
    SCTP_ESTABLISHED          = 4,
    SCTP_SHUTDOWN_PENDING     = 5,
    SCTP_SHUTDOWN_SENT        = 6,
    SCTP_SHUTDOWN_RECEIVED    = 7,
    SCTP_SHUTDOWN_ACK_SENT    = 8,
};

in include/net/sctp/constants.h

/* SCTP state defines for internal state machine */
typedef enum {

        SCTP_STATE_CLOSED               = 0,
        SCTP_STATE_COOKIE_WAIT          = 1,
        SCTP_STATE_COOKIE_ECHOED        = 2,
        SCTP_STATE_ESTABLISHED          = 3,
        SCTP_STATE_SHUTDOWN_PENDING     = 4,
        SCTP_STATE_SHUTDOWN_SENT        = 5,
        SCTP_STATE_SHUTDOWN_RECEIVED    = 6,
        SCTP_STATE_SHUTDOWN_ACK_SENT    = 7,

} sctp_state_t;



and it looks like the SCTP_STATE_EMPTY was removed by this
patch:http://lists.openwall.net/netdev/2011/04/20/31

Any help will be appreciated.

Thanks,
Tristan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-08-28 13:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-28  6:33 uapi header mismatch with kernel ? 苏庆
2014-08-28  7:34 ` Daniel Borkmann
2014-08-28  7:47 ` Daniel Borkmann
2014-08-28 13:05 ` Tristan Su
2014-08-28 13:12 ` Daniel Borkmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox