From f84493dde64ebe17dec9be410fe4e288626482e1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 13 Oct 1998 13:55:51 +0000 Subject: Changed to clarify how to set the network address. --- networkconfig.h | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'networkconfig.h') diff --git a/networkconfig.h b/networkconfig.h index 61425ae..cba278c 100644 --- a/networkconfig.h +++ b/networkconfig.h @@ -16,6 +16,16 @@ #include +/* + * Define RTEMS_SET_ETHERNET_ADDRESS if you want to specify the + * Ethernet address here. If RTEMS_SET_ETHERNET_ADDRESS is not + * defined the driver will choose an address. + */ +/* #define RTEMS_SET_ETHERNET_ADDRESS */ +#if (defined (RTEMS_SET_ETHERNET_ADDRESS)) +static char ethernet_address[6] = { 0x08, 0x00, 0x3e, 0x12, 0x28, 0xb1 }; +#endif + /* * Default network interface */ @@ -33,7 +43,11 @@ static struct rtems_bsdnet_ifconfig netdriver_config = { "255.255.255.0", /* IP net mask */ #endif /* !RTEMS_USE_BOOTP */ - NULL, /* Driver supplies hardware address */ +#if (defined (RTEMS_SET_ETHERNET_ADDRESS)) + ethernet_address, /* Ethernet hardware address */ +#else + NULL, /* Driver supplies hardware address */ +#endif 0 /* Use default driver parameters */ }; -- cgit v1.2.3