Closed ekamberoglu closed 2 years ago
Hi Ekrem,
you are using the Ethernet link layer on your local loopback device (the default if you don't specify a device with --interface
). The loopback device has an all-zero MAC address, as you have already observed.
Furthermore, we compare "our" MAC address with the one in the received packet to suppress "local echos". When running multiple socktap instances I recommend setting distinct MAC addresses for each process explicitly with the --mac-address
parameters.
I've mostly used veth
for that purpose, so you have two connected local peer interfaces with their own mac address without relying on loopback directly:
sudo ip link add veth0 type veth peer name veth1
sudo ip link set dev veth0 up
sudo ip link set dev veth1 up
Thanks Raphael and Niklas!
Hello,
I have been trying to CAMs with socktap but CamApplication::indicate() method does not get called. When I debugged it, I noticed that the following if block of RouterContext::indicate method returns false:
I am passing the following program arguments to socktap - main class:
When I run it, the parameters' values in "if block":
I am very sorry for this trivial question (I am very new with Vanetza); what parameters do I have to pass as arguments that I can get true from the following "if block".
Thanks, Ekrem