From owner-freebsd-questions Fri Feb 16 9: 1:23 2001 Delivered-To: freebsd-questions@freebsd.org Received: from msgbas1t.cos.agilent.com (msgbas1tx.cos.agilent.com [192.6.9.34]) by hub.freebsd.org (Postfix) with ESMTP id B0FC237B4EC for ; Fri, 16 Feb 2001 09:01:20 -0800 (PST) Received: from msgrel1.cos.agilent.com (msgrel1.cos.agilent.com [130.29.152.77]) by msgbas1t.cos.agilent.com (Postfix) with ESMTP id 22B674B2 for ; Fri, 16 Feb 2001 10:01:20 -0700 (MST) Received: from axcsbh4.cos.agilent.com (axcsbh4.cos.agilent.com [130.29.152.145]) by msgrel1.cos.agilent.com (Postfix) with SMTP id BA278203 for ; Fri, 16 Feb 2001 10:01:19 -0700 (MST) Received: from 130.29.152.145 by axcsbh4.cos.agilent.com (InterScan E-Mail VirusWall NT); Fri, 16 Feb 2001 10:01:19 -0700 (Mountain Standard Time) Received: by axcsbh4.cos.agilent.com with Internet Mail Service (5.5.2653.19) id ; Fri, 16 Feb 2001 10:01:19 -0700 Message-ID: <3BA28805BB22D41183A2009027AA5AFA02E59DC5@axand03.and.agilent.com> From: gail_browne@agilent.com To: freebsd-questions@FreeBSD.org Subject: Raw Sockets Question Date: Fri, 16 Feb 2001 10:01:17 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I have a FREEBSD question, hope this is the right audience for it, if not sorry.... I am using raw sockets in FREEBSD, a socket with the following properties, AF_INET, SOCK_RAW, OSPF_PROTO. I can read datagrams from this socket with no problem if I read it all at once. When I try to read it in two steps (in order to read the length then allocate the appropriate sized buffer), the second read always returns with the error code EAGAIN, resource temporarily unavailable. Do raw sockets not allow you to read a datagram in two passes, is there any way around this? Thank you for any insights, Gail Browne To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message