/Zephyr-latest/subsys/net/ |
D | hostname.c | 21 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 …]
|
D | Kconfig.hostname | 7 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 …]
|
D | CMakeLists.txt | 5 zephyr_library_sources_ifdef(CONFIG_NET_HOSTNAME_ENABLE hostname.c)
|
D | Kconfig | 25 source "subsys/net/Kconfig.hostname"
|
/Zephyr-latest/include/zephyr/logging/ |
D | log_backend_net.h | 55 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()
|
D | log_output.h | 92 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/ |
D | net_hostname.rst | 13 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
|
D | mqtt.rst | 152 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/ |
D | tftp-client.c | 37 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/ |
D | main.c | 110 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/ |
D | README.rst | 10 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/ |
D | CMakeLists.txt | 61 cmake_host_system_information(RESULT hostname QUERY HOSTNAME) 63 gen_str_definition(HOST_NAME ${hostname})
|
/Zephyr-latest/subsys/net/lib/mqtt/ |
D | mqtt_transport_socket_tls.c | 85 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/ |
D | cavstool_client.py | 152 if url.hostname: 153 HOST = url.hostname
|
D | remote-fw-service.py | 319 if url.hostname: 320 HOST = url.hostname
|
/Zephyr-latest/samples/net/dns_resolve/ |
D | README.rst | 5 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/ |
D | Kconfig | 24 string "Azure cloud IoT hub hostname"
|
D | README.rst | 49 - ``SAMPLE_CLOUD_AZURE_HOSTNAME`` - IoT hub hostname 84 CONFIG_SAMPLE_CLOUD_AZURE_HOSTNAME="<IoT hub hostname>"
|
/Zephyr-latest/subsys/logging/backends/ |
D | log_backend_net.c | 297 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/ |
D | Kconfig | 10 MQTT broker's hostname or IP address.
|
/Zephyr-latest/subsys/net/lib/dns/ |
D | llmnr_responder.c | 432 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()
|
D | mdns_responder.c | 517 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/ |
D | Kconfig | 14 Endpoint (hostname) of the AWS MQTT broker.
|
/Zephyr-latest/samples/net/secure_mqtt_sensor_actuator/src/ |
D | mqtt_client.c | 503 tls_config->hostname = TLS_SNI_HOSTNAME; in app_mqtt_init() 505 tls_config->hostname = NULL; in app_mqtt_init()
|
/Zephyr-latest/include/zephyr/net/ |
D | net_event.h | 434 char hostname[NET_HOSTNAME_SIZE]; member
|