Hi, [1] The memory management for packets to/from network mbufs for Unix( probably in net/mbufs.h) and sk_buffs for Linux(include/linux/skbuff.h). The later one is linear buffer and better implemented :). [2] Not needed for client side. Regards, Dharmender Rai --- paridhi bansal <paridhibansal@yahoo.com> wrote: > HI > Thanx Mani. That bit of code really helped.I got to > know that ip is stored in 2-5 indices of sa > _data. > Thanx to others too.Anyways, i ahve two more > queries: > How do i make sure that buffer that is receiving the > packets from an interface is not less than the pkt > size. In other words, i want to make the buffer size > dynamic. How is it possible??? > > Second question is :inorder to send packets using > sendtosocket call, do i need to bind the to an > interface??Or just creating a socket and then > specifying the destination address in sendto field > will do the job??? > > Paridhi > > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - Let the expert host your site > http://webhosting.yahoo.com > -- > Kernelnewbies: Help each other learn about the Linux > kernel. > Archive: > http://mail.nl.linux.org/kernelnewbies/ > FAQ: http://kernelnewbies.org/faq/ > __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/