On 09/22/15 at 11:39pm, Eric W. Biederman wrote: > What distinguishes a skb received from a tunnel as opposed to a skb > received on from a network device is that a skb recevied on a tunnel > has a socket. > > I could be easily missing something but couldn't you look at skb->sk > on the input path and if a socket is present use the socket to compute > the outgoing route? > > I expect it would just need to be something like: > dst = sk_dst_check(sk, 0);
If you are talking about the UDP socket then that socket would cache the underlay route corresponding to the outer header. Jiri is looking for the outer header route to derive tunnel parameters from. -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html