summaryrefslogtreecommitdiffstats
path: root/sys/netmpls (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Added mpls_output() used to output mpls packets originating from local host.michele2008-10-282-1/+155
| | | | | | Strictly similar to mpls_input(). Input and OK claudio@, OK laurent@
* Now mpls_input() handles ipv4 and ipv6 explicit null labels.michele2008-10-142-3/+30
| | | | | | 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 this compile again, by adding a struct proc * argumentthib2008-05-232-4/+4
| | | | | | to the usrreq's. (Both MPLS and NETATALK are disabled in GENERIC).
* Make MPLS code compile without pseudo device mpe. OK norbyclaudio2008-05-101-1/+5
|
* Kill some useless makros.claudio2008-05-091-3/+1
|
* Hook mpe(4) correctly into mpls so that it is possible to tunnel packets overclaudio2008-05-082-11/+16
| | | | MPLS. Still a bit hackish but getting closer. hai norby@
* add mpe_input() to be able to be fed packets that will reenter ip.pyr2008-05-071-1/+3
| | | | | | no consumers yet, they should come soon. ok norby@
* Make mpe a point-to-point interface.pyr2008-05-071-1/+4
| | | | | Make the mtu user definable. ok claudio@
* Correctly initialize labels by byte-swapping and inserting BoS and TTL.pyr2008-05-071-1/+2
| | | | | | | | 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@
* bring in the mpe interface - for ``MPLS Provider Edge'' - this is a workpyr2008-05-062-4/+15
| | | | | | | 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
|
* There is no need to endian convert the label after swapping it, all label opsclaudio2008-05-021-2/+1
| | | | are done with network byte ordering now. OK norby@
* Drop all MPLS packets when MPLS is not enabled.norby2008-04-302-2/+8
| | | | | | | | | 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
|
* add missing prototypesnorby2008-04-231-1/+19
|
* not needed any more...norby2008-04-231-111/+0
|
* not needed any more...norby2008-04-232-398/+0
|
* I hate working outside the tree.norby2008-04-235-705/+5
| | | | Fix my faulty import....
* Import MPLS (Multi Protocol Label Switching)norby2008-04-238-0/+1845
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@