Page MenuHomeFreeBSD

tests: carp: Update unicast_v4 to catch PR 284872
ClosedPublic

Authored by zlei on Thu, Feb 20, 10:32 AM.
Tags
None
Referenced Files
F112502346: D49076.id151238.diff
Tue, Mar 18, 11:40 PM
Unknown Object (File)
Thu, Mar 13, 10:40 PM
Unknown Object (File)
Thu, Mar 13, 9:11 PM
Unknown Object (File)
Tue, Mar 11, 3:01 AM
Unknown Object (File)
Thu, Mar 6, 7:25 AM
Unknown Object (File)
Thu, Mar 6, 6:02 AM
Unknown Object (File)
Fri, Feb 28, 5:25 PM
Unknown Object (File)
Thu, Feb 27, 3:47 AM

Details

Summary

In the current test case unicast_v4, host one acts as a router, but it uses if_bridge(4) to verify the reachability to CARP master. Unfortunately, if_bridge(4) brings the two CARP hosts into the same broadcast domain, thus with an unusual (undocumented) setup, one host is in unicast mode but another one in multicast, or two hosts are both in multicast mode, the test case can falsely report success.

Fix that by propagating route via routed(8).

PR 284872 shows that CARP(4) happens to send packets with multicast destination when the unicast peer address is x.x.x.224. Update the test to cover that bug.

PR: 284872
MFC after: 3 days

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

zlei requested review of this revision.Thu, Feb 20, 10:32 AM

This just needs the comment from D49053 explaining why the bridge is removed in the commit message.

This revision is now accepted and ready to land.Thu, Feb 20, 6:16 PM
zlei retitled this revision from tests: carp: Update unicast_v4 to reflect a real usage to tests: carp: Update unicast_v4 to catch PR 284872.
zlei edited the summary of this revision. (Show Details)
  1. Use prefex len 32 for virtual host ip
  2. Use RIPv2, for classless network ( /32 ).
  3. Shorten the wait time for route propagation, routed will query its neighbors immediately on startup, 3 seconds should be sufficient on busy test machine.
  4. Added comment why use peer address x.x.x.224.
This revision now requires review to proceed.Sat, Feb 22, 12:12 PM

Updated the description, should be clear enough now. @kp Does this look good to you ?

This revision is now accepted and ready to land.Sat, Feb 22, 6:35 PM