Skip to content

Commit

Permalink
sctp: set the skb->ip_summed correctly when sending over loopback.
Browse files Browse the repository at this point in the history
Loopback used to clobber the ip_summed filed which sctp then used
to figure out if it needed to do checksumming or not.  Now that
loopback doesn't do that any more, sctp needs to set the ip_summed
field correctly.

Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Vlad Yasevich authored and David S. Miller committed Sep 18, 2008
1 parent 9382177 commit a3028b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sctp/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,8 @@ int sctp_packet_transmit(struct sctp_packet *packet)
if (!(dst->dev->features & NETIF_F_NO_CSUM)) {
crc32 = sctp_start_cksum((__u8 *)sh, cksum_buf_len);
crc32 = sctp_end_cksum(crc32);
}
} else
nskb->ip_summed = CHECKSUM_UNNECESSARY;

/* 3) Put the resultant value into the checksum field in the
* common header, and leave the rest of the bits unchanged.
Expand Down

0 comments on commit a3028b8

Please sign in to comment.