9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] OUdphdr
@ 2007-05-06 14:58 erik quanstrom
  2007-05-06 17:09 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: erik quanstrom @ 2007-05-06 14:58 UTC (permalink / raw)
  To: 9fans

the comment in this diff confuses me.  is OUdphdr now used
for ip6 as opposed to Udphdr?  i guess i don't quite understand
the emphasis on v6 since plan 9 represents all ip addresses as v6.

also, why are there two udp packet formats defined?

- erik

  enum 
/n/sources/plan9//sys/include/ip.h:74,87 - ip.h:74,87
  typedef struct OUdphdr OUdphdr;
  struct OUdphdr
  {
- 	uchar	raddr[IPaddrlen];	/* V6 remote address */
- 	uchar	laddr[IPaddrlen];	/* V6 local address */
- 	uchar	rport[2];		/* remote port */
- 	uchar	lport[2];		/* local port */
+ 	uchar	raddr[IPaddrlen];	/* remote address and port */
+ 	uchar	laddr[IPaddrlen];	/* local address and port */
+ 	uchar	rport[2];
+ 	uchar	lport[2];
  };



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

end of thread, other threads:[~2007-05-06 17:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-06 14:58 [9fans] OUdphdr erik quanstrom
2007-05-06 17:09 ` Russ Cox

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).