|
|
@ -29,14 +29,19 @@ typedef enum {
|
|
|
|
#define _SI_HEADER_CHECK 0xbeefbeefabad1deaul
|
|
|
|
#define _SI_HEADER_CHECK 0xbeefbeefabad1deaul
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
typedef struct {
|
|
|
|
si_type type;
|
|
|
|
union {
|
|
|
|
unsigned int flags;
|
|
|
|
si_type type;
|
|
|
|
unsigned int data_len;
|
|
|
|
uint32_t __pad;
|
|
|
|
unsigned long check0;
|
|
|
|
};
|
|
|
|
|
|
|
|
uint32_t flags;
|
|
|
|
|
|
|
|
uint32_t data_len;
|
|
|
|
|
|
|
|
uint64_t check0;
|
|
|
|
uint64_t check;
|
|
|
|
uint64_t check;
|
|
|
|
unsigned char data[];
|
|
|
|
uint8_t data[];
|
|
|
|
} si_message;
|
|
|
|
} si_message;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_Static_assert(sizeof(union { si_type t0; uint32_t pad;}) == sizeof(uint32_t), "packing error: sizeof(enum)!=sizeof(uint32_t)");
|
|
|
|
|
|
|
|
|
|
|
|
#define SIEF_WARNING 0xaff000
|
|
|
|
#define SIEF_WARNING 0xaff000
|
|
|
|
typedef enum {
|
|
|
|
typedef enum {
|
|
|
|
SIE_ACCEPT= 0, //Sock accept failure
|
|
|
|
SIE_ACCEPT= 0, //Sock accept failure
|
|
|
|