diff options
author | Martin Willi <martin@revosec.ch> | 2013-02-14 17:11:35 +0100 |
---|---|---|
committer | Martin Willi <martin@revosec.ch> | 2013-02-14 17:11:35 +0100 |
commit | e212033ef2012ff9be098ce2a9ee0da39c662c31 (patch) | |
tree | 2d421ad964fa2516a5efa452db5c04070f78f1ea /src/libstrongswan/networking/packet.h | |
parent | 285668b6e34a40173b5ae2563ebe440f3ae2e969 (diff) | |
parent | 88f4cd398825aa5c95e0d4ef839f0699f4901175 (diff) | |
download | strongswan-e212033ef2012ff9be098ce2a9ee0da39c662c31.tar.bz2 strongswan-e212033ef2012ff9be098ce2a9ee0da39c662c31.tar.xz |
Merge branch 'ike-dscp'
Diffstat (limited to 'src/libstrongswan/networking/packet.h')
-rw-r--r-- | src/libstrongswan/networking/packet.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/libstrongswan/networking/packet.h b/src/libstrongswan/networking/packet.h index 6fb9cece2..a96a4b84f 100644 --- a/src/libstrongswan/networking/packet.h +++ b/src/libstrongswan/networking/packet.h @@ -76,6 +76,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. * * The total offset applies to future calls of get_data() and clone(). |