The network configuration is specified by declaring
and initializing the rtems_bsdnet_config
structure.
struct rtems_bsdnet_config { /* * This entry points to the head of the ifconfig chain. */ struct rtems_bsdnet_ifconfig *ifconfig; /* * This entry should be rtems_bsdnet_do_bootp if BOOTP * is being used to configure the network, and NULL * if BOOTP is not being used. */ void (*bootp)(void); /* * The remaining items can be initialized to 0, in * which case the default value will be used. */ rtems_task_priority network_task_priority; /* 100 */ unsigned long mbuf_bytecount; /* 64 kbytes */ unsigned long mbuf_cluster_bytecount; /* 128 kbytes */ char *hostname; /* BOOTP */ char *domainname; /* BOOTP */ char *gateway; /* BOOTP */ char *log_host; /* BOOTP */ char *name_server[3]; /* BOOTP */ char *ntp_server[3]; /* BOOTP */ };
The structure entries are described in the following table. If your application uses BOOTP/DHCP to obtain network configuration information and if you are happy with the default values described below, you need to provide only the first two entries in this structure.
struct rtems_bsdnet_ifconfig *ifconfig
void (*bootp)(void)
rtems_bsdnet_do_bootp
if your application will use BOOTP/DHCP
to obtain network configuration information.
It should be set to NULL
if your application does not use BOOTP/DHCP.
int network_task_priority
unsigned long mbuf_bytecount
unsigned long mbuf_cluster_bytecount
char *hostname
NULL
the value
may be obtained from a BOOTP/DHCP server.
char *domainname
char *gateway
129.128.4.1
) form.
char *log_host
syslog
messages
will be sent.
char *name_server[3]
char *ntp_server[3]
In addition, the following fields in the rtems_bsdnet_ifconfig
are of interest.
Copyright © 1988-2007OAR Corporation