ike-sa: Add address family specific configuration of fragment size

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2024-08-07 14:19:41 +02:00
committed by Tobias Brunner
parent 9b9cf2001f
commit 84bd011752
3 changed files with 39 additions and 16 deletions
-4
View File
@@ -1999,10 +1999,6 @@ METHOD(message_t, fragment, status_t,
src = this->packet->get_source(this->packet);
dst = this->packet->get_destination(this->packet);
if (!frag_len)
{
frag_len = (src->get_family(src) == AF_INET) ? 576 : 1280;
}
/* frag_len is the complete IP datagram length, account for overhead (we
* assume no IP options/extension headers are used) */
REDUCE_FRAG_LEN(frag_len, (src->get_family(src) == AF_INET) ? 20 : 40);