Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

net: ip: Introduce mesh_local flag #12731

Merged
merged 2 commits into from
Jan 29, 2019

Commits on Jan 28, 2019

  1. net: ip: Introduce mesh_local address flag

    This commit introduces a concept of mesh-local IPv6 addresses. Such
    addresses should only be used for mesh-local communication, therefore
    should not be used to communicate with different subnets (i. e.
    destinations outside the mesh).
    
    As `addr_type` field already holds different kind of information
    (whether address was created automatically/manually) it was not used in
    this case.
    
    Instead a mesh_local flag was added, so that we do not lose information
    on how address was created. Address with such flag set will only be
    selected as a source address automatically if the destination address
    is within the same subnet it belongs to.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    24955db View commit details
    Browse the repository at this point in the history
  2. net: openthread: Set mesh_local flag in mesh-local OT addresses

    Mark automatically and statically configured mesh-local addresses
    with mesh_local flag, so that they are not used as a source for
    off-mesh destinations.
    
    Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
    rlubos committed Jan 28, 2019
    Configuration menu
    Copy the full SHA
    d79034a View commit details
    Browse the repository at this point in the history