[SqNOS] We can now send ethernet packets!
Johnathon Meichtry
johnathon-dev at meichtry.org
Sat Jul 15 07:35:41 UTC 2006
Gera,
Fantastic and well done. Your right, this is very very exciting!!! I can't
wait to get it the latest installed and give it a go, if only SqueakSource
wasn't down right now :-( but fingers' crossed it'll be working again later
today.
Regards,
Johnathon
----- 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