When I set the unsecureport, I can see the 'J' flag by scan command in other Node.
```
> scan
| J | Network Name | Extended PAN | PAN | MAC Address | Ch | dBm | LQI |
+---+------------------+------------------+------+------------------+----+-----+-----+
| 1 | OpenThread-6637 | 39ca6551ae5273d2 | 6637 | 6a9c3ee4332fc07d | 23 | -20 | 255 |
| 0 | OpenThread-25cd | 90d043d38ca241d3 | 25cd | 7230d5fbcb98a38c | 24 | -79 | 60 |
Done
```
The following code is about the 'J' flag, is it?
```
bool Mac::IsJoinable(void) const
{
uint8_t numUnsecurePorts;
Get<Ip6::Filter>().GetUnsecurePorts(numUnsecurePorts);
return (numUnsecurePorts != 0);
}
if (IsJoinable())
{
beaconPayload->SetJoiningPermitted();
}
else
{
beaconPayload->ClearJoiningPermitted();
}
```
Even if I don't set the
unsecureport, I can join the Thread network by NetworkKey or Commissioner, isn't it?
I want to know what is the scenario of unsecureport?
Can anybody help me? Thanks!