Skip to contentSkip to conversation

tcp_recvmsg()

DISCUSSION an7 1 participant 1 message Oct 24, 2003

Subsystems (2)
lore
Share & tools
lore

an7

author
#0 lore raw

Hi here,

I need a confirmation, please :

tcp_recvmsg() is called to retrieve messages from the socket receive queue, isn't it ? It is used when userland applications use the recv() call,from BSD socket API

as i said in a post before, i didn't understand a syn check that was in this function.

Dave Miller told me the check was just here if one day, the stack will allow data reception with a syn/ack segment, with data attached (it is technically possible).

When the established state is reached, the syn/ack+data segment will be on the socket receive queue, and so, we have to account for the syn sequence number, as this sequence number doesn't correspond to any real data byte.

So i need to effectively confirm that the tcp_recvmsg() retrieves messages from the socket receive queue, and which function is responsible for putting packets in queue (i think it is tcp_data_queue ?)

Thanks

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com