[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE : RE : [lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module
From: |
Frédéric BERNON |
Subject: |
RE : RE : [lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module |
Date: |
Fri, 18 May 2007 12:59:49 +0200 |
>I need a fully RFC-compliant AutoIP feature and I'm willing to share it under
>terms of a free license (think the same license as lwIP would fit best).
Agree, and if you really want to share it, I even think it's the good solution
>Thanks for your help offer, I'll ask if I get stuck anywhere.
No problem
>The RFC requires to continously check if there are ARP reply packets with the
>same IP-Address as destination as the own one to detect address conflicts. So
>I have to place a hook in the ARP Layer so I can check this in my autoip
>module. Or is there a better solution?
No, and it's even the solution used by dhcp when you set DHCP_DOES_ARP_CHECK=1,
to call dhcp_arp_reply in ehtarp.c.
Gook luke, and give us any reports of your solution...
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Spies, Dominik
Envoyé : vendredi 18 mai 2007 12:32
À : Mailing list for lwIP users
Objet : RE: RE : [lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module
Hi!
I need a fully RFC-compliant AutoIP feature and I'm willing to share it under
terms of a free license (think the same license as lwIP would fit best).
Thanks for your help offer, I'll ask if I get stuck anywhere.
The RFC requires to continously check if there are ARP reply packets with the
same IP-Address as destination as the own one to detect address conflicts. So I
have to place a hook in the ARP Layer so I can check this in my autoip module.
Or is there a better solution?
Dominik
-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Frédéric BERNON
Sent: Freitag, 18. Mai 2007 12:13
To: Mailing list for lwIP users
Subject: RE : [lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module
In my project, I have to enable something like in these three scenarios:
1/ dhcp only (netif never up if no dhcp is available)
2/ autoip only
3/ dhcp with fallback on autoip if no dhcp response before a defined timeout.
But in my case, because it's just to avoid to never up, 2/ & 3/ implementations
are very "simples" : the thread which exec the dhcp_start() just poll the
netif's ip address until it changes, or until a timeout, and in this last case,
just do a dhcp_stop() and direct set to the netif a static AUTOIP address (I
don't even check if the autoip is already used, even if it's not a big job...).
Of course, all that is done in my port level (where I add my interfaces, etc...)
Do you intend to share your autoip feature, or is it just for you? If you want
to share it, I suggest you to add autoip.h/.c files, and not just patch dhcp,
because like this, people which only want a autoip device without dhcp (or the
inverse) could got a smaller footprint...
To check if the Autoip is already used, look how DHCP_DOES_ARP_CHECK is
implemented (each ARP reply on a interface is handle by dhcp_arp_reply(), which
"decline" the IP is the interface is always in DHCP_CHECKING state).
If you want some help, tell me, I would like to improve my current
"implementation"...
====================================
Frédéric BERNON
HYMATOM SA
Chef de projet informatique
Microsoft Certified Professional
Tél. : +33 (0)4-67-87-61-10
Fax. : +33 (0)4-67-70-85-44
Email : address@hidden
Web Site : http://www.hymatom.fr
====================================
P Avant d'imprimer, penser à l'environnement
-----Message d'origine-----
De : address@hidden [mailto:address@hidden De la part de Spies, Dominik Envoyé
: vendredi 18 mai 2007 11:28 À : Mailing list for lwIP users Objet :
[lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module
Hi!
Additional to DHCP I need a APIPA configuration if no DHCP is there for my
application.
So did one ever try to or succesfull implement such feature in lwIP ?
My idea is to integrate this in the dhcp module, because interaction is very
close..
What do you think?
Regards,
Dominik
_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
_______________________________________________
lwip-users mailing list
address@hidden http://lists.nongnu.org/mailman/listinfo/lwip-users
Frédéric BERNON.vcf
Description: Frédéric BERNON.vcf
- RE : RE : [lwip-users] APIPA / AutoIP / Zeroconf / RFC 3927 Module,
Frédéric BERNON <=