Networking Threads Networking Support

Networking Support 171 Description Services transmit and receive interrupts for Ethernet network device driver. This thread also handles network timeout events. Setting this thread’s priority level higher than other application thread priority levels allows the best network perfor- mance. Setting the priority level lower can affect the throughput of network traf- fic. This thread is enabled by default. Thread Function cyg_netint Filename support.c CDL Name CYGPKG_NET_THREAD_PRIORITY Default Priority Level 7 Description Handles ARP requests and IP version 4 incoming datagram parsing. Also pro- cesses IPv6 incoming datagram parsing and Ethernet bridge frames when these options are enabled. This background thread priority level affects the network stack performance. This thread is enabled by default. Thread Function cyg_rs Filename ipv6_routing_thread.c CDL Name CYGINT_NET_IPV6_ROUTING_THREAD_PRIORITY Default Priority Level 8 Description Handles sending router solicitation messages used to exchange IP addresses and other information. This thread is disabled by default since IPv6 is also disabled by default. Thread Function dhcp_mgt_entry Filename dhcp_support.c CDL Name CYGPKG_NET_DHCP_THREAD_PRIORITY Default Priority Level 8 Description Manages the DHCP leases for each network interface by ensuring that each inter- face is configured and functioning properly. If a problem occurs or a lease expires, the DHCP thread reinitializes and reconfigures the network interfaces. This thread is enabled by default with DHCP support. Thread Function tftpd_server Filename tftp_server.c CDL Name CYGPKG_NET_TFTPD_THREAD_PRIORITY Default Priority Level 10 Description A TFTP server that manages client applications attempting to connect and per- form read and write requests. The TFTP is used to exchange files among devices connected to the Internet. Using the TFTP server requires the inclusion of a file system implementation. This thread is enabled by default.

8.6.5 Networking Configuration

The eCos Basic Networking Framework package CYGPKG_NET is located in the common subdirectory under the net subdirectory. See Figure 1.3 in Chapter 1 for an overall view of the repository directory structure. The Basic Networking Framework package configuration options are described in Item List 8.6. 172 Chapter 8 • Additional Functionality and Third-Party Contributions Item List 8.6 Basic Networking Framework Package Configuration Options