Add --ip and --port flags for remote connections#480
Open
Add --ip and --port flags for remote connections#480
Conversation
Contributor
- 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>
5787482 to
51661a4
Compare
|
@steven-bellock Indeed, that's great! With this, I've been able to change port and it's working as expected. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Feature Request
Add command-line flags to enable spdm-emu to connect to SPDM bridges on remote machines.
Problem
Currently spdm-emu hardcodes connections to localhost:2323, making it impossible to test SPDM bridges running on remote hosts or different machines.
Proposed Solution
Add two new flags:
--ip <ip_address>- Specify remote bridge IP address--port <port_number>- Specify custom port numberUse Case
Backward Compatibility
Maintain current defaults (localhost:2323) when flags are not provided.