2017-09-22 04:30:32 +08:00
|
|
|
# Kconfig - Hostname config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Copyright (c) 2017 Intel Corporation.
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
#
|
|
|
|
|
|
|
|
config NET_HOSTNAME_ENABLE
|
|
|
|
bool "Add hostname to the device"
|
|
|
|
default n
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This is used for example in mDNS to respond to <hostname>.local
|
|
|
|
mDNS queries.
|
2017-09-22 04:30:32 +08:00
|
|
|
|
|
|
|
if NET_HOSTNAME_ENABLE
|
|
|
|
|
|
|
|
config NET_HOSTNAME
|
|
|
|
string "The hostname of this device"
|
|
|
|
default "zephyr"
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
The string should be a valid hostname.
|
2017-09-22 04:30:32 +08:00
|
|
|
|
|
|
|
config NET_HOSTNAME_UNIQUE
|
|
|
|
bool "Make hostname unique"
|
|
|
|
default n
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
This will append link address to hostname to create a unique
|
|
|
|
hostname. For example, zephyr00005e005357 could be the hostname
|
|
|
|
if this setting is enabled.
|
2017-09-22 04:30:32 +08:00
|
|
|
|
|
|
|
config NET_DEBUG_HOSTNAME
|
|
|
|
bool "Debug hostname configuration"
|
|
|
|
default n
|
|
|
|
depends on NET_LOG
|
|
|
|
help
|
2018-02-15 21:36:16 +08:00
|
|
|
Enables hostname configuration functions to output debug messages
|
2017-09-22 04:30:32 +08:00
|
|
|
|
|
|
|
endif
|