Skip to content

DHCPv6 client: Handling of NotOnLink incorrect #20349

@maribu

Description

@maribu

Description

From: https://www.rfc-editor.org/rfc/rfc3315#section-18.1.8

When the client receives a NotOnLink status from the server in
response to a Request, the client can either re-issue the Request
without specifying any addresses or restart the DHCP server discovery
process (see section 17).

This behavior however is not implemented.

Steps to reproduce the issue

Connect an OpenWrt router to a FritzBox and enable prefix delegation on both the FritzBox and the OpenWrt box. The OpenWrt will get /57 prefix delegated. Then, flash the gnrc_boarder_router example with UPLINK=wifi and SSID and password of the OpenWrt box.

Expected results

The ESP32 will get a prefix from the OpenWrt box.

Actual results

2024-02-07 12:12:44,243 # WiFi connected to ssid Loeffelnetz, channel 1
2024-02-07 12:12:48,108 # DHCPv6 client: resend SOLICIT
2024-02-07 12:12:48,121 # DHCPv6 client: received ADVERTISE
2024-02-07 12:12:48,122 # DHCPv6 client: scheduling REQUEST
2024-02-07 12:12:48,122 # DHCPv6 client: send REQUEST
2024-02-07 12:12:48,160 # DHCPv6 client: received REPLY
2024-02-07 12:12:48,161 # DHCPv6 client: server returned error (4) "��Py�?"
> ifconfig
2024-02-07 12:25:36,187 #      L2-PDU:249  MTU:1280  HL:64  RTR  
2024-02-07 12:25:36,187 #           6LO  Source address length: 6
2024-02-07 12:25:36,187 #           Link type: wireless
2024-02-07 12:25:36,187 #           inet6 addr: fe80::a6cf:12ff:fe44:e815  scope: link  VAL
2024-02-07 12:25:36,188 #           inet6 group: ff02::2
2024-02-07 12:25:36,188 #           inet6 group: ff02::1
2024-02-07 12:25:36,208 #           inet6 group: ff02::1:ff44:e815
2024-02-07 12:25:36,209 #           
2024-02-07 12:25:36,209 # Iface  10  HWaddr: A4:CF:12:44:E8:14  Channel: 1  Link: up 
2024-02-07 12:25:36,209 #           L2-PDU:1500  MTU:1492  HL:64  RTR  
2024-02-07 12:25:36,209 #           Source address length: 6
2024-02-07 12:25:36,210 #           Link type: wireless
2024-02-07 12:25:36,227 #           inet6 addr: fe80::a6cf:12ff:fe44:e814  scope: link  VAL
2024-02-07 12:25:36,227 #           inet6 addr: 2a01:c23:654d:3d80:a6cf:12ff:fe44:e814  scope: global  VAL
2024-02-07 12:25:36,228 #           inet6 group: ff02::2
2024-02-07 12:25:36,228 #           inet6 group: ff02::1
2024-02-07 12:25:36,228 #           inet6 group: ff02::1:ff44:e814

Versions

2024.01-branch and current master

Metadata

Metadata

Labels

Area: networkArea: NetworkingType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions