Searched refs:bcaddr (Results 1 – 3 of 3) sorted by relevance
/Zephyr-latest/subsys/net/lib/mqtt_sn/ |
D | mqtt_sn_transport_udp.c | 52 udp->sock = zsock_socket(udp->bcaddr.sa_family, SOCK_DGRAM, 0); in tp_udp_init() 69 out = get_ip_str((struct sockaddr *)&udp->bcaddr, ip, sizeof(ip)); in tp_udp_init() 70 switch (udp->bcaddr.sa_family) { in tp_udp_init() 72 port = ntohs(((struct sockaddr_in *)&udp->bcaddr)->sin_port); in tp_udp_init() 75 port = ntohs(((struct sockaddr_in6 *)&udp->bcaddr)->sin6_port); in tp_udp_init() 86 switch (udp->bcaddr.sa_family) { in tp_udp_init() 91 ((struct sockaddr_in *)&udp->bcaddr)->sin_port; in tp_udp_init() 99 ((struct sockaddr_in6 *)&udp->bcaddr)->sin6_port; in tp_udp_init() 115 memcpy(&mreqn.imr_multiaddr, &udp->bcaddr.data[2], sizeof(udp->bcaddr.data) - 2); in tp_udp_init() 116 if (udp->bcaddr.sa_family == AF_INET && IS_ENABLED(CONFIG_NET_IPV4)) { in tp_udp_init() [all …]
|
/Zephyr-latest/samples/net/mqtt_sn_publisher/src/ |
D | udp.c | 129 struct sockaddr_in bcaddr = {0}; in process_thread() local 132 bcaddr.sin_family = AF_INET; in process_thread() 133 bcaddr.sin_port = htons(CONFIG_NET_SAMPLE_MQTT_SN_BROADCAST_PORT); in process_thread() 134 err = inet_pton(AF_INET, CONFIG_NET_SAMPLE_MQTT_SN_BROADCAST_IP, &bcaddr.sin_addr); in process_thread() 138 LOG_HEXDUMP_DBG(&bcaddr, sizeof(bcaddr), " broadcast address"); in process_thread() 140 err = mqtt_sn_transport_udp_init(&tp, (struct sockaddr *)&bcaddr, sizeof((bcaddr))); in process_thread() 157 struct mqtt_sn_data gwaddr_data = {.data = (uint8_t *)&bcaddr, in process_thread()
|
/Zephyr-latest/include/zephyr/net/ |
D | mqtt_sn.h | 233 struct sockaddr bcaddr; member
|