[En-Nut-Discussion] dhcp problem
András Szemző
szemzo.andras at gmail.com
Thu May 28 15:08:31 CEST 2009
Hi all,
I'm using at91sam7x with onboard ethernet with GPRS primary/backup PPP
device. Everything works fine, I have just one problem.
If I configure the ethernet device with DHCP, I must wait with PPP
device register until DHCP configure the ethernet, becouse
NutIpOut will send broadcast request on a wrong device (PPP). I can
solve this by modify NutIpOutput
...
/*
* Broadcasts are sent on all network interfaces.
*/
if (dest == 0xffffffff) {
memset(ha, 0xff, sizeof(ha));
for (dev = nutDeviceList, rc = 0; dev && rc == 0; dev = dev-
>dev_next) {
nif = dev->dev_icb;
if (dev->dev_type == IFTYP_NET && nif->if_type == IFT_ETHER) {
...
but in this case udp broadcast messages will by tied to ethernet
device only.
Is there a better solution for this problem?
Regards,
Andras
More information about the En-Nut-Discussion
mailing list