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

Add --dbus-address #13

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Add --dbus-address #13

wants to merge 4 commits into from

Conversation

elmarco
Copy link
Contributor

@elmarco elmarco commented Feb 27, 2020

The dbus interface will allow to introspect and configure things
dynamically, right now I just implemented GetInfo() that follows
qemu/slirp output and specification from
https://gitlab.freedesktop.org/slirp/libslirp/-/wikis/Slirp-Helper:

busctl --verbose --user call org.freedesktop.Slirp1_201285 /org/freedesktop/SlirpHelper1 org.freedesktop.SlirpHelper1 GetInfo
MESSAGE "s" {
STRING "Protocol[State] Source Address Port Dest. Address Port
TCP[ESTABLISHED] 10.0.2.100 55644 10.48.1.24 22
UDP[BOUND] 0 67
";
};

You can connect to the session bus with:
-dbus-address=$DBUS_SESSION_BUS_ADDRESS, or specify a custom bus
address.

Signed-off-by: Marc-André Lureau marcandre.lureau@redhat.com

@elmarco elmarco force-pushed the dbus branch 2 times, most recently from 5a6c812 to d6720ea Compare March 10, 2020 20:39
Accept() doesn't have context, so it can't be easily cancelled. The
listener must be closed. We will do that in a follow up patch.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
The dbus interface will allow to introspect and configure things
dynamically.

Implement GetInfo() that follows qemu/slirp output and specification
from https://gitlab.freedesktop.org/slirp/libslirp/-/wikis/Slirp-Helper:

busctl --verbose --user call org.freedesktop.Slirp1_201285 /org/freedesktop/SlirpHelper1 org.freedesktop.SlirpHelper1 GetInfo
MESSAGE "s" {
        STRING "Protocol[State]      Source Address  Port   Dest. Address  Port
TCP[ESTABLISHED]         10.0.2.100 55644      10.48.1.24    22
UDP[BOUND]                              0                    67
";
};

You can connect to the session bus with -dbus-address=$DBUS_SESSION_BUS_ADDRESS
or specify a custom bus address.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Allow to add/remove/list forwarded sockets.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
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.

1 participant