summaryrefslogtreecommitdiff
path: root/sys/netmpls
AgeCommit message (Collapse)Author
2009-02-03Use our own flags to set the operations and not RTF_PROTOX.Michele Marchetto
Switch the padding field into a MPLS one in rt_msghdr to store relevant informations. OK claudio@ laurent@
2009-01-29mpls_operation have to be 2 bytes long to storeMichele Marchetto
operations correctly ok claudio@ laurent@
2009-01-28Get rid of the ugly rtentry hack.Michele Marchetto
We can now act as edge node and allow ipv4 packets to enter a Label Switched Path and not just forwarding MPLS packets. OK claudio@
2009-01-08Fix sockaddr_mpls structure.Michele Marchetto
Now it contains just the label as it must be. This introduces a ugly hack in rtentry that will be removed as soon as possible. OK claudio@
2008-12-15Initial fixup of sockaddr_mpls struct.Michele Marchetto
Remove smpls_in_iface as labels must be per platform unique. Remove smpls_out_iface. It is redudant and can be inferred from nexthop. Move smpls_operation to rt_flags and temporary remove smpls_out_exp. ok claudio@
2008-11-06Fix cvs id tag.Michele Marchetto
2008-11-01Introduced Uniform Model for TTL handling.Michele Marchetto
MPLS TTL is mapped into network layer one as the packet exits the LSP. Just IPv4 support for now. Added the relevant sysctls to enable this behaviour. Input and OK claudio@
2008-10-28Added mpls_output() used to output mpls packets originating from local host.Michele Marchetto
Strictly similar to mpls_input(). Input and OK claudio@, OK laurent@
2008-10-14Now mpls_input() handles ipv4 and ipv6 explicit null labels.Michele Marchetto
Added mpe_input6 to manage also ipv6 packets insted of just ipv4 ones. OK claudio@ laurent@
2008-05-23Forgot this one. Wrap a printf() into MPLS_DEBUG sinceThordur I. Bjornsson
MPLS_LABEL_GET() is only available #ifdef MPLS_DEBUG
2008-05-23Make this compile again, by adding a struct proc * argumentThordur I. Bjornsson
to the usrreq's. (Both MPLS and NETATALK are disabled in GENERIC).
2008-05-10Make MPLS code compile without pseudo device mpe. OK norbyClaudio Jeker
2008-05-09Kill some useless makros.Claudio Jeker
2008-05-08Hook mpe(4) correctly into mpls so that it is possible to tunnel packets overClaudio Jeker
MPLS. Still a bit hackish but getting closer. hai norby@
2008-05-07add mpe_input() to be able to be fed packets that will reenter ip.Pierre-Yves Ritschard
no consumers yet, they should come soon. ok norby@
2008-05-07Make mpe a point-to-point interface.Pierre-Yves Ritschard
Make the mtu user definable. ok claudio@
2008-05-07Correctly initialize labels by byte-swapping and inserting BoS and TTL.Pierre-Yves Ritschard
While there bump MTU to 1500 and set the receiving interface before calling mpls_input. mpestart will eventually call mpls_output when it exists. ``yaaaaayyy'' and ok claudio@ and norby@
2008-05-06bring in the mpe interface - for ``MPLS Provider Edge'' - this is a workPierre-Yves Ritschard
in progress and some bits need to be cleaned up but will be in-tree for convenience. ok claudio@, norby@
2008-05-06Drop all broadcast and multicast packets.Esben Norby
ok claudio@
2008-05-06get rid of rtalloc, use rtalloc1 instead.Esben Norby
ok claudio@
2008-05-06fix debug output.Esben Norby
ok claudio@
2008-05-02Fix the label swithing and forwarding logic a bit. OK norby@Claudio Jeker
2008-05-02There is no need to endian convert the label after swapping it, all label opsClaudio Jeker
are done with network byte ordering now. OK norby@
2008-04-30Drop all MPLS packets when MPLS is not enabled.Esben Norby
Discussed with claudio@ dlg@ laurent@ Remember to enable MPLS vith sysctl(8). sysctl -w net.mpls.enable=1 ok claudio@ dlg@ laurent@
2008-04-24the softnet intr handlers check if the input queue has packets onDavid Gwynne
it by reading the queues head pointer. if that pointer is not null then it takes splnet and dequeues a packet for handling. this is bad because the ifqueue head is modified at splnet and the sofnet handlers read it without holding splnet. this removes that check of the head pointer and simply checks if the dequeue gave us a packet or not before proceeding. found while reading mpls code. discussed with norby@ and henning@ ok mcbride@ henning@
2008-04-23unbreak compilationg with option MPLS but without option MPLS_DEBUGDavid Gwynne
2008-04-23add missing prototypesEsben Norby
2008-04-23not needed any more...Esben Norby
2008-04-23not needed any more...Esben Norby
2008-04-23I hate working outside the tree.Esben Norby
Fix my faulty import....
2008-04-23Import MPLS (Multi Protocol Label Switching)Esben Norby
MPLS support partly based on the (abandoned?) AYAME project. Basic LSR (Label Switch Router) functionality is present, but not fully functional yet. It is currently possible to insert entries in the LIB (Label Information Base) with route(8), but setting the operation type is not supported yet. Imported to allow more people to work on this in the coming weeks. ok claudio@ laurent@ dlg@