From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,953a175e642a4006 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-01-18 00:50:05 PST Path: supernews.google.com!sn-xit-03!supernews.com!hermes.visi.com!news-out.visi.com!unlisys!news.snafu.de!newsfeed.easynews.net!easynews.net!news-FFM2.ecrc.net!news.iks-jena.de!lutz From: lutz@iks-jena.de (Lutz Donnerhacke) Newsgroups: comp.lang.ada Subject: Re: Memory representation of variable length record components Date: 18 Jan 2001 08:45:32 GMT Organization: IKS GmbH Jena Distribution: world Message-ID: References: <94583d$bks5t$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: taranis.iks-jena.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: slrn/0.9.5.7 (UNIX) Xref: supernews.google.com comp.lang.ada:4145 Date: 2001-01-18T08:45:32+00:00 List-Id: * Nick Roberts wrote: >Lutz, it seems to me that you can define a record type for the IP header >(the first 5 32-bit words) in the way you showed. I currently do this. (http://www.iks-jena.de/mitarb/lutz/ada/net/) >That would then leave you using something slightly less easy (e.g. >streams) to deal with the options and payload. Not perfect, but not too >hard! Am I missing the point? A little bit, yes. I get a memory image of a frame by the network interface card. In order to avoid to much copying I'd like to map the data structures similar to the C code used in actual OSs. But I'd like to have the advantages of Ada95 typing. That's all ;-)