[ECOS] gdb and ioctl(sd, SIOCIFCREATE, &ifreq)

Morris Walton mwalton@telesyn.com
Tue Nov 2 01:39:00 GMT 2004


Hi,

My gdb session to my ppc 8xxx target (using Ethernet - target remote
<ip>:9000) appears to be hung after the code running on the target issues
the SIOCIFCREATE io command:

int
if_dev_create(char *name)
{
   struct ifreq ifreq;

   int sd = socket(AF_INET, SOCK_DGRAM, 0);

   strcpy(ifreq.ifr_name, name);
   if (ioctl(sd, SIOCIFCREATE, &ifreq) == -1)

<no longer stepping, gdb unresponsive>

Anyone had luck or have suggestions with using the SIOCIFCREATE?  This looks
like it amounts to a call to if_clone_create.  

Thanks for any help,

Morris










--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list