Home
last modified time | relevance | path

Searched refs:hostname (Results 1 – 25 of 51) sorted by relevance

123

/Zephyr-latest/subsys/net/
Dhostname.c21 static char hostname[NET_HOSTNAME_SIZE]; variable
28 memcpy(info.hostname, hostname, sizeof(hostname)); in trigger_net_event()
36 log_backend_net_hostname_set(hostname, sizeof(hostname)); in trigger_net_event()
42 return hostname; in net_hostname_get()
52 memcpy(hostname, host, len); in net_hostname_set()
53 hostname[len] = 0; in net_hostname_set()
55 NET_DBG("New hostname %s", hostname); in net_hostname_set()
87 snprintk(&hostname[sizeof(CONFIG_NET_HOSTNAME) - 1 + pos], 2 + 1, "%02x", in net_hostname_set_postfix()
91 NET_DBG("New hostname %s", hostname); in net_hostname_set_postfix()
124 snprintk(&hostname[net_hostname_len], hostname_len_remain, "%s", hostname_postfix); in net_hostname_set_postfix_str()
[all …]
DKconfig.hostname7 bool "Add hostname to the device"
9 This is used for example in mDNS to respond to <hostname>.local
15 string "The hostname of this device"
18 The string should be a valid hostname.
21 bool "Allow the hostname to be set by the application"
25 will be used as default hostname.
28 int "The maximum allowed hostname length"
33 This will set the number of bytes allocateed for the hostname.
36 bool "Make hostname unique"
39 hostname. For example, zephyr00005e005357 could be the hostname
[all …]
DCMakeLists.txt5 zephyr_library_sources_ifdef(CONFIG_NET_HOSTNAME_ENABLE hostname.c)
DKconfig25 source "subsys/net/Kconfig.hostname"
/Zephyr-latest/include/zephyr/logging/
Dlog_backend_net.h55 void log_backend_net_hostname_set(char *hostname, size_t len);
57 static inline void log_backend_net_hostname_set(const char *hostname, size_t len) in log_backend_net_hostname_set() argument
59 ARG_UNUSED(hostname); in log_backend_net_hostname_set()
Dlog_output.h92 const char *hostname; member
239 const char *hostname) in log_output_hostname_set() argument
241 output->control_block->hostname = hostname; in log_output_hostname_set()
/Zephyr-latest/doc/connectivity/networking/api/
Dnet_hostname.rst13 A networked device might need a hostname, for example, if the device
15 details) and needs to respond to ``<hostname>.local`` DNS queries.
18 to store the hostname and enable the relevant APIs. If the option is enabled,
19 then the default hostname is set to be ``zephyr`` by
23 practical to use the same hostname in all of the boards. In that case, one
25 postfix to the hostname. By default the link local address of the first network
28 ``01:02:03:04:05:06``, then the unique hostname could be
Dmqtt.rst152 tls_config->hostname = MQTT_BROKER_HOSTNAME;
157 We set ``hostname`` field to broker hostname, which is required for server
/Zephyr-latest/samples/net/tftp_client/src/
Dtftp-client.c37 static int tftp_init(const char *hostname) in tftp_init() argument
46 ret = getaddrinfo(hostname, CONFIG_TFTP_APP_PORT, &hints, &res); in tftp_init()
/Zephyr-latest/tests/net/hostname/src/
Dmain.c110 if (strncmp(net_hostname_get(), info->hostname, sizeof(info->hostname))) { in hostname_changed()
355 const char *hostname; in ZTEST() local
358 hostname = net_hostname_get(); in ZTEST()
360 zassert_mem_equal(hostname, config_hostname, in ZTEST()
368 hostname + sizeof(CONFIG_NET_HOSTNAME) - 1); in ZTEST()
/Zephyr-latest/samples/net/mdns_responder/
DREADME.rst10 This application will wait mDNS queries for a pre-defined hostname and
11 respond to them. The default hostname is **zephyr** and it is set in the
73 hostname = [zephyr.local]
/Zephyr-latest/subsys/bindesc/
DCMakeLists.txt61 cmake_host_system_information(RESULT hostname QUERY HOSTNAME)
63 gen_str_definition(HOST_NAME ${hostname})
/Zephyr-latest/subsys/net/lib/mqtt/
Dmqtt_transport_socket_tls.c85 if (tls_config->hostname) { in mqtt_client_tls_connect()
87 TLS_HOSTNAME, tls_config->hostname, in mqtt_client_tls_connect()
88 strlen(tls_config->hostname) + 1); in mqtt_client_tls_connect()
/Zephyr-latest/soc/intel/intel_adsp/tools/
Dcavstool_client.py152 if url.hostname:
153 HOST = url.hostname
Dremote-fw-service.py319 if url.hostname:
320 HOST = url.hostname
/Zephyr-latest/samples/net/dns_resolve/
DREADME.rst5 Resolve an IP address for a given hostname.
124 A Zephyr host needs a hostname assigned to it so that it can respond to a DNS
125 query. Note that the hostname should not have any dots in it.
/Zephyr-latest/samples/net/cloud/mqtt_azure/
DKconfig24 string "Azure cloud IoT hub hostname"
DREADME.rst49 - ``SAMPLE_CLOUD_AZURE_HOSTNAME`` - IoT hub hostname
84 CONFIG_SAMPLE_CLOUD_AZURE_HOSTNAME="<IoT hub hostname>"
/Zephyr-latest/subsys/logging/backends/
Dlog_backend_net.c297 void log_backend_net_hostname_set(char *hostname, size_t len) in log_backend_net_hostname_set() argument
299 (void)strncpy(dev_hostname, hostname, MIN(len, MAX_HOSTNAME_LEN)); in log_backend_net_hostname_set()
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/
DKconfig10 MQTT broker's hostname or IP address.
/Zephyr-latest/subsys/net/lib/dns/
Dllmnr_responder.c432 const char *hostname = net_hostname_get(); in dns_read() local
433 int hostname_len = strlen(hostname); in dns_read()
492 if (!strncasecmp(hostname, result->data + 1, hostname_len) && in dns_read()
495 hostname); in dns_read()
Dmdns_responder.c517 const char *hostname = net_hostname_get(); in dns_read() local
518 int hostname_len = strlen(hostname); in dns_read()
581 if (!strncasecmp(hostname, result->data + 1, hostname_len) && in dns_read()
585 hostname); in dns_read()
/Zephyr-latest/samples/net/cloud/aws_iot_mqtt/
DKconfig14 Endpoint (hostname) of the AWS MQTT broker.
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/
Dmqtt_client.c503 tls_config->hostname = TLS_SNI_HOSTNAME; in app_mqtt_init()
505 tls_config->hostname = NULL; in app_mqtt_init()
/Zephyr-latest/include/zephyr/net/
Dnet_event.h434 char hostname[NET_HOSTNAME_SIZE]; member

123