]>
git.proxmox.com Git - mirror_ovs.git/blob - datapath/linux-2.6/compat-2.6/ip_output-openvswitch.c
1 #include <linux/version.h>
2 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
4 #include <linux/netfilter_ipv4.h>
7 int __ip_local_out(struct sk_buff
*skb
)
9 struct iphdr
*iph
= ip_hdr(skb
);
11 iph
->tot_len
= htons(skb
->len
);
13 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
14 return nf_hook(PF_INET
, NF_IP_LOCAL_OUT
, &skb
, NULL
, skb
->dst
->dev
,
17 return nf_hook(PF_INET
, NF_IP_LOCAL_OUT
, skb
, NULL
, skb
->dst
->dev
,
19 #endif /* kernel < 2.6.24 */
22 int ip_local_out(struct sk_buff
*skb
)
26 err
= __ip_local_out(skb
);
28 err
= dst_output(skb
);
33 #endif /* kernel < 2.6.25 */