summaryrefslogtreecommitdiffstats
path: root/sys/netmpls/mpls_input.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix the pop operation to make PHP work again. When popping the last labelclaudio2010-06-091-40/+76
| | | | | | | | by a pop operation we need to forward the packet to the specified nexthop as is. This is done by calling the interface output routine directly. This is different to the local operation since that one injects the packets into ip_input() via netisr. OK michele
* Kill the mpls enable sysctl knob. Since MPLS needs to be enabled explicitlyclaudio2010-06-021-2/+2
| | | | | on each interface there is no need for yet another knob. OK michele@
* Add a comment about the explicit NULL label handling. We follow RFC 4182claudio2010-05-311-1/+6
| | | | | which relaxes the position of these labels. After discussion with Christophe Fillot (cf (at) utc fr)
* Do not use IF_ENQUEUE() but IF_INPUT_ENQUEUE() instead. The first makroclaudio2010-05-311-3/+3
| | | | | | does no overflow checking and does not set the congestion flag. Protocol input queues (inet, inet6, ...) should always use IF_INPUT_ENQUEUE(). OK henning@
* Rework the way we handle MPLS in the kernel. Instead of fumbling MPLS intoclaudio2010-05-281-29/+38
| | | | | | | | | | | ether_output() and later on other L2 output functions use a trick and over- load the ifp->if_output() function pointer on MPLS enabled interfaces to go through mpls_output() which will then call the link level output function. By setting IFXF_MPLS on an interface the output pointers are switched. This now allows to cleanup the MPLS input and output pathes and fix mpe(4) so that the MPLS code now actually works for both P and PE systems. Tested by myself and michele (A custom kernel with MPLS and mpe enabled is still needed).
* Start cleaning up the mess called rtalloc*. Kill rtalloc2, make rtalloc1claudio2010-05-071-3/+2
| | | | | | | | accept flags for report and nocloning. Move the rtableid into struct route (with a minor twist for now) and make a few more codepathes rdomain aware. Appart from the pf.c and route.c bits the diff is mostly mechanical. More to come... OK michele, henning
* Split up functionalities between mpls_input and mpls_output.michele2009-04-291-19/+3
| | | | | | | | The former is responsible to handle packets destined to localhost, the latter handles packet that have to be forwarded or the ones originated from localhost. "i like it" claudio@
* Introduce a new dummy operation to easily handle packets that have to leavemichele2009-04-281-4/+20
| | | | | | the MPLS cloud and join ipv4/ipv6 stack. ok claudio@ laurent@
* Correctly handle packets that are leaving the MPLS cloud andmichele2009-04-171-6/+105
| | | | | | | | | 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@
* Get rid of the ugly rtentry hack.michele2009-01-281-13/+22
| | | | | | | | 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@
* Fix sockaddr_mpls structure.michele2009-01-081-17/+17
| | | | | | | | | 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@
* Initial fixup of sockaddr_mpls struct.michele2008-12-151-10/+8
| | | | | | | | 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@
* Introduced Uniform Model for TTL handling.michele2008-11-011-5/+5
| | | | | | | | 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@
* Now mpls_input() handles ipv4 and ipv6 explicit null labels.michele2008-10-141-2/+27
| | | | | | Added mpe_input6 to manage also ipv6 packets insted of just ipv4 ones. OK claudio@ laurent@
* Forgot this one. Wrap a printf() into MPLS_DEBUG sincethib2008-05-231-1/+3
| | | | MPLS_LABEL_GET() is only available #ifdef MPLS_DEBUG
* Make MPLS code compile without pseudo device mpe. OK norbyclaudio2008-05-101-1/+5
|
* Hook mpe(4) correctly into mpls so that it is possible to tunnel packets overclaudio2008-05-081-9/+13
| | | | MPLS. Still a bit hackish but getting closer. hai norby@
* bring in the mpe interface - for ``MPLS Provider Edge'' - this is a workpyr2008-05-061-3/+1
| | | | | | | in progress and some bits need to be cleaned up but will be in-tree for convenience. ok claudio@, norby@
* Drop all broadcast and multicast packets.norby2008-05-061-1/+7
| | | | ok claudio@
* get rid of rtalloc, use rtalloc1 instead.norby2008-05-061-6/+5
| | | | ok claudio@
* fix debug output.norby2008-05-061-12/+17
| | | | ok claudio@
* Fix the label swithing and forwarding logic a bit. OK norby@claudio2008-05-021-8/+15
|
* Drop all MPLS packets when MPLS is not enabled.norby2008-04-301-1/+6
| | | | | | | | | Discussed with claudio@ dlg@ laurent@ Remember to enable MPLS vith sysctl(8). sysctl -w net.mpls.enable=1 ok claudio@ dlg@ laurent@
* the softnet intr handlers check if the input queue has packets ondlg2008-04-241-2/+2
| | | | | | | | | | | | | | | 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@
* unbreak compilationg with option MPLS but without option MPLS_DEBUGdlg2008-04-231-1/+5
|
* I hate working outside the tree.norby2008-04-231-162/+1
| | | | Fix my faulty import....
* Import MPLS (Multi Protocol Label Switching)norby2008-04-231-0/+337
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@