-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
CYW43: Allow setting hostname. #8918
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8918 +/- ##
==========================================
+ Coverage 98.33% 98.35% +0.01%
==========================================
Files 157 156 -1
Lines 20346 20229 -117
==========================================
- Hits 20008 19896 -112
+ Misses 338 333 -5
Continue to review full report at Codecov.
|
dc35a50
to
a89edc6
Compare
How did you test this change? The call to It might be worth adding a call to
I think 256 is overkill. I'd suggest to make a new define and default to something like 16. |
The idea was to support |
On esp32 you need to run
The hostname is not used (at least by DHCP) until you run We need to settle on a standard for the order of configuring a NIC. Probably it makes sense to configure before activating (eg for ETH it would, because activating means starting up the ETH interface, there is no separate connect call). But, actually, I think this PR will still work running config after active, because |
I agree, that's just the logical order, and I think it's the other port that should match this. Where should the default hostname (i.e PYBD) and default hostname length (16) be defined ? |
* Allow boards to configure/override the default hostname used for netif and mDNS.
a89edc6
to
fe2033d
Compare
fe2033d
to
52810f6
Compare
@dpgeorge Why does |
@iabdalkader: |
@robert-hh I'm not really sure, @dpgeorge added in some last minute changes when merging this PR. I see some errors with |
If I compare that to your initial commit, the |
I tested with |
That works, and indeed it does not use lib/cyw43. People expected support for Pico_W as well. Damien changed the code such that it compiles at least on the rp2, but only when using the lib version. To make it conformant, lib/cyw43 had to be changed in having the hostname field in the cyw43_t as well, and the related #define symbols. Or hostname has to move into a different data structure. |
Note there are other config options that get disabled as well with that define (like |
Hey, are there any updates on this? |
It should be available in the nightly builds. |
@CubicDE @robert-hh In the nightly build for Pico W, in progress (planned for upcoming v1.20) for PYBD/Portenta. |
DNS_MAX_NAME_LENGTH
which is 256 bytes, but it can be redefined.