AEN(7A) — MISC REFERENCE MANUAL PAGES
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_STATEboard_state;
longpackets_sent;
longpackets_received;
intallocbs_failed;
intcouldnt_put;
intmemory_error;
intmiss_error;
intcollision_error;
intbabble_error;
intboard_debug;
} aen_status_t;
AEN_GET_CONFIG
Get the following information:
typedef struct
{
longboard_base; /∗ Board config location ∗/
intboard_debug;
unsigned charpaddress[6]; /∗ Physical address ∗/
unsigned charladdress[8]; /∗ Logical address filter ∗/
intmode; /∗ 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
open(2), close(2), read(2), write(2), tcp(7), udp(7)
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.
Amiga Unix — Last change: