mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
sixlowpan: IPHC assertion
Just to tranquilize clang analyzer
This commit is contained in:
parent
86a6b8a552
commit
72334c2847
@ -176,6 +176,9 @@ size_t ng_sixlowpan_iphc_decode(ng_pktsnip_t *ipv6, ng_pktsnip_t *pkt, size_t of
|
||||
}
|
||||
|
||||
switch (iphc_hdr[IPHC2_IDX] & (NG_SIXLOWPAN_IPHC2_SAC | NG_SIXLOWPAN_IPHC2_SAM)) {
|
||||
/* should be asserted by line 168 anyway */
|
||||
assert(ctx != NULL);
|
||||
|
||||
case IPHC_SAC_SAM_FULL:
|
||||
/* take full 128 from inline */
|
||||
memcpy(&(ipv6_hdr->src), iphc_hdr + payload_offset, 16);
|
||||
|
Loading…
Reference in New Issue
Block a user