On 6/19/15, 9:06 AM, Robert Shearman wrote:
+
+ /* Push the new labels */
+ hdr = mpls_hdr(skb);
+ bos = true;
+ for (i = tun_encap_info->labels - 1; i >= 0; i--) {
+ hdr[i] = mpls_entry_encode(tun_encap_info->label[i],
+ dec.ttl, 0, bos);
dec is never initialised in this function, so this will encode a
garbage ttl into the packet.
This should instead be deriving the ttl from the IP packet, as Eric
did in his original patch.
Thanks for the pointer Robert. I will fix it.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in