Giter VIP home page Giter VIP logo

amt's People

Contributors

bugbaron avatar grumpyoldtroll avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

amt's Issues

Accessing free memory (and crashed)

Running under valgrind found a problem:

amtgwd: exceeded max tries to send membership
==12== Invalid read of size 8
==12==    at 0x10C7F1: gw_request_timeout (gw_udp.c:184)
==12==    by 0x487DE67: ??? (in /usr/lib/x86_64-linux-gnu/libevent-2.1.so.7.0.1)
==12==    by 0x487F8A6: event_base_loop (in /usr/lib/x86_64-linux-gnu/libevent-2.1.so.7.0.1)
==12==    by 0x10AB35: main (gw_main.c:228)
==12==  Address 0x4adf1a0 is 0 bytes inside a block of size 128 free'd
==12==    at 0x484B27F: free (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==12==    by 0x10C7F0: gw_request_timeout (gw_udp.c:187)
==12==    by 0x487DE67: ??? (in /usr/lib/x86_64-linux-gnu/libevent-2.1.so.7.0.1)
==12==    by 0x487F8A6: event_base_loop (in /usr/lib/x86_64-linux-gnu/libevent-2.1.so.7.0.1)
==12==    by 0x10AB35: main (gw_main.c:228)
==12==  Block was alloc'd at
==12==    at 0x484DA83: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==12==    by 0x10D786: gw_request_get (gw_udp.c:59)
==12==    by 0x10D786: gw_request_start (gw_udp.c:814)
==12==    by 0x10E206: gw_receive_tun (gw_tun.c:415)
==12==    by 0x10E206: gw_event_tun (gw_tun.c:439)
==12==    by 0x487DF57: ??? (in /usr/lib/x86_64-linux-gnu/libevent-2.1.so.7.0.1)
==12==    by 0x487F8A6: event_base_loop (in /usr/lib/x86_64-linux-gnu/libevent-2.1.so.7.0.1)
==12==    by 0x10AB35: main (gw_main.c:228)

amtgwd: couldn't set tunnel veth3 mode to broadcast: Invalid argument

Hey there,

I am currently trying to test the code on ubuntu following the instructions in testbed-setup/simpler-testbed.txt, and there is an issue when running the amdgwd file.

Whenever I run the file, the error "amtgwd: couldn't set tunnel veth3 mode to broadcast: Invalid argument" always appears. I have traced the error to line 158 of gateway/gw_tun.c, although I believe the issue may be related to a difference in how TUNSETIFF is run or something.

Here is some information about the system I am running:
Linux version 4.15.0-69-generic (buildd@lgw01-amd64-032) (gcc version 7.4.0 (Ubuntu 7.4.0-1ubuntu1~18.04.1)) #78-Ubuntu SMP Wed Nov 6 11:30:24 UTC 2019

I had to change some of the commands in the testbed-setup/simpler-testbed.txt file to get them to run. Namely, I had to change the commands to run each of the compiled files as follows:

sudo ip netns exec mrelay unbuffer /usr/local/bin/amtrelayd -n inet -l inet -c veth1 -s 10.3.3.1 -q1 -d -a "10.3.3.1/32"

sudo ip netns exec mrcv unbuffer /usr/local/bin/amtgwd -a 10.3.3.1 -c veth3 -d

Any idea what might be causing this problem?

AMT Relay tunnel interface?

Hey there,

I was just considering making the relay use a tunnel interface for our purposes, and I thought I might see if you knew what parts of the code need refactoring for that purpose? If not, I'll just keep looking around on my own.

Cheers

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.