Re: Problem with a UDP server implements

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

 



Hi!

On Die, 2011-10-18 at 22:48 +0800, tao jiang wrote:
[...]
> Thanks for your guide.
> But there is still a question
> if recvfrom() used, how to figure out the client's dest ip for reply ?
> i.e. on which ip the server receieved the request
> when construct the IP header, i don't know which saddr to fill in

Ooops, forgot that we need the destination address of the received
packet too to construct the answer for it.
Then yes, it seems that you would need the raw packet on the receiving
side too.

[ Full quote deelted ]

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd@xxxxxxxxxxxxxxxxxxx
                     LUGA : http://www.luga.at


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


[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