lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] getting started with development (webserver) on linux and l


From: Artem Metra
Subject: [lwip-users] getting started with development (webserver) on linux and lwip
Date: Fri, 12 Mar 2021 11:41:19 +0100

Hi all,
I'm new to lwIP and I try to get a simple example working on my linux (ubuntu 20.10).
I can't find a fully description on how to get started and hope someone can push me in the right direction.
 
What I did so far:
git clone https://git.savannah.nongnu.org/git/lwip.git
cd lwip
./contrib/ports/unix/setup-tapif
mv contrib/examples/example_app/lwipcfg.h.example contrib/examples/example_app/lwipcfg.h
mkdir build
cd build
cmake ..
cmake --build .
./contrib/ports/unix/example_app/example_app
 
Output of example_app:
Starting lwIP, local interface IP is dhcp-enabled
ip6 linklocal address: FE80::12:34FF:FE56:78AB
status_callback==UP, local interface IP is 0.0.0.0
status_callback==UP, local interface IP is 0.0.0.0
 
Output if ifconfig:
lwipbridge: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet 192.168.1.1  netmask 255.255.255.0  broadcast 0.0.0.0
        inet6 fe80::50dc:49ff:fe8f:fce6  prefixlen 64  scopeid 0x20<link>
        ether 52:dc:49:8f:fc:e6  txqueuelen 1000  (Ethernet)
        RX packets 59  bytes 12264 (12.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 96  bytes 11705 (11.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
tap0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        inet6 fe80::50dc:49ff:fe8f:fce6  prefixlen 64  scopeid 0x20<link>
        ether 52:dc:49:8f:fc:e6  txqueuelen 1000  (Ethernet)
        RX packets 63  bytes 14490 (14.4 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 141  bytes 16725 (16.7 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
I found out that I can activate for example an webserver
#define LWIP_HTTPD_APP                1
to
#define LWIP_HTTPD_APP                0
in the lwipcfg.h and recompile.
I can't get any connection to the server. What I'm doing wrong?
 
Regards,
Artem

reply via email to

[Prev in Thread] Current Thread [Next in Thread]