strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a521ef3
)
ip-packet: Fix length in IPv6 header of generated packets
author
Tobias Brunner
<tobias@strongswan.org>
Mon, 20 Oct 2014 13:32:01 +0000
(15:32 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Mon, 20 Oct 2014 13:33:35 +0000
(15:33 +0200)
src/libipsec/ip_packet.c
patch
|
blob
|
history
diff --git
a/src/libipsec/ip_packet.c
b/src/libipsec/ip_packet.c
index
0998efa
..
21dbd5e
100644
(file)
--- a/
src/libipsec/ip_packet.c
+++ b/
src/libipsec/ip_packet.c
@@
-443,7
+443,7
@@
ip_packet_t *ip_packet_create_from_data(host_t *src, host_t *dst,
{
struct ip6_hdr ip = {
.ip6_flow = htonl(6),
{
struct ip6_hdr ip = {
.ip6_flow = htonl(6),
- .ip6_plen = htons(
40 +
data.len),
+ .ip6_plen = htons(data.len),
.ip6_nxt = next_header,
.ip6_hlim = 0x80,
};
.ip6_nxt = next_header,
.ip6_hlim = 0x80,
};