add packet type raw and pseudo
This commit is contained in:
@@ -28,7 +28,6 @@ struct metadata
|
||||
uint64_t session_id;
|
||||
uint64_t domain;
|
||||
uint16_t link_id;
|
||||
bool is_ctrl;
|
||||
bool is_claim;
|
||||
|
||||
enum packet_direction direction;
|
||||
@@ -90,6 +89,7 @@ struct packet
|
||||
struct packet_queue frag_list; // for defraged packet
|
||||
|
||||
struct metadata meta;
|
||||
enum packet_type type;
|
||||
struct packet_origin origin;
|
||||
};
|
||||
|
||||
@@ -124,12 +124,10 @@ uint64_t packet_get_domain(const struct packet *pkt);
|
||||
void packet_set_link_id(struct packet *pkt, uint16_t id);
|
||||
uint16_t packet_get_link_id(const struct packet *pkt);
|
||||
|
||||
void packet_set_ctrl(struct packet *pkt, bool ctrl);
|
||||
bool packet_is_ctrl(const struct packet *pkt);
|
||||
|
||||
void packet_set_claim(struct packet *pkt, bool claim);
|
||||
bool packet_is_claim(const struct packet *pkt);
|
||||
|
||||
void packet_set_type(struct packet *pkt, enum packet_type type);
|
||||
void packet_set_direction(struct packet *pkt, enum packet_direction dir);
|
||||
|
||||
void *packet_get_user_data(struct packet *pkt);
|
||||
|
||||
Reference in New Issue
Block a user