exported / libdnet

Automatically exported from code.google.com/p/libdnet
Other
0 stars 0 forks source link

need a manual in a well-marked position , and add interface and metric for full control if someone dont want the default value #16

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.  i tried more than half a hour,then get it work...then i found it is 
easy,but maybe hard for newbie to get it work at once...

What is the expected output? What do you see instead?

now it can't set the metric if it can it is better...

because it is not easy to find the API Documentation at :
http://libdnet.sourceforge.net/pydoc/

it is better if a manual for newbie come with the install package like:
import dnet

handle=dnet.route()

#add a route to route table
dst=dnet.addr('111.111.111.111')
gw=dnet.addr(your VPN or something)

handle.add(dst,gw)

#loop a function with two two param

def show(x,y):
 print x,y

handle.loop(show) # it show route table

What version of the product are you using? On what operating system?
dnet-1[1].12.win32       XP

Original issue reported on code.google.com by zip...@gmail.com on 24 Nov 2010 at 9:48

GoogleCodeExporter commented 9 years ago
gw=dnet.addr(your VPN or something)  i want the function

but it seems it can't add a vpn route....

can you update it or add a vpn_route_add function like "cmd route add"...

Original comment by zip...@gmail.com on 24 Nov 2010 at 11:20