Zephyr Project API 3.7.0
A Scalable Open Source RTOS
|
Network hostname configuration library. More...
Macros | |
#define | NET_HOSTNAME_MAX_LEN |
Maximum hostname length. | |
Functions | |
static const char * | net_hostname_get (void) |
Get the device hostname. | |
static int | net_hostname_set (char *host, size_t len) |
Set the device hostname. | |
static void | net_hostname_init (void) |
Initialize and set the device hostname. | |
static int | net_hostname_set_postfix (const uint8_t *hostname_postfix, int postfix_len) |
Set the device hostname postfix. | |
Network hostname configuration library.
#define NET_HOSTNAME_MAX_LEN |
#include <include/zephyr/net/hostname.h>
Maximum hostname length.
|
inlinestatic |
#include <include/zephyr/net/hostname.h>
Get the device hostname.
Return pointer to device hostname.
|
inlinestatic |
#include <include/zephyr/net/hostname.h>
Initialize and set the device hostname.
|
inlinestatic |
#include <include/zephyr/net/hostname.h>
Set the device hostname.
host | new hostname as char array. |
len | Length of the hostname array. |
|
inlinestatic |
#include <include/zephyr/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. |