Virtual Interfaces.. (fwd)

Jean-Francois Dive jef at linuxbe.org
Wed Nov 7 15:30:00 EST 2001


Hi all,

This is a second try as i did not had input on this problem:

How would be the click way to handle virtual interfaces in click: i have
actually wroten GreEncap and GreDecap elements, but i need to hook this
with an interface to route properly the traffic in and out of this
interface and to check the validity of the Gre packet (to avoid loops,
etc.., cf RFC).
I looked to the anyinterface element and guess i could use this as a base
class, but i would like to be sure how to proceed. In fact, from my
prospective this virtual interface should be like any othe one except that
it will accept packet on input and ouput. My idea is the following:


FromInterface(eth0)->classifier(gre)->greDecap->VirtualTunnelInterface->clickRoutingStack.

ClickroutingStack->VirtualTunnelInterface->greEncap->ClickRoutingStack.

Another point is the existance of this interface in the linux dev table,
how should this be handled ?

Thanks for any help on this.

Cheers,

JeF






More information about the click mailing list