This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Error when adding eth1


Hello All,

I've been trying to create a bridge using two ethernet
ports, eth0 and eth1. Eth0 gets its IP address and 
configuration from a DHCP server where Eth1 has
it set statically using the net.cdl. Eth0 gets set correctly
but eth1 errors with:

SIOCIFADDR 2: File exists

The error originates from the file boot_support.c at line
449 from the code snipit:

       // Must do this again so that [sub]netmask (and so default route)
       // is taken notice of.
       addrp->sin_addr = bp->bp_yiaddr;  // The address BOOTP gave us
       if (ioctl(s, SIOCSIFADDR, &ifr)) {
            perror("SIOCIFADDR 2");
            return false;
       }

I can't see why this should fail? It seems to
do this twice in init_net and it works the first
time.

Can anyone help with this?

Many thanks,
Col.

-- 
===========================================
Colin Ford               PipingHot Networks
Software Engineer        +44 (0)1364 655510 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]