Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dut monitor: Support local port forwarding option #264

Conversation

mhiramat
Copy link
Collaborator

Add the options for local port forwarding for each DUT on cro3 dut monitor. This allows user to make DUT working as gateway. e.g.

cro3 dut monitor mydut,192.168.111.222:3456

This will map some local port to 192.168.111.222:3456 via mydut.

Add the options for local port forwarding for each DUT on `cro3 dut monitor`.
This allows user to make DUT working as gateway. e.g.

cro3 dut monitor mydut,192.168.111.222:3456

This will map some local port to 192.168.111.222:3456 via mydut.
Copy link
Contributor

@brandonpollack23 brandonpollack23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initial comments for now

src/dut.rs Outdated Show resolved Hide resolved
src/dut.rs Outdated Show resolved Hide resolved
src/dut.rs Outdated Show resolved Hide resolved
src/dut.rs Outdated Show resolved Hide resolved
src/dut.rs Outdated Show resolved Hide resolved
src/dut.rs Outdated Show resolved Hide resolved
src/dut.rs Outdated Show resolved Hide resolved
src/cmd/dut.rs Outdated Show resolved Hide resolved
src/cmd/dut.rs Show resolved Hide resolved
Accept (very lazy)IPv6 address for port fowarding.
User can pass the address as;

cro3 dut monitor DUT_NAME,IPV4:PORT,[IPV6]:port
Instead of pushing each sub status to the DUT status, just
create another status vector string and join it.
There is no reason to pass Vec with Option, and if it is not mutable
the slice is enough.
Simply return an errror instead of abort, and parse port_str without
temporary variable.
Copy link
Collaborator

@HidenoriKobayashi HidenoriKobayashi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mhiramat mhiramat merged commit 7d12fd6 into main Oct 16, 2024
3 checks passed
@mhiramat mhiramat deleted the 263-add-new-port-forwarding-mode-to-cro3-dut-shell-or-other-command branch October 16, 2024 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new port forwarding mode to cro3 dut shell or other command
3 participants