diff options
author | Christian Pointner <equinox@anytun.org> | 2009-01-16 18:10:21 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2009-01-16 18:10:21 +0000 |
commit | 0e592faadecfb3bc2705bf0d9e434163e4b914ca (patch) | |
tree | 69562b708620918dd9f456873ccc46b10e169382 /src/encrypted_packet.c | |
parent | Release 0.2.1 (diff) |
fixed packet length errors
Diffstat (limited to 'src/encrypted_packet.c')
-rw-r--r-- | src/encrypted_packet.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/encrypted_packet.c b/src/encrypted_packet.c index eb21828..2cc4e5f 100644 --- a/src/encrypted_packet.c +++ b/src/encrypted_packet.c @@ -47,6 +47,11 @@ void encrypted_packet_init(encrypted_packet_t* packet) memset (packet, 0, sizeof(*packet)); } +u_int32_t encrypted_packet_get_header_length() +{ + return sizeof(encrypted_packet_header_t); +} + u_int8_t* encrypted_packet_get_packet(encrypted_packet_t* packet) { if(!packet) |