Merge pull request #10776 from miri64/gnrc_sixlowpan_frag/enh/detect-duplicates
gnrc_sixlowpan_frag: drop received duplicates
This commit is contained in:
commit
abb72db73a
@ -139,7 +139,12 @@ static int _rbuf_add(gnrc_netif_hdr_t *netif_hdr, gnrc_pktsnip_t *pkt,
|
|||||||
* https://tools.ietf.org/html/rfc4944#section-5.3 */
|
* https://tools.ietf.org/html/rfc4944#section-5.3 */
|
||||||
return RBUF_ADD_REPEAT;
|
return RBUF_ADD_REPEAT;
|
||||||
}
|
}
|
||||||
|
/* End was already checked in overlap check */
|
||||||
|
if (ptr->start == offset) {
|
||||||
|
DEBUG("6lo rbuf: fragment already in reassembly buffer");
|
||||||
|
gnrc_pktbuf_release(pkt);
|
||||||
|
return RBUF_ADD_SUCCESS;
|
||||||
|
}
|
||||||
ptr = ptr->next;
|
ptr = ptr->next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user