Coder Social home page Coder Social logo

vns's Issues

broken error handling in views_topology.py

Lines 43 and 59 of vns/AddressAllocation.py return errors incorrectly, causing python to error out when the return value is unpacked on line 64 of vns/web/vnswww/views_topology.py.

Build error in sr source code on ubuntu 10.04

When building the sr router from
http://nsl.cs.sfu.ca/teaching/11/771/projects/router/sr_stub.tar.gz

c@d:~/471/a2/stub$ make sr
gcc -c -g -Wall -ansi -D_DEBUG_ -D_LINUX_ sr_router.c -o sr_router.o
gcc -c -g -Wall -ansi -D_DEBUG_ -D_LINUX_ sr_main.c -o sr_main.o
gcc -c -g -Wall -ansi -D_DEBUG_ -D_LINUX_ sr_if.c -o sr_if.o
gcc -c -g -Wall -ansi -D_DEBUG_ -D_LINUX_ sr_rt.c -o sr_rt.o
gcc -c -g -Wall -ansi -D_DEBUG_ -D_LINUX_ sr_vns_comm.c -o sr_vns_comm.o
sr_vns_comm.c: In function ‘sr_connect_to_server’:
sr_vns_comm.c:109: error: ‘struct hostent’ has no member named ‘h_addr’
make: *** [sr_vns_comm.o] Error 1

This can be fixed as described in the gethostent man page by adding

define h_addr h_addr_list[0]

to the sr_vns_comm.c file

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.