summaryrefslogtreecommitdiffstats
path: root/sys/net/if_mpip.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* use the factored out txhprio and rxhprio checksdlg2019-04-191-16/+5
| | | | reduces code duplication and chance for error.
* implement rxpriodlg2019-04-191-5/+63
|
* use txprio to control the use of exp as a priority fielddlg2019-04-171-5/+58
| | | | | | | | by default txprio is set to 0, so the exp field will be 0. howerver, txprio on mpe/mpw/mpip can be configured with other values or settings like our other tunnel or encapsulation interfaces. intermediate LSPs can use the exp field to manage their prioritisation of encapsulated traffic.
* clear the BCAST and MCAST mbuf flags for "outgoing" packets.dlg2019-04-021-1/+2
| | | | | | | | | if these remain set then output on the underlying interface may mistakenly be done with the wrong protocol type (eg, MPLS_MCAST instead of MPLS), and to the wrong link layer address. reported by Lee Nelson the specific problem was identified by Mitchell Krome
* some mbuf ph_rtableid fixesdlg2019-04-021-2/+8
| | | | | consistently set the rtabled for "outgoing" packets to the encap rdomain. use this for rtallocs in mpip too instead of assuming 0.
* make SIOCGETLABEL fail with EADDRNOTAVAIL if the label is not set.dlg2019-03-181-2/+2
| | | | this makes ifconfig print "(unset)" to show the label isn't set yet.
* Add mpip(4), an IP tunnel interface for "IP Layer 2" over MPLS pseudowiresdlg2019-02-281-0/+706
This is basically mpw(4), but it carries IP directly instead of Ethernet. On the wire it can look the same as what IP over MPLS looks like, but because it is a pseudowire you can configure a control word or the FAT label to improve load balancing. It can be used to quickly set up an IP tunnel over an MPLS fabric without the need to configure bgpd and mpe(4) interfaces. Because It implements the same pwe3 ioctls that mpw(4) uses ifconfig already supports configuration of mpip(4) interfaces. ldpd will grow support for this in the near future. This is not hooked up to the build yet discussed with claduio@ at ak219 ok claudio@