-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-test: packetdrill: for wire mode have client send WIRE_LIVE_REMOT…
…E_IP to server For wire mode have the client send WIRE_LIVE_REMOTE_IP to server. This fixes a significant bug from the May 2023 wire mode patch series. That bug caused the wire server to inject packets with a source IP of the DEFAULT_V4_LIVE_REMOTE_IP_STRING (192.0.2.1) instead of a source IP of the wire server machine. That bug prevented wire mode from working properly. This fixes behavior so that the following simple usage works as intended for remote/wire-server mode: server_machine# ./packetdrill --wire_server client_machine# ./packetdrill --wire_server_at=10.240.0.42 test.pkt This method of configuring the client and server now works properly because: + set_wire_client_defaults() will set live_remote_ip_string from wire_server_ip + the client will communicate this live_remote_ip_string value to the server + the server will use this live_remote_ip_string as the source IP for injected packets Signed-off-by: Neal Cardwell <[email protected]> Change-Id: Icda2f8040b3d69a1c23813e9d94e94cc3be88a36
- Loading branch information
1 parent
7f29a38
commit c0b9f43
Showing
4 changed files
with
48 additions
and
0 deletions.
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
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