Skip to content

Add stateless auto configuration for IPv4 #9877

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

greezybacon
Copy link
Contributor

@greezybacon greezybacon commented Nov 8, 2022

Auto IP configuration is a method of picking a random IP address in the 169.254.0.0/16 subnet. It is analogous to the IPv6 stateless autoconfiguration on link-local and other interfaces.

I might be the only one who would like this sort of thing, but I'm looking to implement a setup with lots of the devices on the network and do not want to use a DHCP server and also do not care what address will be used by the devices because they will connect to a server on the local, layer-2 network with a well known address (like, e.g. 169.254.0.1/16).

Currently only implemented for the LWIP software IP stack.

@greezybacon greezybacon force-pushed the feature/auto-ip-config branch from 081103a to ea3b79d Compare November 8, 2022 00:24
@greezybacon greezybacon force-pushed the feature/auto-ip-config branch from ea3b79d to e96fee8 Compare October 21, 2024 19:09
Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.44%. Comparing base (c72a3e5) to head (ff08f0f).
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #9877   +/-   ##
=======================================
  Coverage   98.44%   98.44%           
=======================================
  Files         171      171           
  Lines       22208    22208           
=======================================
  Hits        21863    21863           
  Misses        345      345           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

github-actions bot commented Oct 21, 2024

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@greezybacon greezybacon mentioned this pull request May 19, 2025
5 tasks
@greezybacon greezybacon force-pushed the feature/auto-ip-config branch from e96fee8 to af77503 Compare July 18, 2025 12:55
Auto IP configuration is a method of picking a random IP address in the
169.254.0.0/16 subnet. It is analogous to the IPv6 stateless
autoconfiguration on link-local interfaces.

It's actually recommended by LwIP for use with mDNS and is useful for
networks where devices should be configured without a DHCP server and
then discovered by name via mDNS.

Currently only implemented for the LWIP software IP stack.

Signed-off-by: Jared Hancock <jared.hancock@centeredsolutions.com>
@greezybacon greezybacon force-pushed the feature/auto-ip-config branch from af77503 to ff08f0f Compare July 18, 2025 13:28
@andrewleech
Copy link
Contributor

This does look useful, and the changes look good to me. The docs might want to mention it's only available if enabled at compile time, and perhaps it could be enabled by default on larger ROM feature builds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy