patchlwIP - A Lightweight TCP/IP stack - Patches: patch #10265, dhcp: add support for MUD options...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

patch #10265: dhcp: add support for MUD options (RFC 8520)

Submitter:  Jan Romann <jkrhb>
Submitted:  Tue 12 Jul 2022 10:18:48 PM UTC
   
 
Category:  DHCP Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Planned Release:  None

Tue 12 Jul 2022 11:38:47 PM UTC, comment #1: 

original submission:

> As it is recommended that only one MUD URL is used per device, I used the same macro definition for inserting the URL into the respective functions for both DCHP and DHCPv6.


Small correction: RFC 8520 actually states in section 10.1 that "[i]n the case where both v4 and v6 DHCP options are emitted, the same URL MUST be used." Using the same macro therefore enforces this constraint.

Jan Romann <jkrhb>
Tue 12 Jul 2022 10:18:48 PM UTC, original submission:  

This PR introduces support for the Manufacturer Usage Description (MUD, RFC 8520) by integrating the option for DHCPv4 and DHCPv6. When activating the feature, a MUD URL options will be integrated into DHCP requests and DHCPv6 Info Requests, respectively.

As it is recommended that only one MUD URL is used per device, I used the same macro definition for inserting the URL into the respective functions for both DCHP and DHCPv6.

I was not entirely sure how to contribute a test case for the two options, if you have any suggestions in this regard, let me know!

Jan Romann <jkrhb>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attached Files
file #53424:  0001-dhcp-add-MUD-URL-option-ccode.patch added by jkrhb (834B - application/octet-stream)
file #53425:  0002-dhcp6-add-MUD-URL-option-code.patch added by jkrhb (761B - application/octet-stream)
file #53426:  0003-dhcp-add-MUD-URL-implementation.patch added by jkrhb (3KiB - application/octet-stream)
file #53427:  0004-dhcp6-add-MUD-URL-implementation.patch added by jkrhb (4KiB - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jkrhb (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-07-12 jkrhb Attached File- Added 0001-dhcp-add-MUD-URL-option-ccode.patch, #53424
        Attached File- Added 0002-dhcp6-add-MUD-URL-option-code.patch, #53425
        Attached File- Added 0003-dhcp-add-MUD-URL-implementation.patch, #53426
        Attached File- Added 0004-dhcp6-add-MUD-URL-implementation.patch, #53427

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code