Manual pages › Amiga-specific devices (7A)
aen(7A)
Amiga Ethernet Device
From the original Amiga UNIX 2.1 manual. Some things it mentions may not be in this release.
Also by this name: aen(1A), Amiga-specific commands
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 ethernet 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
SEE ALSO
WARNING
Although this interface provides some protection, it is possible to crash the ethernet board if invalid configuration information is given. The permissions of /dev/aen? reflect this; only priveleged, trusted programs will write to this interface.