2019-11-01 20:45:29 +08:00
|
|
|
# Hostname config
|
2017-09-22 04:30:32 +08:00
|
|
|
|
|
|
|
# Copyright (c) 2017 Intel Corporation.
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config NET_HOSTNAME_ENABLE
|
|
|
|
bool "Add hostname to the device"
|
|
|
|
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"
|
|
|
|
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
|
2019-02-19 21:12:37 +08:00
|
|
|
if this setting is enabled.
|
2017-09-22 04:30:32 +08:00
|
|
|
|
2018-07-06 16:35:07 +08:00
|
|
|
module = NET_HOSTNAME
|
|
|
|
module-dep = NET_LOG
|
|
|
|
module-str = Log level for hostname configuration
|
|
|
|
module-help = Enables hostname configuration code to output debug messages.
|
|
|
|
source "subsys/net/Kconfig.template.log_config.net"
|
2017-09-22 04:30:32 +08:00
|
|
|
|
|
|
|
endif
|