Commit 51661a4
committed
Add --ip and --port flags for remote bridge connections
- Add --ip flag to specify remote bridge IP address
- Add --port flag to specify custom port number
- Update init_client() to use configurable IP/port with inet_pton for Windows
- Add IP address validation and conversion
- Update usage documentation for both spdm_requester_emu and spdm_device_validator_sample
- Support both MCTP and TCP transports with custom ports
- Fix Windows MSVC build by replacing deprecated inet_addr with inet_pton
- Enable spdm_device_validator_sample to connect to remote bridges
This enables spdm-emu tools to connect to bridges running on remote machines,
useful for testing SPDM implementations across different hosts while maintaining
backward compatibility with default localhost:2323 connections.
Signed-off-by: Lee Ballard <lee.ballard@dell.com>1 parent 5565c7a commit 51661a4
File tree
4 files changed
+89
-7
lines changed- spdm_emu
- spdm_device_validator_sample
- spdm_emu_common
- spdm_requester_emu
4 files changed
+89
-7
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
| |||
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
609 | 614 | | |
610 | 615 | | |
611 | 616 | | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
612 | 655 | | |
613 | 656 | | |
614 | 657 | | |
| |||
1443 | 1486 | | |
1444 | 1487 | | |
1445 | 1488 | | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
1446 | 1501 | | |
1447 | 1502 | | |
1448 | 1503 | | |
1449 | 1504 | | |
| 1505 | + | |
1450 | 1506 | | |
1451 | 1507 | | |
1452 | 1508 | | |
| |||
1470 | 1526 | | |
1471 | 1527 | | |
1472 | 1528 | | |
1473 | | - | |
1474 | | - | |
1475 | | - | |
| 1529 | + | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
| 1533 | + | |
| 1534 | + | |
| 1535 | + | |
| 1536 | + | |
| 1537 | + | |
| 1538 | + | |
| 1539 | + | |
| 1540 | + | |
| 1541 | + | |
| 1542 | + | |
| 1543 | + | |
| 1544 | + | |
| 1545 | + | |
| 1546 | + | |
| 1547 | + | |
| 1548 | + | |
| 1549 | + | |
| 1550 | + | |
1476 | 1551 | | |
1477 | 1552 | | |
1478 | 1553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
299 | 300 | | |
300 | 301 | | |
301 | | - | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
302 | 305 | | |
303 | 306 | | |
304 | 307 | | |
| |||
0 commit comments