Home | History | Annotate | Download | only in ssl

Lines Matching defs:mtu

137 // kMinMTU is the minimum acceptable MTU value.
140 // kDefaultMTU is the default MTU value to use if neither the user nor
604 // dtls1_update_mtu updates the current MTU from the BIO, ensuring it is above
610 if (ssl->d1->mtu < dtls1_min_mtu() &&
612 long mtu = BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_QUERY_MTU, 0, NULL);
613 if (mtu >= 0 && mtu <= (1 << 30) && (unsigned)mtu >= dtls1_min_mtu()) {
614 ssl->d1->mtu = (unsigned)mtu;
616 ssl->d1->mtu = kDefaultMTU;
617 BIO_ctrl(ssl->wbio.get(), BIO_CTRL_DGRAM_SET_MTU, ssl->d1->mtu, NULL);
621 // The MTU should be above the minimum now.
622 assert(ssl->d1->mtu >= dtls1_min_mtu());
763 // The MTU was too small to make any progress.
782 uint8_t *packet = (uint8_t *)OPENSSL_malloc(ssl->d1->mtu);
793 if (!seal_next_packet(ssl, packet, &packet_len, ssl->d1->mtu)) {