From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <775b8d190712212041r55b03ccft8adf906291ccbabc@mail.gmail.com> Date: Sat, 22 Dec 2007 15:41:43 +1100 From: "Bruce Ellis" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] 8c padding problem In-Reply-To: <0d2806b422357c14fe6a163193958bf3@quanstro.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <775b8d190712212025v2ee285e9rcc6507000c6289b7@mail.gmail.com> <0d2806b422357c14fe6a163193958bf3@quanstro.net> Topicbox-Message-UUID: 2080f132-ead3-11e9-9d60-3106f5b1d025 easy. don't do it. marshall it or go insane. guess why the IP stack is so ambivalent. it's good. happy solstice recover. brucee On Dec 22, 2007 3:34 PM, erik quanstrom wrote: > > excuse me. that's what hjdicks was for .. and it's called pack. ok. > > > > abuse them or yourselfs for using such code. > > > > brucee > > what's the alternative? what i can think of is either > cutting & pasting the repeated elements or not using > unnamed structures at all. unfortunately, that results > in awful code like so > > h = (hdr*)buf; > p = (proto*)h->data; > e = (subprobo*)p->data; > > - erik >