[37676] in Kerberos

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

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

daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Aug 31 13:38:09 2016

To: "Sherry Yanmeng Tang (yanmtang)" <yanmtang@cisco.com>,
        "kerberos@mit.edu" <kerberos@mit.edu>
From: Greg Hudson <ghudson@mit.edu>
Message-ID: <e4ff3a8b-b4c8-c3c0-2ff5-1f72186462b9@mit.edu>
Date: Wed, 31 Aug 2016 13:37:48 -0400
MIME-Version: 1.0
In-Reply-To: <3F7F288D-BDAF-4A5C-A608-AAF14C4F959B@cisco.com>
Cc: "Tom Xu \(junfxu\)" <junfxu@cisco.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: kerberos-bounces@mit.edu

On 08/30/2016 10:40 PM, Sherry Yanmeng Tang (yanmtang) wrote:
> 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 do send the length and message together, using
writev()(sendto_kdc.c:1099).  The code you pointed to at line 652 is
just setting up the iovs for a later call to writev().
________________________________________________
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