thanks for reply,
what i am doing is ifconfig -a which shows the all the interfaces that are up,
but the weired thing happening here is ... ifconfig -a shows the ppp0 link is up and packets goes on increasing with time....but it is not showing any IP address or anything even though the link is up !!!!!
and i checked by coming out from the LAN and brought down all the interfaces.. even then it is not showing the ip address. .. i tried using ioctl() but it is showing IP address for the interface eth0 but not for ppp0 even though the link is up
and it is showing one more interface sit0 what is that ???