Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - New ifconfig problem: (2 Items)
   
New ifconfig problem  
Hello.

I have another problem with ifconfig while running my driver : 

# ifconfig men0 192.168.123.123

It runs the following function :
error = ether_ioctl(ifp, cmd, data);

And retrun error 13 :

: SIOCAIFADDR: Permission denied

ifp	0x08153478	=> Seems to be filled correctly
data 0x8144368 "\324C\024\b\344C\024\b\364C\024\bx4\025\b"
cmd	0x8090690c

It appends the FIRST TIME i'm calling the ifconfig utility, the second time I call the ifconfig with the same arguments,
 it sets the address.

Any idea about this problem ?

Thank you.
Guillaume.


Re: New ifconfig problem  
Sounds fishy...

Looking at it quickly, the error code could come from the network driver 
or from a problem adding a route. Shot in the dark, but try looking at 
the driver's source for if_init(), and looking at your routing table for 
inconsistencies between and after the ifconfig invocations.

/P