From patchwork Wed Feb 17 12:14:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Janusz.Dziedzic@tieto.com X-Patchwork-Id: 584094 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2001:1868:205::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 032CE140324 for ; Wed, 17 Feb 2016 23:15:47 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=tieto.com header.i=@tieto.com header.b=OBAaNKhz; dkim-atps=neutral Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aW119-00006F-3C; Wed, 17 Feb 2016 12:15:39 +0000 Received: from mail-lb0-x22e.google.com ([2a00:1450:4010:c04::22e]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aW10m-0006zC-Nn for hostap@lists.infradead.org; Wed, 17 Feb 2016 12:15:18 +0000 Received: by mail-lb0-x22e.google.com with SMTP id x1so8233592lbj.3 for ; Wed, 17 Feb 2016 04:14:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=mKHNHqh8IjCDxKsUAyyy3K7nx8FZUzJT9QXXQaxtGoA=; b=OBAaNKhz2oiEzLTroRo2bQyKxf3jRwW/WuANjJDzg0jCpdxgS1bCDvltGEsEBbUdKI y2BurszHueNLFRzVeYwqWRZz1K28B12LOgDDKQN4vW6YzLdfqrRdv/ZHMpGRFYpWRcq5 r+BIH5piwEmHY0opEyaV3wyDEJQDV24Y5Fzms= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=mKHNHqh8IjCDxKsUAyyy3K7nx8FZUzJT9QXXQaxtGoA=; b=Ds4HgWAW70pGBfy8HuqaAXvA9+sxUYe0of1G9D9WaLW0dFJ2U4WBTANnNY92pGRAaS sh0/lwVZ1t3c2/3tCAfVaovnESO3S3006auAN82fsrOTosK6WT101BLiBrGsevbNcNnE S7L37bBH/r/I0qOP2q6BKNFnf9YrgdHP3Dm/4sMnFwQRoRoXi4lIZBou+CmLp0d7bf27 N9hmpOmaUhL3lqeNNre+rk4zSJ0hRljmQV3SkFS4RJhIcVtdJa/8X8+FV+hhIgwld/8x t6oeZfEkhcxRU6hSYP1haGjW3wtUxeOvji4w5imX4jMivTjXQeWyNLTk8BYDfTRMMO43 dbCw== X-Gm-Message-State: AG10YOQes6QGaBj7r+zFgkdGboaGxtpBqqt691h5Fw6pDaYYEJ6uA23M2AqOqGQIpxq+c/CTxor35FIT1k4jRTbhhkFjgL+fkNL0GvMqcTlUPNF1fgeyf4YjuFduLiLgfaZ03ra8ZH/IrmjaVvUT+45gDAoYQc/mYvUYOcDO2hjyRa1ZdcmU8EpC4c/472PuDTgj X-Received: by 10.112.172.200 with SMTP id be8mr586763lbc.78.1455711294876; Wed, 17 Feb 2016 04:14:54 -0800 (PST) Received: from dell6430.guest.wifi ([91.198.246.8]) by smtp.gmail.com with ESMTPSA id t5sm169075lbg.15.2016.02.17.04.14.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Feb 2016 04:14:54 -0800 (PST) From: Janusz Dziedzic To: hostap@lists.infradead.org Subject: [PATCH v3 12/26] wpa_supplicant: udp ctrl show when ITERFACES cmd Date: Wed, 17 Feb 2016 13:14:15 +0100 Message-Id: <1455711269-12929-13-git-send-email-janusz.dziedzic@tieto.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1455711269-12929-1-git-send-email-janusz.dziedzic@tieto.com> References: <1455711269-12929-1-git-send-email-janusz.dziedzic@tieto.com> X-DomainID: tieto.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160217_041517_162721_686BC54C X-CRM114-Status: UNSURE ( 8.02 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:4010:c04:0:0:0:22e listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: hostap@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: j@w1.fi, Janusz Dziedzic MIME-Version: 1.0 Sender: "Hostap" Errors-To: hostap-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Show udp port when handle INTERFACES command. Signed-off-by: Janusz Dziedzic --- wpa_supplicant/ctrl_iface.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 6829aa0..0bd5eca 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -9233,7 +9233,12 @@ static int wpa_supplicant_global_iface_interfaces(struct wpa_global *global, end = buf + len; while (wpa_s) { +#ifdef CONFIG_CTRL_IFACE_UDP + res = os_snprintf(pos, end - pos, "%s ctrl_iface=%s\n", + wpa_s->ifname, wpa_s->conf->ctrl_interface); +#else res = os_snprintf(pos, end - pos, "%s\n", wpa_s->ifname); +#endif if (os_snprintf_error(end - pos, res)) { *pos = '\0'; break;