Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2012 16:59:44 +0100
From:      Monthadar Al Jaberi <monthadar@gmail.com>
To:        freebsd-net@freebsd.org
Subject:   ifconfig meshforward command bug
Message-ID:  <CA%2BsBSoJaxxRRsUqmpN6k8q6M_SZ_605ip6auN44k5BQ7a_XOtQ@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BsBSoJaxxRRsUqmpN6k8q6M_SZ_605ip6auN44k5BQ7a_XOtQ>