|
@@ -1921,6 +1921,8 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev,
|
|
memset(&fl4, 0, sizeof(fl4));
|
|
memset(&fl4, 0, sizeof(fl4));
|
|
fl4.flowi4_oif = rdst->remote_ifindex;
|
|
fl4.flowi4_oif = rdst->remote_ifindex;
|
|
fl4.flowi4_tos = RT_TOS(tos);
|
|
fl4.flowi4_tos = RT_TOS(tos);
|
|
|
|
+ fl4.flowi4_mark = skb->mark;
|
|
|
|
+ fl4.flowi4_proto = IPPROTO_UDP;
|
|
fl4.daddr = dst->sin.sin_addr.s_addr;
|
|
fl4.daddr = dst->sin.sin_addr.s_addr;
|
|
fl4.saddr = vxlan->saddr.sin.sin_addr.s_addr;
|
|
fl4.saddr = vxlan->saddr.sin.sin_addr.s_addr;
|
|
|
|
|
|
@@ -1981,6 +1983,7 @@ static void vxlan_xmit_one(struct sk_buff *skb, struct net_device *dev,
|
|
fl6.flowi6_oif = rdst->remote_ifindex;
|
|
fl6.flowi6_oif = rdst->remote_ifindex;
|
|
fl6.daddr = dst->sin6.sin6_addr;
|
|
fl6.daddr = dst->sin6.sin6_addr;
|
|
fl6.saddr = vxlan->saddr.sin6.sin6_addr;
|
|
fl6.saddr = vxlan->saddr.sin6.sin6_addr;
|
|
|
|
+ fl6.flowi6_mark = skb->mark;
|
|
fl6.flowi6_proto = IPPROTO_UDP;
|
|
fl6.flowi6_proto = IPPROTO_UDP;
|
|
|
|
|
|
if (ipv6_stub->ipv6_dst_lookup(sk, &ndst, &fl6)) {
|
|
if (ipv6_stub->ipv6_dst_lookup(sk, &ndst, &fl6)) {
|