Browse Source

select IPv4 ID in kernel module

Change-Id: I254c76d4455c90de44e551b02feba0efcacd5802
changes/21/19321/2
Richard Fuchs 8 years ago
parent
commit
1184c92d23
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      kernel-module/xt_RTPENGINE.c

+ 6
- 0
kernel-module/xt_RTPENGINE.c View File

@ -3297,10 +3297,16 @@ static int send_proxy_packet4(struct sk_buff *skb, struct re_address *src, struc
skb->ip_summed = CHECKSUM_NONE;
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,10,0)
ip_select_ident(par->state->net, skb, NULL);
ip_send_check(ih);
ip_local_out(par->state->net, skb->sk, skb);
#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,4,0)
ip_select_ident(par->net, skb, NULL);
ip_send_check(ih);
ip_local_out(par->net, skb->sk, skb);
#else
ip_select_ident(skb, NULL);
ip_send_check(ih);
ip_local_out(skb);
#endif


Loading…
Cancel
Save