mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #2998 from authmillenon/ng_icmpv6/fix/preset-csum-field
ng_icmpv6: pre-set checksum field to 0 for sending
This commit is contained in:
commit
e032cda53d
@ -144,6 +144,7 @@ ng_pktsnip_t *ng_icmpv6_build(ng_pktsnip_t *next, uint8_t type, uint8_t code,
|
||||
icmpv6 = (ng_icmpv6_hdr_t *)pkt->data;
|
||||
icmpv6->type = type;
|
||||
icmpv6->code = code;
|
||||
icmpv6->csum.u16 = 0;
|
||||
|
||||
return pkt;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user