Re: Linux recvfrom() broken (was: DNS problems) (fwd)

Dax Kelson (dkelson@inconnect.com)
Wed, 19 Aug 1998 19:15:55 -0600 (MDT)


---------- Forwarded message ----------
Date: Wed, 19 Aug 1998 11:25:52 -0700
From: Paul A Vixie <paul@vix.com>
To: Dax Kelson <dkelson@inconnect.com>
Cc: halley@vix.com,
Mark.Andrews@dms.csiro.au
Subject: Re: Linux recvfrom() broken (was: DNS problems) (fwd)

> You can detect overflow anyway - Use recvmsg and MSG_TRUNC is set on
> a BSD style box (not all systems support that tho). There is also
> TIOCINQ ioctl to see the size pending.

giving a 513 byte buffer and then blowing chunks if the 513th byte is used
is another, and more portable, way to know that truncation has occurred.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html