ip-packet: Fix length in IPv6 header of generated packets
This commit is contained in:
1 parent
a521ef3b8e
commit
9e20fdbaf6
1 file changed
+1
-1
@@ -443,7 +443,7 @@ ip_packet_t *ip_packet_create_from_data(host_t *src, host_t *dst,
|
|||||||
{
|
{
|
||||||
struct ip6_hdr ip = {
|
struct ip6_hdr ip = {
|
||||||
.ip6_flow = htonl(6),
|
.ip6_flow = htonl(6),
|
||||||
.ip6_plen = htons(40 + data.len),
|
.ip6_plen = htons(data.len),
|
||||||
.ip6_nxt = next_header,
|
.ip6_nxt = next_header,
|
||||||
.ip6_hlim = 0x80,
|
.ip6_hlim = 0x80,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user