Hi All,
I have a doubt about the ifconfig file. when i am trying to configure or
change ip address on the interface. The main calls setifaddr function
which calls ioctl function with command as SIOCGIFADDR by the following
lines
ifr->ifr_addr.sa_family = afp->af_af;
if (ioctl(s, afp->af_gifaddr, afp->af_ridreq) == 0)
clearaddr = 1;
Now i don't understand why the ioctl is called by SIOCGIFADDR when i am
configuring an ip address on the interface. Moreover i believe that when
ioctl returns successfully it returns 0 so the clearaddr will be set and
later on the ip address will be deleted.
Please help me out if i am interpreting it wrong as i am not able to
assign an ip address to the interface in my ported code.
Thanks
Regards
Shankar
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
- Re: Question regarding the ar... Lord Isildur
- Re: Question regarding the ar... John Franklin
- Re: Question regarding the ar... Benny Prijono
- Re: Question regarding the ar... John Gregor
- Re: Question regarding the ar... Greg A. Woods
- Re: Question regarding the ar... Drew Eckhardt
- Re: Question regarding the ar... Frederick Bruckman
- Re: Question regarding the ar... Peter Seebach
- Re: Question regarding the array ... Peter Seebach
- Re: Question regarding the array of size 0. Johan Danielsson
- Re: Question regarding ifconfig. Shankar Agarwal
- Re: Question regarding ifconfig. Bill Studenmund
- Re: Question regarding the array of size 0. Greywolf
- Re: Question regarding the array of size 0. Farooq Mela
- Re: Question regarding the array of size 0. Andrew Brown
- Re: Question regarding the array of size 0. der Mouse
- Re: Question regarding the array of size 0. Richard Earnshaw
- Re: Question regarding the array of size 0. Peter Seebach
- Re: Question regarding the array of size 0... Richard Earnshaw
- Re: Question regarding the array of size 0. Chuck McManis

