Commit ba6d0564 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

netfilter: synproxy: fix sparse errors

Fix verbose sparse errors :

make C=2 CF=-D__CHECK_ENDIAN__ net/ipv4/netfilter/ipt_SYNPROXY.o
Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Acked-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 252a8fbe
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <net/netfilter/nf_conntrack_synproxy.h> #include <net/netfilter/nf_conntrack_synproxy.h>
static struct iphdr * static struct iphdr *
synproxy_build_ip(struct sk_buff *skb, u32 saddr, u32 daddr) synproxy_build_ip(struct sk_buff *skb, __be32 saddr, __be32 daddr)
{ {
struct iphdr *iph; struct iphdr *iph;
...@@ -220,7 +220,7 @@ synproxy_send_client_ack(const struct synproxy_net *snet, ...@@ -220,7 +220,7 @@ synproxy_send_client_ack(const struct synproxy_net *snet,
nth->ack_seq = th->ack_seq; nth->ack_seq = th->ack_seq;
tcp_flag_word(nth) = TCP_FLAG_ACK; tcp_flag_word(nth) = TCP_FLAG_ACK;
nth->doff = tcp_hdr_size / 4; nth->doff = tcp_hdr_size / 4;
nth->window = ntohs(htons(th->window) >> opts->wscale); nth->window = htons(ntohs(th->window) >> opts->wscale);
nth->check = 0; nth->check = 0;
nth->urg_ptr = 0; nth->urg_ptr = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment