diff options
Diffstat (limited to 'src/libstrongswan/utils/packet.h')
-rw-r--r-- | src/libstrongswan/utils/packet.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstrongswan/utils/packet.h b/src/libstrongswan/utils/packet.h index 9106bbef5..5c4440115 100644 --- a/src/libstrongswan/utils/packet.h +++ b/src/libstrongswan/utils/packet.h @@ -108,4 +108,14 @@ struct packet_t { */ packet_t *packet_create(); +/** + * Create a packet from the supplied data + * + * @param src source address (gets owned) + * @param dst destination address (gets owned) + * @param data packet data (gets owned) + * @return packet_t object + */ +packet_t *packet_create_from_data(host_t *src, host_t *dst, chunk_t data); + #endif /** PACKET_H_ @}*/ |