Re: MPLS decap with iproute2

2015-12-07 Thread Sam Russell
Thanks all for your help, I got it working with Robert and Roopa's sysctl settings, the following works: ip route -f mpls add 100 dev lo On 8 December 2015 at 15:37, roopa <ro...@cumulusnetworks.com> wrote: > On 12/7/15, 11:42 AM, Sam Russell wrote: >> Hi, >>

MPLS decap with iproute2

2015-12-07 Thread Sam Russell
Hi, I've had success with the iproute2 manpage example for encapsulating outgoing traffic in MPLS, but I've not found a way to add decap routes inbound. I've tried "ip route -f mpls add 100 dev lo" and other variations, but I get netlink errors back. Has this been built yet? Is there sample

Re: MPLS decap with iproute2

2015-12-07 Thread Sam Russell
Hi Robert, Thanks for the tip, I'll give it a shot when I get home this evening (UTC+13). I'm planning to put together a blog on how to manually string up an MPLS l3vpn, to help people start playing with the new MPLS support now that it's finally in the mainline kernel. Cheers Sam -- To

Re: [PATCH net] mpls: fix sending of local encapped packets

2015-12-07 Thread Sam Russell
ke use of dst->dst_ops->family in mpls_output to > determine the type of nexthop and thus protocol of the packet instead > of checking skb->protocol. > > Fixes: 61adedf3e3f1 ("route: move lwtunnel state to dst_entry") > Reported-by: Sam Russell <sam.h.russ...@gmail.c

MPLS outbound packets being dropped

2015-12-06 Thread Sam Russell
tl;dr mpls_output expects skb->protocol to be set to correct ethertype, but it isn't https://github.com/torvalds/linux/blob/ede2059dbaf9c6557a49d466c8c7778343b208ff/net/mpls/mpls_iptunnel.c#L64 Problem: I set up two interfaces pointed at each other, and added a static arp entry to minimise

Re: MPLS outbound packets being dropped

2015-12-06 Thread Sam Russell
ets to be sent from Linux in the meantime On 6 December 2015 at 23:20, Sam Russell <sam.h.russ...@gmail.com> wrote: > tl;dr mpls_output expects skb->protocol to be set to correct > ethertype, but it isn't > > https://github.com/torvalds/linux/blob/ede2059dbaf9c6557a49d466c