[37674] in Kerberos

home help back first fref pref prev next nref lref last post

Why sending the message length(4 Byte) in a separate message when

daemon@ATHENA.MIT.EDU (Sherry Yanmeng Tang (yanmtang))
Wed Aug 31 08:02:37 2016

From: "Sherry Yanmeng Tang (yanmtang)" <yanmtang@cisco.com>
To: "kerberos@mit.edu" <kerberos@mit.edu>
Date: Wed, 31 Aug 2016 02:40:38 +0000
Message-ID: <3F7F288D-BDAF-4A5C-A608-AAF14C4F959B@cisco.com>
Content-Language: en-US
MIME-Version: 1.0
Cc: "Tom Xu \(junfxu\)" <junfxu@cisco.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

Hi experts,

When kerberos are working on the tcp connection, it always send the message length of kerberos in one tcp message, and then send the following kerberos packet in another one or more messages.
I wonder why not send the message length of the kerberos together with the real message body. Eg, even the packet is only 287 Bytes(tcp payload length), we need to send the 4 Bytes first, then send 283 Bytes.

We saw this behavior at
src/lib/krb5/os/sendto_kdc.c:652

Thanks, guys!

BR
Sherry
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

home help back first fref pref prev next nref lref last post