dhcp problem

View: New views
2 Messages — Rating Filter:   Alert me  

dhcp problem

by András Szemző :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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



_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion

Re: dhcp problem

by Ethernut :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

András Szemző wrote:
> 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
...
> Is there a better solution for this problem?

Probably not. The problem is that we have no clean way to determine
whether an interface is up or down.

Harald

_______________________________________________
http://lists.egnite.de/mailman/listinfo/en-nut-discussion