shithub: riscv

Download patch

ref: 57284d07ca8bf02e4e8afacc5f9fd78f22c281de
parent: e2d310e6235b2f75bd0a1423ea424169247d5ae1
author: cinap_lenrek <[email protected]>
date: Mon Mar 4 07:07:40 EST 2019

devip: ignore reserved fragment offset bits

--- a/sys/src/9/ip/ipv6.c
+++ b/sys/src/9/ip/ipv6.c
@@ -481,7 +481,7 @@
 	 *  and get rid of any fragments that might go
 	 *  with it.
 	 */
-	if(offset == 0) {		/* 1st frag is also last */
+	if((offset & ~6) == 0) {	/* 1st frag is also last */
 		if(f != nil) {
 			ip->stats[ReasmFails]++;
 			ipfragfree6(ip, f);