fw4: fix typo in emitted set types
authorJo-Philipp Wich <jo@mein.io>
Mon, 30 May 2022 14:30:35 +0000 (16:30 +0200)
committerJo-Philipp Wich <jo@mein.io>
Mon, 30 May 2022 14:30:35 +0000 (16:30 +0200)
Fixes: #9927
Fixes: b0b8122 ("treewide: use modern syntax")
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
root/usr/share/ucode/fw4.uc

index cfef69c14c98c8c7f579c851a22407d60bc1358d..64439504be49a33566fa43fc49f38a49d9acdbb8 100644 (file)
@@ -338,11 +338,11 @@ function map_setmatch(set, match, proto) {
 
                switch (t) {
                case 'ipv4_addr':
-                       fields[i] = `ip ${dir}saddr`;
+                       fields[i] = `ip ${dir}addr`;
                        break;
 
                case 'ipv6_addr':
-                       fields[i] = `ip6 ${dir}saddr`;
+                       fields[i] = `ip6 ${dir}addr`;
                        break;
 
                case 'ether_addr':