1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

* Added new command to ifconfig to activate Mesh Gate Announcement called

meshgate with corresponding explanation;

Approved by: adrian
This commit is contained in:
Monthadar Al Jaberi 2012-05-01 16:15:34 +00:00
parent 9fc85253aa
commit e6e06eb824
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=234893
2 changed files with 20 additions and 0 deletions

View File

@ -1979,6 +1979,12 @@ Enable or disable forwarding packets by a mesh interface.
By default
.Cm meshforward
is enabled.
.It Cm meshgate
This attribute specifies whether or not the mesh STA activates mesh gate
announcements.
By default
.Cm meshgate
is disabled.
.It Cm meshmetric Ar protocol
Set the specified
.Ar protocol

View File

@ -1882,6 +1882,12 @@ DECL_CMD_FUNC(set80211meshforward, val, d)
set80211(s, IEEE80211_IOC_MESH_FWRD, d, 0, NULL);
}
static
DECL_CMD_FUNC(set80211meshgate, val, d)
{
set80211(s, IEEE80211_IOC_MESH_GATE, d, 0, NULL);
}
static
DECL_CMD_FUNC(set80211meshpeering, val, d)
{
@ -4832,6 +4838,12 @@ ieee80211_status(int s)
else
LINE_CHECK("-meshforward");
}
if (get80211val(s, IEEE80211_IOC_MESH_GATE, &val) != -1) {
if (val)
LINE_CHECK("meshgate");
else
LINE_CHECK("-meshgate");
}
if (get80211len(s, IEEE80211_IOC_MESH_PR_METRIC, data, 12,
&len) != -1) {
data[len] = '\0';
@ -5271,6 +5283,8 @@ static struct cmd ieee80211_cmds[] = {
DEF_CMD_ARG("meshttl", set80211meshttl),
DEF_CMD("meshforward", 1, set80211meshforward),
DEF_CMD("-meshforward", 0, set80211meshforward),
DEF_CMD("meshgate", 1, set80211meshgate),
DEF_CMD("-meshgate", 0, set80211meshgate),
DEF_CMD("meshpeering", 1, set80211meshpeering),
DEF_CMD("-meshpeering", 0, set80211meshpeering),
DEF_CMD_ARG("meshmetric", set80211meshmetric),