sctp: align MTU to a word
[cascardo/linux.git] / net / sctp / transport.c
index d517153..9b6b48c 100644 (file)
@@ -226,7 +226,7 @@ void sctp_transport_pmtu(struct sctp_transport *transport, struct sock *sk)
        }
 
        if (transport->dst) {
-               transport->pathmtu = dst_mtu(transport->dst);
+               transport->pathmtu = WORD_TRUNC(dst_mtu(transport->dst));
        } else
                transport->pathmtu = SCTP_DEFAULT_MAXSEGMENT;
 }
@@ -280,7 +280,7 @@ void sctp_transport_route(struct sctp_transport *transport,
                return;
        }
        if (transport->dst) {
-               transport->pathmtu = dst_mtu(transport->dst);
+               transport->pathmtu = WORD_TRUNC(dst_mtu(transport->dst));
 
                /* Initialize sk->sk_rcv_saddr, if the transport is the
                 * association's active path for getsockname().