Data Structures - Altera Nios Ethernet User Manual

Development kit user guide
Hide thumbs Also See for Nios Ethernet:
Table of Contents

Advertisement

Software Overview

Data Structures

ns_plugs_network_setting
Structure:
typedef struct
{
}
Description:
Structure member:
44
net_48 ethernet_address;
short pad;
net_32 ip_address;
net_32 nameserver_ip_address;
ns_plugs_network_settings;
ethernet_address This is a 48-bit value in network-byte order. Every
ip_address This is a 32-bit IP address in network-byte order. It should
nameserver_ip_address This is a 32-bit IP address in network-byte order. If your
Nios Ethernet Development Kit User Guide
This structure is used to configure an adapter with all the
necessary network information. It is passed to the Plugs
Library routine nr_plugs_initialize() for each
adapter.
Ethernet card must have a unique 48-bit MAC address.
(These addresses are managed by the IEEE. Information
on obtaining a legal Ethernet MAC address can be found
at www.ieee.org; search for OUI, Organizationally Unique
Identifier)
pad This member is unused.
be an unused IP address within the range of the LAN
connection to the Nios-based device
Nios-based device needs to establish connections with
remote network devices using their DNS names (using the
remote_name parameter of the Plugs Library
nr_plugs_connect() or nr_plugs_name_to_ip()
routines), then you must provide the name server's IP
address for the Plugs Library to use.
.
Altera Corporation

Advertisement

Table of Contents
loading

Table of Contents