ifconfig meshforward command bug

Bernhard Schmidt bschmidt at freebsd.org
Thu Mar 22 18:28:00 UTC 2012


On Thursday 22 March 2012 16:59:44 Monthadar Al Jaberi wrote:
> 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);

Seems about right, those declared with DEF_CMD() should use d.

-- 
Bernhard


More information about the freebsd-net mailing list