-
Notifications
You must be signed in to change notification settings - Fork 83
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
Support v2 and v3 options from libslirp #200
Conversation
Thanks!
|
Alright will do. Thanks for prompt feedback. I will go through that tomorrow. |
8aa9db3
to
7f305ab
Compare
I don't know why are the test failing yet. I ran Dockerfile.tests in my environment with same parameters and same code base without issues. 🤔
|
To me it looks like the final Can we outsource cleanup routine to avoid these errors? Like this: function cleanup {
kill -9 $nc_pid $child $slirp_pid &
} Also regarding outbound address. Do you have any suggestions how to test it with automated tests? |
I guess we can just test |
Ok, I am going to check out what we can do with it using |
@AkihiroSuda can you please take a look at outbound-addr test? It should be sufficient for now. I wasn't able to test ipv6. All ipv6 requests failed with |
d8777d5
to
cf1c473
Compare
Almost looks good except a couple of nits. The IPv6 tests can be added later. |
be5cbf9
to
cbfb579
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except a typo, thanks
Signed-off-by: Bohumil Cervenka <5eraph@protonmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Hi,
This is first draft of changes providing support for configuration v2 and v3 of libslirp.
Fixes #173
@AkihiroSuda please let me know your thoughts on this. I am not sure about organization of some parts.
E.g.:
- if we want to print configured outbound address on slirp setup, is it ok to pass originalchar *
outbound_addr/6 toparent
function or is there better way ? (this is not implemented yet)