Skip to content

class "ip4_addr" has no member "u_addr" error in AsyncUDP if IPv6 is disabled #11553

Open
@axtar

Description

@axtar

Board

ESP32 custom

Device Description

custom device

Hardware Configuration

n/a

Version

v3.2.1

IDE Name

VS Code

Operating System

Windows 11

Flash frequency

40 MHz

PSRAM enabled

no

Upload speed

115200

Description

Build error

Sketch

#include "Arduino.h"

void setup() {
  Serial.begin(115200);
}

void loop() {
  Serial.println("Hello world!");
  delay(1000);
}

Debug Message

D:/esp/projects/Controller/managed_components/espressif__arduino-esp32/libraries/AsyncUDP/src/AsyncUDP.cpp:702:33: error: 'ip_addr_t' {aka 'struct ip4_addr'} has no member named 'u_addr'; did you mean 'addr'?
  702 |     ip4_addr_set_any(&bind_addr.u_addr.ip4);

Other Steps to Reproduce

Disable IPv6

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions