Welcome, Guest. Please login or register.

Author Topic: SANA-II files for development in SAS/C?  (Read 4457 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline mousehouseTopic starter

SANA-II files for development in SAS/C?
« on: September 07, 2010, 11:07:03 AM »
After installing SAS/C 6.58 from my still functional original floppies I went looking for the SANA-2 files needed for writing some C code... On my installed system it is not present (thus not included in SAS/C), I found the following using Google,

http://amigadev.elowar.com/read/ADCD_2.1/AmigaMail_Vol2_guide/node01DE.html

This seems to be an online version of the Amiga Developer CD 2.1. Can somebody comment if these are the latest header files available for SANA-II development?
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #1 on: September 08, 2010, 07:14:21 AM »
Thanks! On Aminet of all places ;-)

Does anybody know if the sources for sanamon or similar have ever been released? I'm looking for some understandable sample code...
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #2 on: September 08, 2010, 06:08:36 PM »
Thanks for those excellent resources.

One thing that puzzles me (because of a lack of understanding - I have never done anything with the networking- or kernel part of AmigaOS and as far as programming goes, I am only an average C programmer with dated skills) is the functionality provided by the SANA layer.

Am I correct in understanding that SANA provides an abstraction layer between the hardware (NICs or software interfaces) and possible software that use it?

If so, I need to be able to address SANA supplied functions and procedures to make the abstracted hardware do as I wish ;-) I've actually read the complete spec but the wisdom doesn't come to me yet...
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #3 on: September 08, 2010, 07:36:58 PM »
Quote from: Piru;578379
SANA2 drivers are used by the TCP/IP stack to send and receive packets. Very few other applications use SANA2 directly (Envoy comes to mind).

Yes, this would be the exact thing I'm trying to achieve.

Thus, in order to be able to address the networking hardware in my Amiga (it being anything supported by a SANA compliant driver) I need to talk "SANA"...

Is SANA included with Kickstart 3.1? In the documentation I only see references to header files, structs and functions. What library provides these functions? Or am I completely missing the mark here?
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #4 on: September 09, 2010, 08:16:51 AM »
Quote from: Piru;578408
What exactly are you tring to achieve?

No. SANA2 are device drivers located in DEVS:Networks. Kickstart is ROM only. Workbench 3.1 doesn't include any network drivers either. Typically these drivers were provided by the HW manufacturer. Later on drivers were provided for common PCMCIA network cards, for instance.

No library provides any functions.  The device drivers do provide the S2 commands.


I would like to write a software stack that interfaces with my SANA compliant network card (A2065, Ariadne2, USB thingie of Deneb).

If I understand correctly now, the device driver for the NIC "extends" the system with SANA compliant functions - correct? How would this work with multiple NICs present in the system? Does the device spec include some sort of unit numbering, where each unit corresponds to a unique set of SANA functions?

If SANA functions are provided by the network card device driver (eg. a2065.device or ariadne_ii.device) then the implementation of that device driver is according to SANA spec version - is there some way to check to which spec the driver conforms?
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #5 on: September 09, 2010, 10:00:15 AM »
Thanks for the excellent help on this, I'm only just starting to grasp the first basics of this. I do not want to use an IP stack, as I want to code a small traffic generator - thus building my own packets...

I'll try to find some understandable sample code on Aminet...
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #6 on: September 09, 2010, 10:25:25 AM »
Quote from: Piru;578447
Well, if you bypass the IP stack you're going to have to implement quite a bit of stuff, for instance ARP daemon. Unless of course if you're going to send the packets to MAC address rather than IP address...


First attempt will be something easy, just to get it up and running. For that I can use a static MAC-IP table... Just found 'sanautil' om Aminet... very nice little program, documented and readable sourcecode thanks to Timo Rossi.

I think I will try to compile/build that first and then go from there...
A3000T
 

Offline mousehouseTopic starter

Re: SANA-II files for development in SAS/C?
« Reply #7 on: September 09, 2010, 11:35:06 AM »
This means my little project will be a lot of fun! Of course, I could do it on any other platform - but I'll just love doing it on my A4000!

(Please remind me gently of this post when later on I'll post rants about illogical / badly written / buggy stuff that I'll be forced to use ;-))
A3000T