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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ded6ba3fc5b87b66 X-Google-Attributes: gid103376,public From: Gautier Subject: Re: First time Ada has let me down Date: 2000/10/25 Message-ID: <39F6C9EB.F0F0C8DF@maths.unine.ch>#1/1 X-Deja-AN: 685626833 Content-Transfer-Encoding: 7bit References: <8FD7DEBEEsynoptikdamudderfuck@news> <8t60eo$m0m$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 25 Oct 2000 13:54:19 +0100, mac13-32.unine.ch Organization: Maths - Uni =?iso-8859-1?Q?Neuch=E2tel?= MIME-Version: 1.0 Newsgroups: comp.lang.ada Date: 2000-10-25T00:00:00+00:00 List-Id: > the IP header length occupies the 4 LSB. Assuming p pointing to the > byte offset, > the length is just len = (*p)&0xf; > the TCP header length occupies the 4 MSB. the length in this case > is then ((*p)&0xf0)>>4; > Things just have to be easy in C, don't they. No wonder 99.99% of the > IP stacks in the world are in C and not Ada. Do you really think one can't write "x mod 16" or "x / 16" in Ada, Mr wv12 ? In fact things just have to be easy in C, and they don't - see the mess of #includes escaped from the 1960s computing world... ______________________________________________________ Gautier -- http://members.nbci.com/gdemont/gsoft.htm