From owner-freebsd-net@FreeBSD.ORG Mon Dec 26 16:44:08 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ED569106566C for ; Mon, 26 Dec 2011 16:44:08 +0000 (UTC) (envelope-from iwc2010005@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7AA588FC08 for ; Mon, 26 Dec 2011 16:44:08 +0000 (UTC) Received: by eekc50 with SMTP id c50so13329592eek.13 for ; Mon, 26 Dec 2011 08:44:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=SExwOVt6nulEK0ApR5kG95m8oBzwebF/PUfahtV+fR0=; b=PKzg9T3C2DiMI3KD0UCbca0KnfzeIUFzOjgKQ1ptmt7FEZS9k/lIysqqUpbQvOdVHE kxYaUlxmXqCdUqcUUFJXyn05RmkHJUK/Bi8ctW/dvH9aKPJCwKpYvY1xBrvR2kVxGly0 yYvgoxX1YZ7H00vq4//QSF6v6lVJFGNMiS5jI= MIME-Version: 1.0 Received: by 10.14.123.16 with SMTP id u16mr10108332eeh.30.1324917847380; Mon, 26 Dec 2011 08:44:07 -0800 (PST) Received: by 10.14.96.5 with HTTP; Mon, 26 Dec 2011 08:44:07 -0800 (PST) Date: Mon, 26 Dec 2011 22:14:07 +0530 Message-ID: From: Rajneesh Kumar To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Which function can allocate memory for a given structure type X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Dec 2011 16:44:09 -0000 Hello sir/madam, Please help! I am trying to modify the ARP module. I want to know which function can allocate memory for a given structure type and return me back the same? e.g. I want to have declared a pointer of sockaddr_dl{} type. Now I want to allocate memory to it. How can I do it? Thank You! -- Regards, Rajneesh