-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
An IPv6 netmask prefix of 0 is distinct from the Mask's zero case, and should be encoded into the netlink message. This matches the behavior of libipvs.
- Loading branch information
1 parent
0aade8f
commit e906274
Showing
3 changed files
with
130 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
testdata/rapid/TestService_PackUnpack/TestService_PackUnpack-20240707010805-1321460.fail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# 2024/07/07 01:08:05.415620 [TestService_PackUnpack] [rapid] draw svc: ipvs.Service{Address:netip.Addr{addr:netip.uint128{hi:0x0, lo:0x0}, z:(*intern.Value)(0xc00011c0a8)}, Netmask:netmask.Mask{mask:0x0, z:2}, Scheduler:"", Timeout:0x0, Flags:0x0, Port:0x0, FWMark:0x0, Family:0xa, Protocol:0x0} | ||
# 2024/07/07 01:08:05.416260 [TestService_PackUnpack] assertion failed: | ||
# --- out.Service | ||
# +++ svc | ||
# ipvs.Service{ | ||
# Address: s"::", | ||
# - Netmask: s"invalid Mask", | ||
# + Netmask: s"0", | ||
# Scheduler: "", | ||
# Timeout: 0, | ||
# ... // 5 identical fields | ||
# } | ||
# | ||
v0.4.8#30582461511489384 | ||
0x0 | ||
0x1 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 | ||
0x0 |