Path: csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: D Finnigan Newsgroups: comp.sys.apple2.programmer Subject: Re: Uthernet receive error: bytes swapped Date: Sun, 1 Mar 2015 00:34:36 +0000 (UTC) Organization: Mac GUI Lines: 34 Message-ID: References: <54409bfb-8a90-48be-9276-76339e6ba005@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sun, 1 Mar 2015 00:34:36 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="ac9e0e4d7dd3957fb97803ee6801bab8"; logging-data="7987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+I7lrifa1zwkx9w8yTqwaJ" User-Agent: Mac GUI Usenet In-Reply-To: <54409bfb-8a90-48be-9276-76339e6ba005@googlegroups.com> Cancel-Lock: sha1:Dqw/3KnUXiLqyhghpRbihbGOF/k= Xref: csiph.com comp.sys.apple2.programmer:1539 a2retrosystems wrote: > > Hi David, do you see the same behavior in the Applewin emulator? No, because I don't use that emulator. > Also is it > random or repeatable in any fashion? I've been having a problem receiving packets for the past week or two, but it's only this morning that I looked closer at the problem. I think there's two problems: one I think is with my checksum routine, so we'll forget about it for now because I can probably solve that myself. The second is the subject of this thread. Anyway, I need to gather more data, but it's definitely happened more than once. I don't know how to repeat it, so for now I'll classify it as random. The location where the double byte occurs isn't always the same, but so far it's never been in the Ethernet MAC header, it's always been around the beginning few bytes of the IP header, right around the flags/fragment bytes. It's almost like someone is "missing a beat" because you know you have to read the high byte from the one location, then the low byte from the other location and so on. It looks like somehow this pattern is getting messed up, so the bytes start coming out in the wrong order. -- ]DF$ Apple II Book: http://macgui.com/newa2guide/ Usenet: http://macgui.com/usenet/ <-- get posts by email! Apple II Web & Blog hosting: http://a2hq.com/