On Thu, Nov 15, 2007 at 09:29:50AM -0800, Bill Sommerfeld wrote:
> On Thu, 2007-11-15 at 01:14 -0800, Adam Leventhal wrote:
> > The conninfo_t structure is already used by the iSCSI target provider
> > (iscsi),
> > and is intended for use by all provider which are providing some higher
> > level protocol (e.g. iscsi, nfs, http, ftp).
> >
> > typedef struct conninfo {
> > string ci_local; /* local host address */
> > string ci_remote; /* remote host address */
> > string ci_protocol; /* protocol (ipv4, ipv6, etc) */
> > } conninfo_t;
>
> For structures like this which exist only in "D" code and not in C, is
> it feasible to add additional fields later?
Yes. Typically we only use such structs in expressions involving
translators (i.e. each member of the struct is translated on-the-fly), in which
case one can not only add members but also re-arrange the ordering as well.
-Mike
--
Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/
_______________________________________________
dtrace-discuss mailing list
[email protected]