Add a DSCP value with getter/setter on packet_t

This commit is contained in:
Martin Willi
2013-02-06 15:20:32 +01:00
parent 6c37daaa3b
commit 1116689944
3 changed files with 47 additions and 0 deletions
+14
View File
@@ -75,6 +75,20 @@ struct packet_t {
*/
void (*set_data)(packet_t *packet, chunk_t data);
/**
* Get the DiffServ Code Point set on this packet.
*
* @return DSCP value
*/
u_int8_t (*get_dscp)(packet_t *this);
/**
* Set the DiffServ Code Point to use on this packet.
*
* @param value DSCP value
*/
void (*set_dscp)(packet_t *this, u_int8_t value);
/**
* Increase the offset where the actual packet data starts.
*