diff options
author | Matt Caswell <matt@openssl.org> | 2014-12-01 23:49:47 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2014-12-03 09:41:16 +0000 |
commit | bbfdd1f0c9bc06d35544d2c443112c1ec790c55a (patch) | |
tree | c98e6ed1ebc10f236ee0cc6989cfdafb266343ac /ssl | |
parent | 8724f9f9cfd2925909dc836002673964c7ce67a4 (diff) |
There are a number of instances throughout the code where the constant 28 is
used with no explanation. Some of this was introduced as part of RT#1929. The
value 28 is the length of the IP header (20 bytes) plus the UDP header (8
bytes). However use of this constant is incorrect because there may be
instances where a different value is needed, e.g. an IPv4 header is 20 bytes
but an IPv6 header is 40. Similarly you may not be using UDP (e.g. SCTP).
This commit introduces a new BIO_CTRL that provides the value to be used for
this mtu "overhead". It will be used by subsequent commits.
Reviewed-by: Tim Hudson <tjh@openssl.org>
(cherry picked from commit 0d3ae34df573f477b6b1aaf614d52dcdfcff5fce)
Conflicts:
crypto/bio/bio.h
crypto/bio/bss_dgram.c
Diffstat (limited to 'ssl')
0 files changed, 0 insertions, 0 deletions