Re: MPLS outbound packets being dropped

2015-12-07 Thread Robert Shearman
On 06/12/15 10:20, Sam Russell wrote: 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 ad

Re: MPLS outbound packets being dropped

2015-12-06 Thread Sam Russell
I can confirm that MPLS packets are sent correctly if the conditional at mpls_iptunnel.c:57-65 is removed and just replaced with lines 58-59: ttl = ip_hdr(skb)->ttl; rt = (struct rtable *)dst; Obviously this isn't sufficient for IPv6, but is a workaround that enables MPLS-encapsulated packets to

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 compl