Files
Orlando Chamberlain 68b29b5350 temp
i think some of the changes here might be by mrarm not me but ive
forgotten
2024-06-22 19:44:17 +10:00

31 lines
700 B
C

#ifndef RXPC_PROTO_H
#define RXPC_PROTO_H
#define RXPC_MSG_VERSION 1
#define RXPC_MSG_MAGIC 0x29B00B92
struct rxpc_msg_header {
uint32_t magic;
uint8_t version;
uint8_t type;
uint16_t flags;
uint64_t length;
uint64_t msg_id;
};
// Flags
// 1st bit is heartbeat
// 2nd bit is heartbeat reply
// 5: Open new file_tx stream
// 6: Reply from noew file_tx stream
// 7: Sysdiagnose init handshake
// RXPC_TYPE_HELLO - first command sent on a stream, some sort of an early handshake.
#define RXPC_TYPE_HELLO 0
// RXPC_FLAG_REPLY_CHANNEL - for use with RXPC_TYPE_HELLO: specifies the channel opened is a reply channel
#define RXPC_FLAG_REPLY_CHANNEL 0x40
#endif //RXPC_PROTO_H