ip_packet: Add getter for IP payload

This commit is contained in:
Tobias Brunner
2014-07-22 11:10:35 +02:00
parent d56d9a45d4
commit 46bb36980b
2 changed files with 25 additions and 5 deletions
+7
View File
@@ -67,6 +67,13 @@ struct ip_packet_t {
*/
chunk_t (*get_encoding)(ip_packet_t *this);
/**
* Get only the payload
*
* @return IP payload (internal data)
*/
chunk_t (*get_payload)(ip_packet_t *this);
/**
* Clone the IP packet
*