[lwip-users] fixed IP and DCHP on the same net interface?

2008-12-16 Thread Piero 74
Hi all I tested a network camera, which seems work in this way: it has a DHCP client inside, which starts on power on. But until an IP from DHCP server is available, it answers on fixed ip (i.e. 192.168.1.3) Can i do the same using lwip? I tried to bring up an interface with fixed IP and after s

[lwip-users] LwIP help needed

2008-12-16 Thread Abhinay Patil
Hello, I am in need of some support in using lwIP for my application. I hope you will be able to reply on the queries, or atleast guide me to the proper channel for such queries (if this is not the one!). Thanks in advance. Here's what I intend to do in my application: I have a DSP processor with 2

Re: [lwip-users] LwIP help needed

2008-12-16 Thread Mike Kleshov
I think the kind of filtering you are describing is best done at ethernet device driver level. If the incoming packet is to be passed to the output part, it can be done from within the driver, keeping the ethernet header and the rest. If the packet is to be processed by lwip, it should be passed to

Re: [lwip-users] fixed IP and DCHP on the same net interface?

2008-12-16 Thread Alain M.
The real question is: do you really want to do that? what if you connect 2 cameras, what happens? plus the problem on another message... IMHO, this would work better: try DHCP for some time, withou any ip, then use autoip... Alain Piero 74 escreveu: Hi all I tested a network camera, which se

[lwip-users] LwIP help needed

2008-12-16 Thread Chris Williams
In message <8ecec5f30812160407o429882a8oe3a8c6a29...@mail.gmail.com> , Abhinay Patil writes > >Hello, >I am in need of some support in using lwIP for my application. I >hope you will be able to reply on the queries, or atleast guide me >to the proper channel for such queries

Re: [lwip-users] fixed IP and DCHP on the same net interface?

2008-12-16 Thread Piero 74
i found a solution... but i "forced" stack implementation guidelines... I did a post to lwip_dev with this idea... because i need a feedback... here a copy. " Hi all. I found a solution for my problem, but i need community feedback. The problem is: I have my ip board, and i need to simplify the

RE: [lwip-users] fixed IP and DCHP on the same net interface?

2008-12-16 Thread bill
Piero, In my Ethernet driver, I've done the following to allow an attempt at DHCP with a fallback to a static IP. int dhcpFallbackTimer = GetmSTimer() + 5000; //5 seconds while( ! netif_is_up( netif_default ) ) {

RE: [lwip-users] lwIP versus Interniche

2008-12-16 Thread bill
Thank you Thomas, Micael, and Simon for your replies. The decision wasn't hard after considering the learning curve. Plus, there were a significant number of serious bugs in version 7.2 most if not all reported fixed in 8.0. It made me nervous that a version 7-something would have that many issue

RE: [lwip-users] fixed IP and DCHP on the same net interface?

2008-12-16 Thread Muhamad Ikhwan Ismail
Hi, I have this too, you can do this by writing into the netif ip address directly before starting dhcp (dhcp_start). There is a bit of problem though, if the DHCP server offers an address equals to the static address and , and after offering does acheck through ARP, your device will answer and

Re: [lwip-users] LwIP help needed

2008-12-16 Thread Kieran Mansley
On Tue, 2008-12-16 at 16:05 +0300, Mike Kleshov wrote: > I think the kind of filtering you are describing is best done at > ethernet device driver level. I agree - you really don't need a full TCP/IP stack for this purpose. I would guess that at most you're going to want to be able to examine so

Re: [lwip-users] lwIP versus Interniche

2008-12-16 Thread Timmy Brolin
I think LwIP is much more memory efficient than Interniche. At least when it comes to RAM. Interniche requires that all rx buffers are of maximum frame size unless you want to reallocate and copy each frame at the driver level. So even small ACKs take a full ~1500Byte buffer. Regards, Timmy Brolin

Re: [lwip-users] fixed IP and DCHP on the same net interface?

2008-12-16 Thread Oliver Schindler
Hi all, i'm facing the same problem, but my solution was, to put the fallback into the dhcp-timeout. Means: Startup the dhcp with 0.0.0.0 , if it is getting an ip , everything is o.k. , if not the static IP is used . ( see below ..) The disadvantage of this is, that it takes 20 seconds, before