Commit c0b9f43
committed
net-test: packetdrill: for wire mode have client send WIRE_LIVE_REMOTE_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 <ncardwell@google.com>
Change-Id: Icda2f8040b3d69a1c23813e9d94e94cc3be88a361 parent 7f29a38 commit c0b9f43
File tree
4 files changed
+48
-0
lines changed- gtests/net/packetdrill
4 files changed
+48
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
154 | 166 | | |
155 | 167 | | |
156 | 168 | | |
| |||
279 | 291 | | |
280 | 292 | | |
281 | 293 | | |
| 294 | + | |
| 295 | + | |
282 | 296 | | |
283 | 297 | | |
284 | 298 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
239 | 268 | | |
240 | 269 | | |
241 | 270 | | |
| |||
488 | 517 | | |
489 | 518 | | |
490 | 519 | | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
491 | 523 | | |
492 | 524 | | |
493 | 525 | | |
| |||
0 commit comments