Unix Technical Forum

question on inpcb structures

This is a discussion on question on inpcb structures within the lucky.openbsd.tech forums, part of the OpenBSD category; --> Hi all, I am trying to understand the flow of packets up the TCP/IP stack and for now would ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > lucky.openbsd.tech

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-22-2008, 11:46 AM
Bijoy Thomas
 
Posts: n/a
Default question on inpcb structures

Hi all,

I am trying to understand the flow of packets up the TCP/IP stack
and
for now would like to get a basic understanding. From what I
understand,
the listen() syscall is going to put the caller to sleep and when it
returns, the inpcb structure for that socket will have its inp_faddr
and
inp_fport fields filled in so that when accept() is called later,
these
fields will be copied into the mbuf that is sent back to the caller.
What I am trying to find is where in the code is the inp_faddr and
inp_fport fields are filled with the remote address and remote port.
I'm
guessing these fields are going to be filled in from the IP header
once
the three way handshake is over. But there is just so much code in
tcp_input() that I am having trouble locating what I need. Any help
would be greatly appreciated.

Thanks,
Bijoy Thomas.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:03 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com