No. I know Sarada wrote system call. But from the question one could see that what was actually being asked was how to find out on which interface the default route is. Probably the questioner did not know which ip is assigned ti which interface. In which case also ifconfig could do the trick. On Tue, 28 Nov 2000, Sudhindra Herle wrote: > I'm sure you meant > > strace netstat -rn > > Sarada wanted the "system call". > > Most of such info is available under the /proc tree. Most Linux networking > utils (like netstat) use /proc. > > Cheers, > -Sudhi. > > > > -----Original Message----- > > From: semat [mailto:semat@wawa.eahd.or.ug] > > Sent: Tuesday, November 28, 2000 10:36 AM > > To: Sarada Seshadri > > Cc: linux-net@vger.kernel.org > > Subject: Re: Default interface > > > > > > how about netstat -rn > > > > On Tue, 28 Nov 2000, Sarada Seshadri wrote: > > > > > Hi all: > > > > > > Could anyone tell me what system call and option I use to > > find out the > > > default network interface (with which the default route is > > associated)? > > > > > > Thanks very much. > > > -Sarada > > > > > > > > > - > > > : send the line "unsubscribe > > linux-net" in > > > the body of a message to majordomo@vger.kernel.org > > > > > > > - > > : send the line "unsubscribe > > linux-net" in > > the body of a message to majordomo@vger.kernel.org > > > - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org