Blame SOURCES/0029-fix-rich-source-mac-with-nftables-backend.patch
|
|
1ae9b3 |
From 53e62b6640c2d52ca6385120e3215b18d4ea70bf Mon Sep 17 00:00:00 2001
|
|
|
1ae9b3 |
From: Eric Garver <eric@garver.life>
|
|
|
1ae9b3 |
Date: Mon, 8 Jun 2020 14:58:50 -0400
|
|
|
1ae9b3 |
Subject: [PATCH 29/45] fix(rich): source mac with nftables backend
|
|
|
1ae9b3 |
|
|
|
1ae9b3 |
Fixes: #643
|
|
|
1ae9b3 |
Fixes: rhbz 1843398
|
|
|
1ae9b3 |
Fixes: 1582c5dd736a ("feat: nftables: convert to libnftables JSON interface")
|
|
|
1ae9b3 |
(cherry picked from commit e255e7357358b5fe1593225e6bd995850421825a)
|
|
|
1ae9b3 |
(cherry picked from commit d78607ca4862a7b20551a98387ff285499d73440)
|
|
|
1ae9b3 |
---
|
|
|
1ae9b3 |
src/firewall/core/nftables.py | 2 +-
|
|
|
1ae9b3 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
1ae9b3 |
|
|
|
1ae9b3 |
diff --git a/src/firewall/core/nftables.py b/src/firewall/core/nftables.py
|
|
|
1ae9b3 |
index 69ee63b32f8b..97b1cd9f7f1e 100644
|
|
|
1ae9b3 |
--- a/src/firewall/core/nftables.py
|
|
|
1ae9b3 |
+++ b/src/firewall/core/nftables.py
|
|
|
1ae9b3 |
@@ -1064,7 +1064,7 @@ class nftables(object):
|
|
|
1ae9b3 |
if addr_field == "daddr":
|
|
|
1ae9b3 |
raise FirewallError(INVALID_RULE, "%s._rule_addr_fragment()", (self.__class__))
|
|
|
1ae9b3 |
family = "ether"
|
|
|
1ae9b3 |
- if check_single_address("ipv4", address):
|
|
|
1ae9b3 |
+ elif check_single_address("ipv4", address):
|
|
|
1ae9b3 |
family = "ip"
|
|
|
1ae9b3 |
elif check_address("ipv4", address):
|
|
|
1ae9b3 |
family = "ip"
|
|
|
1ae9b3 |
--
|
|
|
1ae9b3 |
2.27.0
|
|
|
1ae9b3 |
|