From owner-freebsd-hackers@FreeBSD.ORG Sun Dec 30 10:15:01 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9B9EC7D5 for ; Sun, 30 Dec 2012 10:15:01 +0000 (UTC) (envelope-from dnaeon@gmail.com) Received: from mail-bk0-f51.google.com (mail-bk0-f51.google.com [209.85.214.51]) by mx1.freebsd.org (Postfix) with ESMTP id 1FB2C8FC12 for ; Sun, 30 Dec 2012 10:15:00 +0000 (UTC) Received: by mail-bk0-f51.google.com with SMTP id ik5so5195941bkc.10 for ; Sun, 30 Dec 2012 02:14:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eP0YbxliLF41W15rVt0LCB4EFRHuKneOhcjXvZVTiJo=; b=oFnX1oGS8Z8Sb5zUS7/WTcQIXTmeZ8PY3NvohxdK3QCEInmh0DvXUwbNbzd4NItIfm OrWryM85fEOHgc+JZTRey13GOlH3MgKt/kBbxUYaDaRPp8UgDUQ+JOvY0JenvqRrSeD6 QZ8ZWHbTZ8k/R/btxMmR4xRskwOI9sk1JUEvaFC9dp0RYNdmUUKBuMlHURLPMLLhKthm ivV0dU/pUQfUWnyzhBGka3cDpfKSend7vqudoZkDKxcFRHYQhIxhZjt7YUmmA30EsroO mMsxsltPSNU1mEJjvajk5533EYGnUwbUbZgqb7BbyWcg+hiDNqAYuPtyy5EwDE+L6K1X reqw== MIME-Version: 1.0 Received: by 10.204.147.147 with SMTP id l19mr17793412bkv.91.1356862493609; Sun, 30 Dec 2012 02:14:53 -0800 (PST) Received: by 10.204.63.196 with HTTP; Sun, 30 Dec 2012 02:14:53 -0800 (PST) Date: Sun, 30 Dec 2012 12:14:53 +0200 Message-ID: Subject: Displaying jail's info only by using jail_get() From: Marin Atanasov Nikolov To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Dec 2012 10:15:01 -0000 Hello, I'd like to display info about the currently running jails on my system by using jail_get(). The code of the program can be found here: * https://gist.github.com/4411851 Everything works, except for cases when a jail has multiple IP addresses assigned to it. In that case the JID is never returned by jail_get(), thus I cannot get any info about it. Know what I'm missing here? Thanks and regards, Marin -- Marin Atanasov Nikolov dnaeon AT gmail DOT com http://www.unix-heaven.org/