summaryrefslogtreecommitdiff
path: root/sys/netmpls/mpls.h
AgeCommit message (Collapse)Author
2009-04-28Introduce a new dummy operation to easily handle packets that have to leaveMichele Marchetto
the MPLS cloud and join ipv4/ipv6 stack. ok claudio@ laurent@
2009-04-17Correctly handle packets that are leaving the MPLS cloud andMichele Marchetto
joining the ipv4/ipv6 stack. Get also rid of the dependency on mpe(4) for packets not belonging to VPN traffic. ok laurent@, ok and input claudio@
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-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-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-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-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-23add missing prototypesEsben 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@