Refactored packet API to support struct layer (using union to contain different types of encapsulation headers)
This commit is contained in:
@@ -133,7 +133,7 @@ enum session_type session_get_type(const struct session *sess);
|
||||
|
||||
enum session_state session_get_current_state(const struct session *sess);
|
||||
const struct packet *session_get0_current_packet(const struct session *sess);
|
||||
const char *session_get0_current_payload(const struct session *sess, size_t *payload_len);
|
||||
const char *session_get0_current_payload(const struct session *sess, uint16_t *payload_len);
|
||||
|
||||
enum closing_reason session_get_closing_reason(const struct session *sess);
|
||||
enum session_direction session_get_direction(const struct session *sess);
|
||||
|
||||
Reference in New Issue
Block a user