11#ifndef ZEPHYR_INCLUDE_NET_HOSTNAME_H_
12#define ZEPHYR_INCLUDE_NET_HOSTNAME_H_
25#define NET_HOSTNAME_MAX_LEN \
26 (sizeof(CONFIG_NET_HOSTNAME) - 1 + \
27 (IS_ENABLED(CONFIG_NET_HOSTNAME_UNIQUE) ? \
28 sizeof("0011223344556677") - 1 : 0))
37#if defined(CONFIG_NET_HOSTNAME_ENABLE)
50#if defined(CONFIG_NET_HOSTNAME_ENABLE)
70#if defined(CONFIG_NET_HOSTNAME_UNIQUE)
static int net_hostname_set_postfix(const uint8_t *hostname_postfix, int postfix_len)
Set the device hostname postfix.
Definition: hostname.h:74
static const char * net_hostname_get(void)
Get the device hostname.
Definition: hostname.h:40
static void net_hostname_init(void)
Initialize and set the device hostname.
Definition: hostname.h:53
#define EMSGSIZE
Definition: errno.h:107
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58