summaryrefslogtreecommitdiffstats
path: root/sys/netmpls/mpls_raw.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Convert mpls_sysctl to sysctl_bounded_argsgnezdo2020-08-191-11/+8
| | | | OK claudio@
* Move range check inside sysctl_int_arrgnezdo2020-08-011-6/+3
| | | | | | | Range violations are now consistently reported as EOPNOTSUPP. Previously they were mixed with ENOPROTOOPT. OK kn@
* Remove mpls_inkloop and the corresponding sysctl net.mpls.maxloop_inkernel.claudio2019-11-051-2/+1
| | | | | | The value is no longer needed since the MPLS code got refactored some time ago. Found by Thomas Habets (thomas (at) habets se)
* Retire the AF_MPLS protosw struct. Nothing is using it and the code was superclaudio2017-02-271-54/+1
| | | | | | | basic anyway. Simplifies the code a lot also by calling the mpls sysctl no longer via the protosw but instead directly. OK mpi@ on a previous diff. Also tested by renato@ who actually found a bug which is now fixed.
* Return EOPNOTSUPP instead of calling a function to do only that.mpi2016-11-151-16/+2
| | | | ok phessler@
* No need for <net/if_types.h>mpi2015-11-241-2/+1
| | | | As a bonus this removes a "#if NCARP > 0", say yeah!
* Kill NETISR_MPLS, from now on we will use interface input handlers to dealrzalamena2015-07-201-5/+2
| | | | | | with MPLS packets. ok mpi@, claudio@
* replace the use of ifqueues for most input queues serviced by netisrdlg2015-04-101-2/+2
| | | | | | | | | | | | | | | | | with niqueues. this change is so big because there's a lot of code that takes pointers to different input queues (eg, ether_input picks between ipv4, ipv6, pppoe, arp, and mpls input queues) and falls through to code to enqueue packets against the pointer. if i changed only one of the input queues id have to add sepearate code paths, one for ifqueues and one for niqueues in each of these places by flipping all these input queues at once i can keep the currently common code common. testing by mpi@ sthen@ and rafael zalamena ok mpi@ sthen@ claudio@ henning@
* Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.mpi2014-12-051-1/+2
| | | | ok mikeb@, krw@, bluhm@, tedu@
* a little header cleanup. ok deraadttedu2013-03-271-4/+1
|
* Use MPLS_INKERNEL_LOOP_MAX instead of 16 when initializing mpls_inkloop.claudio2010-09-031-2/+2
|
* Correct function in panic string. From Christophe Fillotclaudio2010-07-151-2/+2
|
* Kill the mpls enable sysctl knob. Since MPLS needs to be enabled explicitlyclaudio2010-06-021-2/+1
| | | | | on each interface there is no need for yet another knob. OK michele@
* Unbreak build of MPLS enabled kernel. proc.h is needed.michele2010-04-221-1/+2
| | | | ok claudio@
* Introduced Uniform Model for TTL handling.michele2008-11-011-2/+2
| | | | | | | | 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@
* Make this compile again, by adding a struct proc * argumentthib2008-05-231-2/+2
| | | | | | to the usrreq's. (Both MPLS and NETATALK are disabled in GENERIC).
* I hate working outside the tree.norby2008-04-231-156/+1
| | | | Fix my faulty import....
* Import MPLS (Multi Protocol Label Switching)norby2008-04-231-0/+301
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@