Date: Mon, 26 Dec 2011 22:14:07 +0530 From: Rajneesh Kumar <iwc2010005@gmail.com> To: freebsd-net@freebsd.org Subject: Which function can allocate memory for a given structure type Message-ID: <CA%2BDF=vzeKK4CJYFgikfV4jAFpHf6iZ2fxcf5bPZMSM4Gd67G8Q@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BDF=vzeKK4CJYFgikfV4jAFpHf6iZ2fxcf5bPZMSM4Gd67G8Q>