On Thu, Oct 05, 2006 at 02:36:04PM +0100, Nic James Ferrier wrote: > I could then parse the lease data and establish the current ip. > > This is _quite_ a good solution... it requires no changes to the uml > filesystem. It does require the dhcp client to have the lease file > open. This works on ISC's dhcp client but I haven't tried any others > yet.
Given that you need to find the dhcp client and count on it having the lease file open on a particular descriptor, I would call this not very nice. Why don't you know the IP address already, since you're responsible for providing it? grepping around /proc shows /proc/net/arp. The UML arp cache won't have its own IP, but the host's will, if there has been traffic recently. You need to know the UML's MAC, so I dunno if this is helpful. Jeff ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user