git: 9front

Download patch

ref: 4d8b994cf47f2fef7b8664aa6f8a266da560d8bd
parent: 5a6ecc9855ee8fba0556175ceac7a857193f14fe
author: cinap_lenrek <cinap_lenrek@felloff.net>
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);
--