Home | History | Annotate | Download | only in ssl

Lines Matching refs:mtu

137 /* kMinMTU is the minimum acceptable MTU value. */
140 /* kDefaultMTU is the default MTU value to use if neither the user nor
252 if (ssl->d1->mtu < dtls1_min_mtu() &&
254 long mtu = BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_QUERY_MTU, 0, NULL);
255 if (mtu >= 0 && mtu <= (1 << 30) && (unsigned)mtu >= dtls1_min_mtu()) {
256 ssl->d1->mtu = (unsigned)mtu;
258 ssl->d1->mtu = kDefaultMTU;
259 BIO_ctrl(SSL_get_wbio(ssl), BIO_CTRL_DGRAM_SET_MTU, ssl->d1->mtu, NULL);
263 /* The MTU should be above the minimum now. */
264 assert(ssl->d1->mtu >= dtls1_min_mtu());
268 * written without exceeding the MTU. It accounts for any buffering installed on
271 size_t ret = ssl->d1->mtu;
328 uint8_t *buf = OPENSSL_malloc(ssl->d1->mtu);
357 /* To make forward progress, the MTU must, at minimum, fit the handshake
372 if (!CBB_init_fixed(&cbb, buf, ssl->d1->mtu) ||
855 /* don't actually do the writing, wait till the MTU has been retrieved */