-
Notifications
You must be signed in to change notification settings - Fork 156
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
communication between two hosts using socktap and UDP #198
Comments
I suppose the low-level Ethernet frames in the former case are not filtered and thus receivable by the host. For the UDP-based link layer, we use IP multicast. Possibly some further configuration is required to forward multicast traffic from/to Docker containers? |
Maybe binding UDP multicast to the specific IP helps |
Hi @riebl I got on the receiver side the multicast packages from ./socktap -l udp --mac-address 00:00:00:00:00:01 --print-rx |
Hi @razr, socktap has no vanetza/tools/socktap/link_layer.cpp Line 66 in fc6d69e
|
I have no experience with multicast and docker, but these modifications in udp_link.cpp should work, when more network interaces are present. IP address of the device specified with -i parameter is stored in std::string ip.
|
@riebl it looks like that ./socktap --print-t I'm not sure whether it is an expected behavior, this extra line forces strict options: diff --git a/tools/socktap/main.cpp b/tools/socktap/main.cpp
index de61b871..40c3a4f6 100644
--- a/tools/socktap/main.cpp
+++ b/tools/socktap/main.cpp
@@ -48,6 +48,7 @@ int main(int argc, const char** argv)
po::command_line_parser(argc, argv)
.options(options)
.positional(positional_options)
+ .style(po::command_line_style::default_style & ~po::command_line_style::allow_guessing)
.run(),
vm
); |
@valt2017 Thanks much for your reply. It is not docker-related, as you have mentioned it is about multiple network interfaces in the system. I have added a route on the host side: sudo ip route add 239.118.122.97 dev docker0 After that # Docker
./bin/socktap -l udp --print-tx-cam
# Host
./bin/socktap -l udp -i docker0 --print-rx-cam It looks like the |
OK, I can try it during the weekend. |
I'd like to establish a
UDP
connection between docker and host both runningsocktap
This works
This does not work
However, I see on the receiver side the messages coming from the transmitter:
The text was updated successfully, but these errors were encountered: