Skip to content

Commit

Permalink
ipv6: remove csummode in ip6_append_data()
Browse files Browse the repository at this point in the history
csummode variable is always CHECKSUM_NONE in ip6_append_data()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed May 18, 2012
1 parent 6f53261 commit d7f7c0a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/ipv6/ip6_output.c
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,6 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
int copy;
int err;
int offset = 0;
int csummode = CHECKSUM_NONE;
__u8 tx_flags = 0;

if (flags&MSG_PROBE)
Expand Down Expand Up @@ -1411,7 +1410,7 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
/*
* Fill in the control structures
*/
skb->ip_summed = csummode;
skb->ip_summed = CHECKSUM_NONE;
skb->csum = 0;
/* reserve for fragmentation and ipsec header */
skb_reserve(skb, hh_len + sizeof(struct frag_hdr) +
Expand Down Expand Up @@ -1454,7 +1453,6 @@ int ip6_append_data(struct sock *sk, int getfrag(void *from, char *to,
transhdrlen = 0;
exthdrlen = 0;
dst_exthdrlen = 0;
csummode = CHECKSUM_NONE;

/*
* Put the packet on the pending queue
Expand Down

0 comments on commit d7f7c0a

Please sign in to comment.