Skip to contentSkip to conversation

tests: hash:ip,port.t: Replace VRRP by GRE protocol

PATCH In review Phil Sutter 3 participants 4 messages Mar 10, 2023 – Mar 15, 2023 netfilter

lore
Share & tools
lore

Phil Sutter

author reviewer
#0 lore raw

PATCH 1/1 tests: hash:ip,port.t: Replace VRRP by GRE protocol

Some systems may not have "vrrp" as alias to "carp" yet, so use a protocol which is less likely to cause problems for testing purposes.

Fixes a67aa712ed912 ("tests: hash:ip,port.t: 'vrrp' is printed as 'carp'")
---
 tests/hash:ip,port.t       | 8 ++++----
 tests/hash:ip,port.t.list2 | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
tests/hash:ip,port.t +4 -4
index addbe3be1f787..f65fb59116824 100644
@@ -62,10 +62,10 @@
 0 ipset test test 2.0.0.1,tcp:80
 # Test element with UDP protocol
 0 ipset test test 2.0.0.1,udp:80
-# Add element with vrrp
-0 ipset add test 2.0.0.1,vrrp:0
-# Test element with vrrp
-0 ipset test test 2.0.0.1,vrrp:0
+# Add element with GRE
+0 ipset add test 2.0.0.1,gre:0
+# Test element with GRE
+0 ipset test test 2.0.0.1,gre:0
 # Add element with sctp
 0 ipset add test 2.0.0.1,sctp:80
 # Test element with sctp
tests/hash:ip,port.t.list2 +1 -1
index 0c5d3a15ef369..25504227d4fd7 100644
@@ -6,6 +6,6 @@ Size in memory: 480
 References: 0
 Number of entries: 3
 Members:
-2.0.0.1,carp:0
+2.0.0.1,gre:0
 2.0.0.1,tcp:80
 2.0.0.1,udp:80
Signature · 1 line
2.38.0
#1 lore raw
Quoted 2 lines · Phil Sutter

Some systems may not have "vrrp" as alias to "carp" yet, so use a protocol which is less likely to cause problems for testing purposes.

LGTM, thanks

author reviewer
#2 lore raw
In reply to Phil Sutter
Quoted 5 lines · Phil Sutter

Some systems may not have "vrrp" as alias to "carp" yet, so use a protocol which is less likely to cause problems for testing purposes.

Fixes a67aa712ed912 ("tests: hash:ip,port.t: 'vrrp' is printed as 'carp'")

Patch applied.

#3 lore raw

Hi Phil, Pablo,

Quoted 8 lines · Phil Sutter
Quoted 5 lines · Phil Sutter

Some systems may not have "vrrp" as alias to "carp" yet, so use a protocol which is less likely to cause problems for testing purposes.

Fixes a67aa712ed912 ("tests: hash:ip,port.t: 'vrrp' is printed as 'carp'")

Patch applied.

Thank you for helping me out in these times! For the time being I can only work on ipset sporadically.

Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : https://wigner.hu/~kadlec/pgp_public_key.txt
Address : Wigner Research Centre for Physics

          H-1525 Budapest 114, POB. 49, Hungary