git: 9front

Download patch

ref: db86bc9a980d51e4e5b403e2480504a332e1ea71
parent: c13dfeaceeda3be48d00bcb77d0055e6a92d7a11
author: Jacob Moody <moody@posixcafe.org>
date: Fri Jul 26 18:03:34 EDT 2024

devip: fix masks in ipmux filters

We were accidentally searching the key for '&', instead of the value.
Inferno received this exact fix at some point, but it never made it back to Plan 9.

--- a/sys/src/9/ip/ipmux.c
+++ b/sys/src/9/ip/ipmux.c
@@ -212,7 +212,7 @@
 		goto parseerror;
 
 	/* parse mask */
-	mask = follows(p, '&');
+	mask = follows(val, '&');
 	if(mask != nil){
 		switch(f->type){
 		case Tsrc:
--