]> Git Repo - linux.git/blobdiff - net/sctp/output.c
net: sctp: trivial: update bug report in header comment
[linux.git] / net / sctp / output.c
index a46d1eb41762801e2d95011bf3af8327c57ebac2..e35b84cc1d9f517c9a01b9d0732a4ef817327b41 100644 (file)
  *
  * Please send any bug reports or fixes you make to the
  * email address(es):
- *    lksctp developers <[email protected]>
- *
- * Or submit a bug report through the following website:
- *    http://www.sf.net/projects/lksctp
+ *    lksctp developers <[email protected]>
  *
  * Written or modified by:
  *    La Monte H.P. Yarroll <[email protected]>
  *    Karl Knutson          <[email protected]>
  *    Jon Grimm             <[email protected]>
  *    Sridhar Samudrala     <[email protected]>
- *
- * Any bugs reported given to us we will try to fix... any fixes shared will
- * be incorporated into the next SCTP release.
  */
 
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
@@ -395,6 +389,7 @@ int sctp_packet_transmit(struct sctp_packet *packet)
        int padding;            /* How much padding do we need?  */
        __u8 has_data = 0;
        struct dst_entry *dst = tp->dst;
+       struct net *net;
        unsigned char *auth = NULL;     /* pointer to auth in skb data */
        __u32 cksum_buf_len = sizeof(struct sctphdr);
 
@@ -541,7 +536,9 @@ int sctp_packet_transmit(struct sctp_packet *packet)
         * Note: Adler-32 is no longer applicable, as has been replaced
         * by CRC32-C as described in <draft-ietf-tsvwg-sctpcsum-02.txt>.
         */
-       if (!sctp_checksum_disable) {
+       net = dev_net(dst->dev);
+
+       if (!net->sctp.checksum_disable) {
                if (!(dst->dev->features & NETIF_F_SCTP_CSUM)) {
                        __u32 crc32 = sctp_start_cksum((__u8 *)sh, cksum_buf_len);
 
This page took 0.032073 seconds and 4 git commands to generate.