|
Zephyr API Documentation
2.7.0-rc2
A Scalable Open Source RTOS
|
Network hostname configuration library. More...
Macros | |
| #define | NET_HOSTNAME_MAX_LEN |
Functions | |
| static const char * | net_hostname_get (void) |
| Get the device hostname. More... | |
| static void | net_hostname_init (void) |
| Initialize and set the device hostname. More... | |
| static int | net_hostname_set_postfix (const uint8_t *hostname_postfix, int postfix_len) |
| Set the device hostname postfix. More... | |
Network hostname configuration library.
| #define NET_HOSTNAME_MAX_LEN |
#include <include/net/hostname.h>
|
inlinestatic |
#include <include/net/hostname.h>
Get the device hostname.
Return pointer to device hostname.
#include <include/net/hostname.h>
Initialize and set the device hostname.
|
inlinestatic |
#include <include/net/hostname.h>
Set the device hostname postfix.
Set the device hostname to some value. This is only used if CONFIG_NET_HOSTNAME_UNIQUE is set.
| hostname_postfix | Usually link address. The function will convert this to a string. |
| postfix_len | Length of the hostname_postfix array. |