feature: add packet_manager API implementation
This commit is contained in:
@@ -91,16 +91,26 @@ uint16_t packet_get_link_id(const struct packet *pkt)
|
||||
return pkt->meta.link_id;
|
||||
}
|
||||
|
||||
void packet_set_ctrl(struct packet *pkt, uint8_t ctrl)
|
||||
void packet_set_ctrl(struct packet *pkt, bool ctrl)
|
||||
{
|
||||
pkt->meta.is_ctrl = ctrl;
|
||||
}
|
||||
|
||||
uint8_t packet_is_ctrl(const struct packet *pkt)
|
||||
bool packet_is_ctrl(const struct packet *pkt)
|
||||
{
|
||||
return pkt->meta.is_ctrl;
|
||||
}
|
||||
|
||||
void packet_set_stolen(struct packet *pkt, bool stolen)
|
||||
{
|
||||
pkt->meta.is_stolen = stolen;
|
||||
}
|
||||
|
||||
bool packet_is_stolen(const struct packet *pkt)
|
||||
{
|
||||
return pkt->meta.is_stolen;
|
||||
}
|
||||
|
||||
void packet_set_direction(struct packet *pkt, enum packet_direction dir)
|
||||
{
|
||||
pkt->meta.direction = dir;
|
||||
|
||||
Reference in New Issue
Block a user