From owner-freebsd-net Fri Jan 24 0:54: 7 2003 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA78837B401 for ; Fri, 24 Jan 2003 00:54:06 -0800 (PST) Received: from smtp.netli.com (ip2-pal-focal.netli.com [66.243.52.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A872E43F18 for ; Fri, 24 Jan 2003 00:54:05 -0800 (PST) (envelope-from vlm@netli.com) Received: (qmail 30045 invoked by uid 84); 24 Jan 2003 08:53:56 -0000 Received: from vlm@netli.com by l3-1 with qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.116836 secs); 24 Jan 2003 08:53:56 -0000 Received: from unknown (HELO netli.com) (192.168.238.32) by mx01-pal-lan.netli.lan with SMTP; 24 Jan 2003 08:53:56 -0000 Message-ID: <3E30FF0A.9000504@netli.com> Date: Fri, 24 Jan 2003 00:53:30 -0800 From: Lev Walkin Organization: Netli, Inc. User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021117 X-Accept-Language: en-us, en MIME-Version: 1.0 To: soheil soheil Cc: freebsd-net@freebsd.org Subject: Re: The socket sendto INVALID ARGUMENT ERROR returned References: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org soheil soheil wrote: > Dear all > I wrote a code to send a tcp packet on a raw socket, > but the sendto function return some errors on argument > what can make this error occur ??? > thanx > the code : > char datagram[4096]; > ..... > socket(s, SOCK_RAW, IPPROTO_TCP); s = socket(AF_INET, ........); -- Lev Walkin vlm@netli.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message