eiginn / coreemu

Automatically exported from code.google.com/p/coreemu
BSD 2-Clause "Simplified" License
0 stars 1 forks source link

CORE bug with gre tunnels on Ubuntu 12.4 #143

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I start with a blank canvas and put down a single router icon 
and a single tunnel icon. I then connect the two icons with a
link, set a peer address on the tunnel icon, and click on run.
However, if I draw the link from the router icon to the tunnel
icon, then everything works as expected. But, if I draw the
link from the tunnel icon to the router icon the gre tunnel
linkage is somehow broken.

I verify this by running "ifconfig -a" on the host machine.
When the link is drawn from the router icon to the tunnel
icon, ifconfig shows both TX and RX packets as you would
expect. When the link is drawn from the tunnel icon to the
router icon, however, ifconfig shows all TX packets as
errors, with error code "carrier". There are also no RX
packets, but if you run tcpdump on the peer machine you
can see that the broken node's gre driver responds with
an ICMP port unreachable message for every packet that
it should be receiving.

See attached for two imn files called "broken.imn" and
"works.imn" - there should be exactly one line of diffs
between the two files. Also attached is "ifconfig.txt"
which shows the output of ifconfig when running the
broken imn.

Original issue reported on code.google.com by fltemp...@gmail.com on 30 May 2012 at 8:11

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ahrenh...@gmail.com on 17 Jul 2012 at 10:33

GoogleCodeExporter commented 9 years ago
Any idea what is causing this behavior?

The gretap devices look the same to me in both the working and non-working. 
Bridging looks the same. The Python objects look the same...

Original comment by ahrenh...@gmail.com on 29 Aug 2012 at 6:03

GoogleCodeExporter commented 9 years ago

Original comment by ahrenh...@gmail.com on 29 Aug 2012 at 10:51

GoogleCodeExporter commented 9 years ago
fixed in r552

the series of if conditionals in handlelinkmsg() were incorrectly adding two 
addresses to netaddrlist

Original comment by ahrenh...@gmail.com on 5 Sep 2012 at 9:07