Which function can allocate memory for a given structure type

Rajneesh Kumar iwc2010005 at gmail.com
Mon Dec 26 16:44:09 UTC 2011


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


More information about the freebsd-net mailing list