[Feature Request] Support IPv6 Unique Local Address

Open
#1,293 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
c
Domain
networking

Research direction

Start from the IPv6_Type_t enum and the xIPv6_GetIPType() function that classifies addresses, which currently returns eIPv6_Unknown for fc00::/7. Then check pxEasyFit() to see how the address type affects packet matching. Done means ULA addresses get their own enum value and the code paths that switch on address type handle it. The issue says 'update all code' without listing the call sites, so you will need to find them yourself.

Written by the indexing model from the issue text.

Description

Is your feature request related to a problem? Please describe.

The IPv6 code does not support the ULA prefix fc00::/7, resulting in multiple things breaking when using these addresses.

Since IPv6_Type_t does not contain an enum value for ULA, these addresses are treated as eIPv6_Unknown as returned by xIPv6_GetIPType(). As a result, endpoints with a ULA address fail to match received packets by IP address, see pxEasyFit().

Describe the solution you'd like

Add an enum value to IPv6_Type_t for ULA addresses. Update all code that examines address types to include testing for this enum as appropriate.

Dominant language
C
Stars
215
Forks
222
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from FreeRTOS/FreeRTOS-Plus-TCP

All issues in FreeRTOS/FreeRTOS-Plus-TCP

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.