9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans]  Re:  [9ans] Question about network protocols
@ 2009-10-28 23:04 ty ty
  2009-10-29 17:30 ` [9fans] " matt
  0 siblings, 1 reply; 4+ messages in thread
From: ty ty @ 2009-10-28 23:04 UTC (permalink / raw)
  To: 9fans

Thanks!
it becomes more clear for me.  But i still don't undrstand some things.

1) as i understand, protocol initialization occurs in ipgetfs, which not used anywhere, except
ipattach function in same file (devip.c). ipattach, in turn, member of ipdevtab struct and latter
isn't used anywhere too (i haven't found any with grep).
It seems me strange, but at this point i assume, theese actions take place at system start up (this
not true, i think).

2) it remains unclear for me where the connection establish, and where ilconnect or tcpconnect take
place. as i think, they should be called for open connections, working on on of these protocols. i
dont find anything relevant and don't understand, how system choose protocol for some work.

3) with your reference on ipgetfs i'm googled presentation [1], a little explaining to me the
mechanism of choice.
name = netmkaddr("133.137.166.17", "udp", "echo");
netmkaddr takes the text name of protocol and, as i saw in sources, and passes it to fprint, which
call vfprint, which, in turn, call dofmt. As i understand, dofmt is some internal machinery for
parse format string and decide to use the appropriate protocol. But I did not see where a
connection is opened or something like that.
Is my assumption about fprint and dofmt true?
where i can read about internal system processes, which managed network connections?
and where, nevertheless, a connection is opened? :)
Excuse my english and, maybe incomprehensible exposition of ideas, it's deep night in Moscow now :)

Thanks.

[1] -- http://www.tip9ug.jp/meetings/udp-12Nov05/plan9udp.ppt



^ permalink raw reply	[flat|nested] 4+ messages in thread
[parent not found: <<E1N3FMj-00026n-00.ash_666-bk-ru@f266.mail.ru>]
* [9fans] [9ans] Question about network protocols
@ 2009-10-28 20:43 ty ty
  0 siblings, 0 replies; 4+ messages in thread
From: ty ty @ 2009-10-28 20:43 UTC (permalink / raw)
  To: 9fans

Hi, folks.
I'm trying to understand how system interact with network protocols, such as tcp, udp and other.
i'm look through sources in /sys/src/9/ip/ and saw follow:
 - protocol header struct
 - protocl init function
and so on.
But i'm grep in plan9.iso and don't find any files, when Tcp4hdr or tcpinit used. How it could be
used?
Where i can read about it or, better, where i can see at code, used such functions.

Sorry for english and maybe foolish question.
Thanks.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-10-29 17:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <<E1N3HZO-0006Fj-00.ash_666-bk-ru@f13.mail.ru>
2009-10-28 23:18 ` [9fans] [9ans] Question about network protocols erik quanstrom
2009-10-28 23:04 [9fans] " ty ty
2009-10-29 17:30 ` [9fans] " matt
     [not found] <<E1N3FMj-00026n-00.ash_666-bk-ru@f266.mail.ru>
2009-10-28 20:50 ` erik quanstrom
  -- strict thread matches above, loose matches on Subject: below --
2009-10-28 20:43 ty ty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).