aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/network/packet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcharon/network/packet.h')
-rw-r--r--src/libcharon/network/packet.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libcharon/network/packet.h b/src/libcharon/network/packet.h
index 18d82c6fc..c53364104 100644
--- a/src/libcharon/network/packet.h
+++ b/src/libcharon/network/packet.h
@@ -1,4 +1,5 @@
/*
+ * Copyright (C) 2012 Tobias Brunner
* Copyright (C) 2005-2006 Martin Willi
* Copyright (C) 2005 Jan Hutter
* Hochschule fuer Technik Rapperswil
@@ -93,6 +94,15 @@ struct packet_t {
void (*set_data) (packet_t *packet, chunk_t data);
/**
+ * Increase the offset where the actual packet data starts.
+ *
+ * @note The offset is reset to 0 when set_data() is called.
+ *
+ * @param bytes the number of additional bytes to skip
+ */
+ void (*skip_bytes) (packet_t *packet, size_t bytes);
+
+ /**
* Clones a packet_t object.
*
* @param clone clone of the packet