You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
735 B

  1. diff --git a/datapath/vport-lisp.c b/datapath/vport-lisp.c
  2. index 0024eb4..ce1c3a8 100644
  3. --- a/datapath/vport-lisp.c
  4. +++ b/datapath/vport-lisp.c
  5. @@ -455,7 +455,11 @@ static int lisp_send(struct vport *vport, struct sk_buff *skb)
  6. ovs_skb_set_inner_protocol(skb, skb->protocol);
  7. df = tun_key->tun_flags & TUNNEL_DONT_FRAGMENT ? htons(IP_DF) : 0;
  8. +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)
  9. + sent_len = udp_tunnel_xmit_skb(rt, lisp_port->lisp_rcv_socket->sk, skb, saddr, tun_key->ipv4_dst,
  10. +#else
  11. sent_len = udp_tunnel_xmit_skb(rt, skb, saddr, tun_key->ipv4_dst,
  12. +#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0) */
  13. tun_key->ipv4_tos, tun_key->ipv4_ttl,
  14. df, src_port, dst_port, false, true);