/*------------------------------------------------------------------------------ * MDK Middleware - Component ::Network:Interface * Copyright (c) 2004-2020 Arm Limited (or its affiliates). All rights reserved. *------------------------------------------------------------------------------ * Name: Net_Config_ETH_0.h * Purpose: Network Configuration for ETH Interface * Rev.: V7.3.0 *----------------------------------------------------------------------------*/ //-------- <<< Use Configuration Wizard in Context Menu >>> -------------------- // Ethernet Network Interface 0 #define ETH0_ENABLE 1 // Connect to hardware via Driver_ETH# <0-255> // Select driver control block for MAC and PHY interface #define ETH0_DRIVER 0 // MAC Address // Ethernet MAC Address in text representation // Value FF-FF-FF-FF-FF-FF is not allowed, // LSB of first byte must be 0 (an ethernet Multicast bit). // Default: "1E-30-6C-A2-45-5E" #define ETH0_MAC_ADDR "1E-30-6C-A2-45-5E" // VLAN // Enable or disable Virtual LAN #define ETH0_VLAN_ENABLE 0 // VLAN Identifier <1-4093> // A unique 12-bit numeric value // Default: 1 #define ETH0_VLAN_ID 1 // // IPv4 // Enable IPv4 Protocol for Network Interface #define ETH0_IP4_ENABLE 1 // IP Address // Static IPv4 Address in text representation // Default: "192.168.0.100" #define ETH0_IP4_ADDR "192.168.0.100" // Subnet mask // Local Subnet mask in text representation // Default: "255.255.255.0" #define ETH0_IP4_MASK "255.255.255.0" // Default Gateway // IP Address of Default Gateway in text representation // Default: "192.168.0.254" #define ETH0_IP4_GATEWAY "192.168.0.254" // Primary DNS Server // IP Address of Primary DNS Server in text representation // Default: "8.8.8.8" #define ETH0_IP4_PRIMARY_DNS "8.8.8.8" // Secondary DNS Server // IP Address of Secondary DNS Server in text representation // Default: "8.8.4.4" #define ETH0_IP4_SECONDARY_DNS "8.8.4.4" // IP Fragmentation // This option enables fragmentation of outgoing IP datagrams, // and reassembling the fragments of incoming IP datagrams. // Default: enabled #define ETH0_IP4_FRAG_ENABLE 1 // MTU size <576-1500> // Maximum Transmission Unit in bytes // Default: 1500 #define ETH0_IP4_MTU 1500 // // ARP Address Resolution // ARP cache and node address resolver settings // Cache Table size <5-100> // Number of cached MAC/IP addresses // Default: 10 #define ETH0_ARP_TAB_SIZE 10 // Cache Timeout in seconds <5-255> // A timeout for cached hardware/IP addresses // Default: 150 #define ETH0_ARP_CACHE_TOUT 150 // Number of Retries <0-20> // Number of Retries to resolve an IP address // before ARP module gives up // Default: 4 #define ETH0_ARP_MAX_RETRY 4 // Resend Timeout in seconds <1-10> // A timeout to resend the ARP Request // Default: 2 #define ETH0_ARP_RESEND_TOUT 2 // Send Notification on Address changes // When this option is enabled, the embedded host // will send a Gratuitous ARP notification at startup, // or when the device IP address has changed. // Default: Disabled #define ETH0_ARP_NOTIFY 0 // // IGMP Group Management // Enable or disable Internet Group Management Protocol #define ETH0_IGMP_ENABLE 0 // Membership Table size <2-50> // Number of Groups this host can join // Default: 5 #define ETH0_IGMP_TAB_SIZE 5 // // NetBIOS Name Service // When this option is enabled, the embedded host can be // accessed by its name on local LAN using NBNS protocol. #define ETH0_NBNS_ENABLE 1 // Dynamic Host Configuration // When this option is enabled, local IP address, Net Mask // and Default Gateway are obtained automatically from // the DHCP Server on local LAN. #define ETH0_DHCP_ENABLE 1 // Vendor Class Identifier // This value is optional. If specified, it is added // to DHCP request message, identifying vendor type. // Default: "" #define ETH0_DHCP_VCID "" // Bootfile Name // This value is optional. If enabled, the Bootfile Name // (option 67) is also requested from DHCP server. // Default: disabled #define ETH0_DHCP_BOOTFILE 0 // NTP Servers // This value is optional. If enabled, a list of NTP Servers // (option 42) is also requested from DHCP server. // Default: disabled #define ETH0_DHCP_NTP_SERVERS 0 // // Disable ICMP Echo response #define ETH0_ICMP_NO_ECHO 0 // // IPv6 // Enable IPv6 Protocol for Network Interface #define ETH0_IP6_ENABLE 1 // IPv6 Address // Static IPv6 Address in text representation // Use unspecified address "::" when static // IPv6 address is not used. // Default: "fec0::2" #define ETH0_IP6_ADDR "fec0::2" // Subnet prefix-length <1-128> // Number of bits that define network address // Default: 64 #define ETH0_IP6_PREFIX_LEN 64 // Default Gateway // Default Gateway IPv6 Address in text representation // Default: "fec0::1" #define ETH0_IP6_GATEWAY "fec0::1" // Primary DNS Server // Primary DNS Server IPv6 Address in text representation // Default: "2001:4860:4860::8888" #define ETH0_IP6_PRIMARY_DNS "2001:4860:4860::8888" // Secondary DNS Server // Secondary DNS Server IPv6 Address in text representation // Default: "2001:4860:4860::8844" #define ETH0_IP6_SECONDARY_DNS "2001:4860:4860::8844" // Neighbor Discovery // Neighbor cache and node address resolver settings // Cache Table size <5-100> // Number of cached node addresses // Default: 5 #define ETH0_NDP_TAB_SIZE 5 // Cache Timeout in seconds <5-255> // Timeout for cached node addresses // Default: 150 #define ETH0_NDP_CACHE_TOUT 150 // Number of Retries <0-20> // Number of retries to resolve an IP address // before NDP module gives up // Default: 4 #define ETH0_NDP_MAX_RETRY 4 // Resend Timeout in seconds <1-10> // A timeout to resend Neighbor Solicitation // Default: 2 #define ETH0_NDP_RESEND_TOUT 2 // // Dynamic Host Configuration // When this option is enabled, local IPv6 address is // automatically configured. #define ETH0_DHCP6_ENABLE 1 // DHCPv6 Client Mode <0=>Stateless Mode <1=>Statefull Mode // Stateless DHCPv6 Client uses router advertisements // for IPv6 address autoconfiguration (SLAAC). // Statefull DHCPv6 Client connects to DHCPv6 server for a // leased IPv6 address and DNS server IPv6 addresses. #define ETH0_DHCP6_MODE 1 // Vendor Class Option // If enabled, Vendor Class option is added to DHCPv6 // request message, identifying vendor type. // Default: disabled #define ETH0_DHCP6_VCLASS_ENABLE 0 // Enterprise ID // Enterprise-number as registered with IANA. // Default: 0 (Reserved) #define ETH0_DHCP6_VCLASS_EID 0 // Vendor Class Data // This string identifies vendor type. // Default: "" #define ETH0_DHCP6_VCLASS_DATA "" // // // Disable ICMP6 Echo response #define ETH0_ICMP6_NO_ECHO 0 // // OS Resource Settings // These settings are used to optimize usage of OS resources. // Interface Thread Stack Size <512-65535:4> // Default: 512 bytes #define ETH0_THREAD_STACK_SIZE 512 // Interface Thread Priority #define ETH0_THREAD_PRIORITY osPriorityAboveNormal // // //------------- <<< end of configuration section >>> ---------------------------