Modifying Kernel Routes?

Gerhard Geßler gessler at iabg.de
Tue Nov 5 07:18:40 EST 2002


"Michael 'Mickey' Lauer" <mickey at tm.informatik.uni-frankfurt.de> schrieb im
Newsbeitrag news:3dc484ac at nntp.server.uni-frankfurt.de...
> Hi,
>
> we have implemented a routing algorithm for ad-hoc-networks (TORA) in
> Python using os.popen("route") to actually set the (linux) kernel routes.
> Did anyone of you come around some example code how to alter routes in
> pure python or even better do you know of an extension module which offers
> this functionality?
>
> Yours,
>
> Mickey.

I don't know about a Python module for doing this, but I want to suggest
that you better use the "ip" utility for manipulating routes. It is more
powerful than the normal "route" command.

Cheers,

    Gerhard






More information about the Python-list mailing list