From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 27 23:44:50 2007 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01C3416A41A for ; Tue, 27 Nov 2007 23:44:50 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: from mail5out.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) by mx1.freebsd.org (Postfix) with ESMTP id A84CE13C467 for ; Tue, 27 Nov 2007 23:44:49 +0000 (UTC) (envelope-from edwin@mavetju.org) Received: by mail5out.barnet.com.au (Postfix, from userid 1001) id 732A42219D1A; Wed, 28 Nov 2007 10:44:48 +1100 (EST) X-Viruscan-Id: <474CABF000013879AF0144@BarNet> Received: from mail5auth.barnet.com.au (mail5.barnet.com.au [202.83.178.78]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mail5auth.barnet.com.au", Issuer "*.barnet.com.au" (verified OK)) by mail5.barnet.com.au (Postfix) with ESMTP id E353C21B13C0; Wed, 28 Nov 2007 10:44:47 +1100 (EST) Received: from k7.mavetju (k7.mavetju.org [10.251.1.18]) by mail5auth.barnet.com.au (Postfix) with ESMTP id 92C782218E32; Wed, 28 Nov 2007 10:44:47 +1100 (EST) Received: by k7.mavetju (Postfix, from userid 1001) id 59B7BCF; Wed, 28 Nov 2007 10:44:47 +1100 (EST) Date: Wed, 28 Nov 2007 10:44:47 +1100 From: Edwin Groothuis To: sourav das Message-ID: <20071127234447.GA57514@k7.mavetju> Mail-Followup-To: Edwin Groothuis , sourav das , freebsd-hackers@freebsd.org References: <360166.14926.qm@web45613.mail.sp1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <360166.14926.qm@web45613.mail.sp1.yahoo.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@freebsd.org Subject: Re: how to write a raw socket server using UDP X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 23:44:50 -0000 On Tue, Nov 27, 2007 at 01:31:22AM -0800, sourav das wrote: > i m a new comer. i wrote a raw socket client > using setsockopt (sock, IPPROTO_IP. IPHDRINCL, ....)using UDP. ihave followed > MS_Press network programming . it is showing 19 bytes sent successfully. when > trying to send more than 19 bytes using sendto(sock, ...) function , it is I use net/libdnet for all my IP/UDP/TCP/etc packet creation requirements. Edwin -- Edwin Groothuis | Personal website: http://www.mavetju.org edwin@mavetju.org | Weblog: http://www.mavetju.org/weblog/