From owner-freebsd-net@FreeBSD.ORG Thu Mar 22 15:59:53 2012 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 021C4106566B for ; Thu, 22 Mar 2012 15:59:53 +0000 (UTC) (envelope-from monthadar@gmail.com) Received: from mail-wg0-f50.google.com (mail-wg0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 7682D8FC1A for ; Thu, 22 Mar 2012 15:59:52 +0000 (UTC) Received: by wgbds12 with SMTP id ds12so1495231wgb.31 for ; Thu, 22 Mar 2012 08:59:44 -0700 (PDT) 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=a6PR0qikftC9AWdGb5g/r9tulSVHsb6+B02g63IpylQ=; b=gWuOvVsChkyf0iF+OVRr45c1k9ukvrCyl84xxIaY2ofPpTSz8ppPYkmwOcQQq6yRIu YuQL9kH4R3kOdYjKDfgwKAEoN2oKnIMPChJYc9oyeYYCLp1EioYJgPGa3K9n3xHhubvF Uzj9AVx3H+mfovPRh9eTxReKURAXm1383AAUhokgRO7uUYwim9bvd1o1EISYvgFcYS/H uEl87kCDFqgpCI3KHRww5CLC6DC2tqfPLsIk0lt1Tq1vgH/e4T3An1pJNHn1W5nf026Q zvkaEklgKXL1GJpCcgM/eAVbeYSMEYQkHUdWn2VPI26sBpg0GPjMNg47asizAAShHB0W wYrA== MIME-Version: 1.0 Received: by 10.180.85.70 with SMTP id f6mr6383796wiz.5.1332431984752; Thu, 22 Mar 2012 08:59:44 -0700 (PDT) Received: by 10.223.110.138 with HTTP; Thu, 22 Mar 2012 08:59:44 -0700 (PDT) Date: Thu, 22 Mar 2012 16:59:44 +0100 Message-ID: From: Monthadar Al Jaberi To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: ifconfig meshforward command bug X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2012 15:59:54 -0000 Hi, I think this is a bug in ifconfig, sending val to kernel always results in zero. There are a couple of these, just want to hear from you guys if you think this is a bug too. --- a/sbin/ifconfig/ifieee80211.c +++ b/sbin/ifconfig/ifieee80211.c @@ -1879,13 +1879,19 @@ DECL_CMD_FUNC(set80211meshttl, val, d) static DECL_CMD_FUNC(set80211meshforward, val, d) { - set80211(s, IEEE80211_IOC_MESH_FWRD, atoi(val), 0, NULL); + set80211(s, IEEE80211_IOC_MESH_FWRD, d, 0, NULL); br, -- Monthadar Al Jaberi