[SqNOS] Networking is comming to a theater close to you!

Johnathon Meichtry johnathon-dev at meichtry.org
Wed Jul 12 17:12:21 UTC 2006


Gera,

I forgot to answer your question before.  I was pinging 192.170.247.1 so 
it's kind of odd that the first 6 bytes were showing up as being destined 
for MAC 255:255:255:255:255:255 (decimal).  I actually rebooted and 
re-init'd the Lance Device three times to make sure I was getting consistent 
results.  So anyway at this point I don't know why the destination MAC would 
be FF:FF:FF:FF:FF:FF but them I suppose that if the ARP table didn't have 
the MAC matched against an IP (i.e. what I was pinging) it would need to 
send it off to an unknown destination hoping that someone would respond or 
the gateway would route it on.

What's also interesting is that for the packet type i.e. bytes 13/14 they 
are two distinct bytes as the decimal equiv. of 0x800 is of course 2048 yet 
in the buffer we see 08 in byte 13 and 00 in byte 14 with both values being 
in decimal therefor a combined decimal value of only 800 .  This makes me 
think within the Ethernet protocol spec there is a primary type (i.e. in our 
case 08 hex/dec) and a sub-type (in our case 00 hex/dec).  It doesn't really 
matter to us as with TCP/IP all we care is that byte 13 = 08 and 14 = 00.

BTW, I now have a fully-loaded image with Whisker Browser, Shout, 
eCompletion, Services and a few other goodies all working well under 
SqueakNOS.  Although I shouldn't really be playing around, rather I should 
be looking into Intel CPU Speedstep control/ACPI as my laptop CPU sits at 
100% utilisation whenever the VM is running.

Johnathon



----- Original Message ----- 
From: "Gerardo Richarte" <gera at corest.com>
Cc: <squeaknos at lists.squeakfoundation.org>
Sent: Wednesday, July 12, 2006 3:29 PM
Subject: Re: [SqNOS] Networking is comming to a theater close to you!


>
>    Hey! I'm really happy you finally compiled it!
>
>    For everybody else trying to compile: there are a few things missing
> in the C sources. The main thing is the FFI support files, which I took
> from the unix branch of Squeak, with no modifications (as far as I
> remember). Then, some other mods in nos/* (not really sure though), a
> small change in the Makefile, and of course, including the FFIPlugin as
> internal plugin with VMMaker.
>    I will make a new .iso release next week, but if anybody wants to
> compile this intermediate version, just send me emails, and I'll send
> everything to the list.
>> Looks like using "self buffer unsignedByteAt:" is the way to go for a
>> quick snoop of the buffer.  In the following list bytes 7 to 12
>> perfectly match the source MAC address.  I used something like "*1 to:
>> 256 do: [index | Transcript show: (self buffer unsignedByteAt:index) ;
>> cr.]."*
>    HEh! this is supper cool. The buffer (there will be a #message
> method to access it), contains a raw ethernet packet. In this case, I
> was expecting an ARP request, but this is an IP packet.
> Ethernet packet has 6+6+2 bytes. The first 6 are the destination MAC
> address (broadcast in this case, as it's an ARP request), next 6 for
> source MAC address, and 2 for the type (in this case 0x800, which is
> IP). Take a look at this funny article we wrote a while back:
> http://community.corest.com/~luciano/text/quake/... did you ping a
> broadcast address? (.255)
>
>    IP's specification is here: http://www.ietf.org/rfc/rfc0791.txt
>    Ethernet packets are described here:
> http://en.wikipedia.org/wiki/Address_Resolution_Protocol#Packet_structure
>    ARP:
> http://en.wikipedia.org/wiki/Address_Resolution_Protocol#Packet_structure
>
>    Luciano continued working on the Packets since we wrote the article
> (and before that), and he has a more complete implementation of the
> TCP/IP protocol suite (more complete is not "complte", it's just more
> complete than then :-) He's kind of working on a version of it that we
> can incorporate in SqueakNOS. At the time he did it using Craig's Flow
> and Conduits, which are not yet part of the standard Squeak. We know
> that Asparagi is interested in working in Flow again, so we may have
> good news from that side too!
>
>    gera
>
> _______________________________________________
> SqueakNOS mailing list
> SqueakNOS at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/squeaknos
> 



More information about the SqueakNOS mailing list