Re: [lwip-users] Set static IP and set manually DNS IP

2018-02-15 Thread Simon Goldschmidt
cookies_do wrote:
> The main file is enet_lwip.c and firstly I called lwIPInit() function and

Don't know that file.

> after that dns_setserver(). The microcontroller I am using is from Texas
> Instruments. I have debug it, but all initializations of pcbs seem ok
> (that's why I wrote "still doesn't work).

What I meant is we don't know *what* doesn't work. Does it return an error,
does it send to a wrong address, etc.
And with debugging I meant: single-step through dns_gethostbyname() and check
where it fails.

> Could there be problem because of disabling LWIP_DHCP?

No.

Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Set static IP and set manually DNS IP

2018-02-15 Thread cookies_do
Hello.

Thank you for your reply.
The main file is enet_lwip.c and firstly I called lwIPInit() function and
after that dns_setserver(). The microcontroller I am using is from Texas
Instruments. I have debug it, but all initializations of pcbs seem ok
(that's why I wrote "still doesn't work).

Could there be problem because of disabling LWIP_DHCP?

Thanks in advance.



--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


Re: [lwip-users] Set static IP and set manually DNS IP

2018-02-15 Thread Simon Goldschmidt

cookies_do wrote:
> I want to set static IP and manually set IPs for DNS servers in lwIP 2.0.3.
> When setting and using this separately, it works. Changes that I made were:
> LWIP_DHCP set to 0,
> LWIP_DHCP_MAX_DNS_SERVERS set to 0,
> LWIP_AUTOIP is set to 0.
> 
> IP mode is selected to IPADDR_USE_STATIC in main and static IP addres is
> set. DNS servers IPs are set in dns_setserver() function (also in main).
> But, still does not work.
> 
> Anyone has an idea?

Neither IPADDR_USE_STATIC nor main.c is part of lwIP. Maybe that's why noone
answered the first time you sent this mail.

Anyway, this should work. Meaning you probably did something wrong and might
want to debug it.
How should we know what's wrong from "still does not work"? ;-)
Maybe you call dns_setserver too early.

Simon

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Set static IP and set manually DNS IP

2018-02-15 Thread cookies_do
Hello everyone, 

I want to set static IP and manually set IPs for DNS servers in lwIP 2.0.3. 
When setting and using this separately, it works. Changes that I made were: 
LWIP_DHCP set to 0, 
LWIP_DHCP_MAX_DNS_SERVERS set to 0, 
LWIP_AUTOIP is set to 0. 

IP mode is selected to IPADDR_USE_STATIC in main and static IP addres is 
set. DNS servers IPs are set in dns_setserver() function (also in main). 
But, still does not work. 

Anyone has an idea? 

Thank you. 




--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users


[lwip-users] Set static IP and set manually DNS IP

2018-02-14 Thread cookies_do
Hello everyone,

I want to set static IP and manually set IPs for DNS servers in lwIP 2.0.3.
When setting and using this separately, it works. Changes that I made were:
LWIP_DHCP set to 0,
LWIP_DHCP_MAX_DNS_SERVERS set to 0,
LWIP_AUTOIP is set to 0.

IP mode is selected to IPADDR_USE_STATIC in main and static IP addres is
set. DNS servers IPs are set in dns_setserver() function (also in main).
But, still does not work.

Anyone has an idea?

Thank you.






--
Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html

___
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users