Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [threadx-dev] Technical support question?

Hi Snorri.

Yes, this is the right place for such questions. 

You will find the documentation for the DHCP client here: https://github.com/eclipse-threadx/rtos-docs/blob/80bd9fe9a33fa79257c75629be1b4438b84db7bc/rtos-docs/netx-duo/netx-duo-dns

I am no expert, but from what I understand, the name you give to the DHCP client instance seems to be used as the hostname. 

UINT nx_dhcp_create(
    NX_DHCP *dhcp_ptr,
    NX_IP *ip_ptr,
    CHAR *name_ptr);


Line 6784 in nxd_dhcp_client.c sets the proper option and the value for dhcp_ptr -> nx_dhcp_name comes from *name_ptr in the method above.

 _nx_dhcp_add_option_string(buffer, NX_DHCP_OPTION_HOST_NAME, name_length, (UCHAR *) dhcp_ptr -> nx_dhcp_name, &index);

Best,

Frédéric DESBIENS

Program Manager and Evangelist — Embedded, IoT, and Edge Computing | Eclipse Foundation

Mastodon: @fdesbiens@xxxxxxxxxxxxxxxxxxxxx




On Tue, 30 Apr 2024 at 12:04, Snorri Kristjánsson via threadx-dev <threadx-dev@xxxxxxxxxxx> wrote:
Hello devs,

Where can I ask a technical question?
Is this the correct place?

In short - I need to know how to set the hostname for a (DHCP enabled) device that is running the ThreadX - NetX DUO network stack.

--

Best regards,

Snorri


Snorri Kristjánsson

Software Developer Kvikna Medical +354 578 8400 kvikna.com

 

This electronic message and any attachment(s) may contain legally privileged or confidential information that is intended solely for the individual or organization to whom the email is addressed. If you have received this email in error, please immediately notify the sender and delete this message and any attachment(s) from your system. If you are not the intended recipient, any copying, review, dissemination, printing or any other action in relation to the content of this email is strictly prohibited and unlawful.
_______________________________________________
threadx-dev mailing list
threadx-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://accounts.eclipse.org

Back to the top