LWIP initialization Process

Source: Internet
Author: User

You should first look at the Doc/rawapi.txt in the source package, which describes the initialization process.

The first half of the initialization process is mainly for LWIP memory management and each protocol layer, in src/core/init.c there is a lwip_init () function has been done for us, directly call it;

The second half of the initialization process initializes the network interface, calling the following function in turn:

Netif_add (multiple calls are required if there is more than one interface)

Netif_set_default

Netif_set_up

Dhcp_start

When calling the Netif_add function we need to provide an INIT function pointer, which points to our own hardware interface initialization function, which is generally the ethernetif_init () in ETHERNETIF.C.

LWIP initialization Process

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.