X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=ifconfig%2Fvirt_ifconfig.ml;fp=ifconfig%2Fvirt_ifconfig.ml;h=e829944c68575995840ff8223df474f3b28f5051;hb=38ddc086b54499043a5e4f6ab6316b0fa152bbbd;hp=0000000000000000000000000000000000000000;hpb=14c916e5692f6d1986a10b88d03b41349dcb729a;p=virt-mem.git diff --git a/ifconfig/virt_ifconfig.ml b/ifconfig/virt_ifconfig.ml new file mode 100644 index 0000000..e829944 --- /dev/null +++ b/ifconfig/virt_ifconfig.ml @@ -0,0 +1,42 @@ +(* Memory info for virtual domains. + (C) Copyright 2008 Richard W.M. Jones, Red Hat Inc. + http://libvirt.org/ + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + *) + +open Printf + +open Virt_mem_gettext.Gettext +open Virt_mem_utils +open Virt_mem_types + +open Kernel_task_struct + +let run debug { domname = domname; mem = mem } + { utsname = utsname; tasks = tasks } = + let utsname = Option.get utsname in + let kernel_version = utsname.kernel_release in + + () + +let summary = s_"list network interfaces in virtual machine" +let description = s_"\ +virt-ifconfig prints a network interfaces for virtual machines. +" + +let () = + Virt_mem.register "ifconfig" summary description + ~needs_utsname:true ~needs_net_devices:true ~run