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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: AI12-0218: What is the portable representation clause for processing IETF packets on little-endian machines? Date: Thu, 10 May 2018 17:30:39 -0700 Organization: A noiseless patient Spider Message-ID: <87603vyqxc.fsf@nightsong.com> References: <9af47760-e731-4cb5-a1a0-d63e31019ce5@googlegroups.com> <877eob1cc6.fsf@nightsong.com> <87po23yusb.fsf@nightsong.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="eb6deaf5ebc236909956e29d21385fdd"; logging-data="23118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18rMsJTh8Hs3s0XNnisR9sx" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cancel-Lock: sha1:5Y+swif+Z9+/eB2RnLgrizxpC9s= sha1:YjPtdMD6NhY4n96Pp66PvhvFN/w= Xref: reader02.eternal-september.org comp.lang.ada:52235 Date: 2018-05-10T17:30:39-07:00 List-Id: "Dan'l Miller" writes: > http://www.ada-auth.org/standards/aarm12_w_tc1/AA-Final.pdf > ยง13.5.1 Record Representation Clauses, page 571 Thanks, I've downloaded that manual though my likelihood of actually reading it (1332 pages!) isn't great. The section on representation clauses is very verbose and I'd have to check it microscopically to make sure, but I do get the impression that it's intended to specify actual memory layout. That is a poor way to handle network byte order for the reasons I gave.