buffers and sendto()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
sendto call, do i need to bind the socket 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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux