Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ aen(7A) — Amiga System V Release 4 Version 1.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

open(2)

close(2)

read(2)

write(2)

tcp(7)

upd(7)



AEN(7A)           MISC. REFERENCE MANUAL PAGES            AEN(7A)



NAME
     /dev/aen0 - Amiga Ethernet Device

SYNOPSIS
     #include <sys/amiga/aenuser.h>
     int fd;
     fd = open("/dev/aen0", mode);

DESCRIPTION
     /dev/aen is a special file which allows access to the ether-
     net device and associated incoming and outgoing packets.

IOCTLS
     AEN_CLEAR_STATUS
          Zeros out all status registers.

     AEN_GET_STATUS
          Get the following information:
          typedef struct
          {
              enum BOARD_STATE          board_state;
              long            packets_sent;
              long            packets_received;
              int                  allocbs_failed;
              int                  couldnt_put;
              int                  memory_error;
              int                  miss_error;
              int                  collision_error;
              int                  babble_error;
              int                  board_debug;
          } aen_status_t;

     AEN_GET_CONFIG
          Get the following information:
          typedef struct
          {
              long            board_base;     /* Board config location */
              int                  board_debug;
              unsigned char        paddress[6];    /* Physical address */
              unsigned char        laddress[8];    /* Logical address filter */
              int                  mode;           /* permiscuious mode? */
          } aen_config_t;

     AEN_SET_CONFIG
          Set the configuration information.

     AEN_NUMBER_OF_BOARDS
          return the number of boards currently configured.

FILES
     /dev/aen? - special file for accessing ethernet packets




Amiga Unix                Last change:                          1





AEN(7A)           MISC. REFERENCE MANUAL PAGES            AEN(7A)



SEE ALSO
     open(2), close(2), read(2), write(2), tcp(7), upd(7)

WARNING
     Although this interface provides some protection, it is pos-
     sible  to  crash the ethernet board if invalid configuration
     information  is   given   /dev/aen?   reflect   this;   only
     priveleged, trusted programs will write to this interface.















































Amiga Unix                Last change:                          2



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026