[SqNOS] We can now send ethernet packets!

Johnathon Meichtry johnathon-dev at meichtry.org
Sat Jul 15 19:12:12 UTC 2006


Gera,

I have tested the latest following your instructions and it works 
perfectly/wonderfully/flawlessly!!!!  It's truly awesome to see that target 
ARP resolution appear in the Transcript window with the correct MAC address. 
I even demo'd it to my wife and kids yet for some reason they didn't 
appreciate your monumental achievement but I think its way cool all the 
same!!!!!!

:-)


----- Original Message ----- 
From: "Gerardo Richarte" <gera at corest.com>
To: <squeaknos at lists.squeakfoundation.org>
Sent: Saturday, July 15, 2006 6:14 AM
Subject: [SqNOS] We can now send ethernet packets!


> What we have today is a very simple (and pour) implementation of the
> LanceNICDevice, however, I think it's a decent starting point. With what
> I just send to Squeaksource we can now do things like:
>
> "Initializae Networking"
> LancePCIDevice installOn: Computer current.
>
> "easy accesors"
> netdev := Computer current defaultNetworkInterface.
> netdev enableInterrupts.
> tring := netdev initializationBlock transmitRing.
>
> "Build EthernetPacket"
> eth := EthernetPacket new: 1000.
> eth source: ((ByteArray new: 6) copyFrom: netdev macAddress).
> eth destination: ((ByteArray new: 6) atAllPut: 255).
>
> "Build ARPPacket (ARP Request)"
> arp := ARPPacket on: eth.
> eth type: arp class etherType.
>
> arp opcodeName: #Request.
> arp senderHardwareAddress: eth source.
> arp senderProtocolAddress: (InternetAddress fromString: 
> '192.168.247.128').
> arp targetProtocolAddress: (InternetAddress fromString: '192.168.247.1').
>
> "send"
> tring message: eth asString.
>
>    This will install and initialize the device, then it will generate a
> proper ARP request, send it... and get a proper response from a real box 
> :-)
>
>    this is so exciting!!!
>    I'm happy, and I'm going to sleep now :-)
>    stay tunned, I think we'll have a new release on Sunday, and it'll
> hopefully be a really good one :-)
>
>    gera
> _______________________________________________
> SqueakNOS mailing list
> SqueakNOS at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/squeaknos
> 



More information about the SqueakNOS mailing list