/Zephyr-latest/subsys/net/ip/ |
D | Kconfig.ipv4 | 1 # IPv4 Options 7 bool "IPv4" 9 Enable IPv4 support. If this is enabled then the device is 10 able to send and receive IPv4 network packets. 15 int "Max number of IPv4 network interfaces in the system" 21 that will have IPv4 enabled. 24 int "Max number of unicast IPv4 addresses per network interface" 30 int "Max number of multicast IPv4 addresses per network interface" 35 int "The default netmask length for registered IPv4 addresses" 39 The default netmask length for the registered IPv4 addresses. [all …]
|
D | ipv4.h | 2 @brief IPv4 related functions 28 /* IPv4 Options */ 35 /* IPv4 Options Timestamp flags */ 120 * @brief Create IPv4 packet in provided net_pkt with option to set all the 124 * @param src Source IPv4 address 125 * @param dst Destination IPv4 address 163 * @brief Create IPv4 packet in provided net_pkt. 166 * @param src Source IPv4 address 167 * @param dst Destination IPv4 address 189 * @brief Finalize IPv4 packet. It should be called right before [all …]
|
D | net_if.c | 36 #include "ipv4.h" 99 struct net_if_ipv4 ipv4; member 422 /* By default IPv4 and IPv6 are enabled for a given network interface. in init_iface() 760 NET_DBG("IPv4 router %s %s", in iface_router_notify_deletion() 3426 int net_if_config_ipv4_get(struct net_if *iface, struct net_if_ipv4 **ipv4) in net_if_config_ipv4_get() argument 3437 if (iface->config.ip.ipv4) { in net_if_config_ipv4_get() 3438 if (ipv4) { in net_if_config_ipv4_get() 3439 *ipv4 = iface->config.ip.ipv4; in net_if_config_ipv4_get() 3452 iface->config.ip.ipv4 = &ipv4_addresses[i].ipv4; in net_if_config_ipv4_get() 3455 if (ipv4) { in net_if_config_ipv4_get() [all …]
|
/Zephyr-latest/subsys/net/lib/shell/ |
D | ipv4.c | 14 #include "../ip/ipv4.h" 21 struct net_if_ipv4 *ipv4 = iface->config.ip.ipv4; in ip_address_lifetime_cb() local 30 if (!ipv4) { in ip_address_lifetime_cb() 31 PR("No IPv4 config found for this interface.\n"); in ip_address_lifetime_cb() 37 ARRAY_FOR_EACH(ipv4->unicast, i) { in ip_address_lifetime_cb() 38 if (!ipv4->unicast[i].ipv4.is_used || in ip_address_lifetime_cb() 39 ipv4->unicast[i].ipv4.address.family != AF_INET) { in ip_address_lifetime_cb() 44 addrtype2str(ipv4->unicast[i].ipv4.addr_type), in ip_address_lifetime_cb() 45 addrstate2str(ipv4->unicast[i].ipv4.addr_state), in ip_address_lifetime_cb() 46 atomic_get(&ipv4->unicast[i].ipv4.atomic_ref), in ip_address_lifetime_cb() [all …]
|
/Zephyr-latest/samples/net/ipv4_autoconf/ |
D | README.rst | 1 .. zephyr:code-sample:: ipv4-autoconf 2 :name: IPv4 autoconf client 5 Perform IPv4 autoconfiguration and self-assign a random IPv4 address 10 This sample application starts a IPv4 autoconf and self-assigns 11 a random IPv4 address in the 169.254.0.0/16 range, it defends 12 the IPv4 address and resolves IPv4 conflicts if multiple 24 on a :zephyr:board:`frdm_k64f` board to configure a link local IPv4 address and 33 Assign a IPv4 link local address to the interface in the Linux system 53 Once IPv4 LL has completed probing and announcement, details are shown like this: 61 [ipv4ll] [INF] main: Run ipv4 autoconf client [all …]
|
D | sample.yaml | 8 description: Test IPv4 autoconf functionality 9 name: IPv4 autoconf sample app 20 - SNIPPET=wifi-ipv4
|
/Zephyr-latest/tests/net/ipv4_fragment/src/ |
D | main.c | 26 #include <ipv4.h> 41 /* IPv4 TCP packet header */ 43 /* IPv4 header */ 58 /* IPv4 UDP packet header */ 60 /* IPv4 header */ 72 /* IPv4 UDP Single fragment packet (with more fragment bit set) */ 74 /* IPv4 header */ 90 /* IPv4 ICMP fragment assembly time exceeded packet (in response to ipv4_udp_frag) */ 92 /* IPv4 Header */ 103 /* Original IPv4 packet data */ [all …]
|
/Zephyr-latest/include/zephyr/net/ |
D | ipv4_autoconf.h | 8 * @brief IPv4 Autoconfiguration 14 /** Current state of IPv4 Autoconfiguration */ 24 * @brief Start IPv4 autoconfiguration RFC 3927: IPv4 Link Local 26 * @details Start IPv4 IP autoconfiguration 42 * @details Reset IPv4 IP autoconfiguration 58 * @brief Initialize IPv4 auto configuration engine.
|
D | net_event.h | 80 /* IPv4 Events*/ 246 /** Event emitted when an IPv4 address is added to the system. */ 250 /** Event emitted when an IPv4 address is removed from the system. */ 254 /** Event emitted when an IPv4 multicast address is added to the system. */ 258 /** Event emitted when an IPv4 multicast address is removed from the system. */ 262 /** Event emitted when an IPv4 router is added to the system. */ 266 /** Event emitted when an IPv4 router is removed from the system. */ 270 /** Event emitted when an IPv4 DHCP client is started. */ 274 /** Event emitted when an IPv4 DHCP client address is bound. */ 278 /** Event emitted when an IPv4 DHCP client is stopped. */ [all …]
|
/Zephyr-latest/snippets/wifi-ipv4/ |
D | README.rst | 1 .. _snippet-wifi-ipv4: 3 Wi-Fi IPv4 Snippet (wifi-ipv4) 8 west build -S wifi-ipv4 [...] 13 This snippet enables IPv4 Wi-Fi support in supported networking samples.
|
/Zephyr-latest/subsys/mgmt/mcumgr/transport/src/ |
D | smp_udp.c | 37 BUILD_ASSERT(0, "Either IPv4 or IPv6 SMP must be enabled for the MCUmgr UDP SMP transport using " 61 struct config ipv4; member 84 return "IPv4"; in smp_udp_proto_to_name() 103 ret = zsock_sendto(smp_udp_configs.ipv4.sock, nb->data, nb->len, 0, addr, sizeof(*addr)); in smp_udp4_tx() 269 k_thread_join(&smp_udp_configs.ipv4.thread, K_NO_WAIT) == -EBUSY) { in smp_udp_open_iface() 270 k_sem_give(&smp_udp_configs.ipv4.network_ready_sem); in smp_udp_open_iface() 309 if (k_thread_join(&smp_udp_configs.ipv4.thread, K_NO_WAIT) == 0 || in smp_udp_open() 311 (void)k_sem_reset(&smp_udp_configs.ipv4.network_ready_sem); in smp_udp_open() 312 create_thread(&smp_udp_configs.ipv4, "smp_udp4"); in smp_udp_open() 315 LOG_ERR("IPv4 UDP MCUmgr thread is already running"); in smp_udp_open() [all …]
|
/Zephyr-latest/samples/net/ipv4_autoconf/src/ |
D | main.c | 46 if (cfg->ip.ipv4->unicast[i].ipv4.addr_type != NET_ADDR_AUTOCONF) { in handler() 52 &cfg->ip.ipv4->unicast[i].ipv4.address.in_addr, in handler() 56 &cfg->ip.ipv4->unicast[i].netmask, in handler() 63 LOG_INF("Run ipv4 autoconf client"); in main()
|
/Zephyr-latest/tests/boards/espressif/ethernet/src/ |
D | main.c | 37 (iface->config.ip.ipv4->unicast[0].ipv4.addr_type != NET_ADDR_DHCP)) { in ipv4_event() 44 net_addr_ntop(AF_INET, &iface->config.ip.ipv4->unicast[0].ipv4.address.in_addr, buf, in ipv4_event() 47 net_addr_ntop(AF_INET, &iface->config.ip.ipv4->unicast[0].netmask, buf, in ipv4_event() 50 net_addr_ntop(AF_INET, &iface->config.ip.ipv4->gw, buf, sizeof(buf))); in ipv4_event() 54 /* release processing of IPV4 event by test case */ in ipv4_event() 61 struct net_ipv4_hdr *ip_hdr = hdr->ipv4; in icmp_event() 81 LOG_INF("Waiting for IPV4 assign event..."); in ZTEST() 84 "IPV4 address assign event timeout"); in ZTEST() 135 /* reset semaphore that tracks IPV4 assign event */ in ethernet_setup()
|
/Zephyr-latest/samples/net/sockets/echo_async/ |
D | README.rst | 5 Implement an asynchronous IPv4/IPv6 TCP echo server using BSD sockets and poll() 11 asynchronous IPv4/IPv6 TCP echo server using a BSD Sockets compatible API 14 supporting both IPv4 and IPv6 with concurrent connections, limiting 37 After the sample starts, it expects connections at 192.0.2.1 (IPv4), or 42 $ telnet 192.0.2.1 4242 # use this for IPv4 55 The IPv4 Wi-Fi support can be enabled in the sample with 56 :ref:`Wi-Fi snippet <snippet-wifi-ipv4>`. 82 $ telnet 127.0.0.1 4242 # use this for IPv4
|
/Zephyr-latest/samples/net/virtual/ |
D | Kconfig | 14 string "My IPv4 address for second interface" 19 string "My IPv4 netmask for second interface" 31 string "My IPv4 address for third interface" 36 string "My IPv4 netmask for third interface"
|
/Zephyr-latest/samples/net/capture/ |
D | overlay-tunnel.conf | 8 # Use this for IPv6 over IPv4 12 # Use this for IPv4 over IPv4
|
/Zephyr-latest/doc/connectivity/networking/api/ |
D | net_config.rst | 36 the networking to be ready and available. If for example IPv4 address from 39 ":kconfig:option:`CONFIG_NET_CONFIG_NEED_IPV4`", "The network application needs IPv4 41 is initialized properly in order to use IPv4. 43 automatically enable IPv4." 57 ":kconfig:option:`CONFIG_NET_CONFIG_MY_IPV4_ADDR`","Local static IPv4 address assigned to 59 ":kconfig:option:`CONFIG_NET_CONFIG_MY_IPV4_NETMASK`","Static IPv4 netmask assigned to the IPv4 61 ":kconfig:option:`CONFIG_NET_CONFIG_MY_IPV4_GW`","Static IPv4 gateway address assigned to the 63 ":kconfig:option:`CONFIG_NET_CONFIG_PEER_IPV4_ADDR`","Peer static IPv4 address. This is mainly
|
/Zephyr-latest/tests/net/ip-addr/src/ |
D | main.c | 385 zassert_not_null(ifaddr, "IPv4 interface address add failed"); in ZTEST() 387 "My IPv4 address check failed"); in ZTEST() 392 zassert_not_null(ifaddr, "IPv4 interface address add failed"); in ZTEST() 394 "My IPv4 address check failed"); in ZTEST() 403 zassert_not_null(out, "IPv4 src addr selection failed, iface %p\n", in ZTEST() 406 DBG("Selected IPv4 address %s, iface %p\n", net_sprint_ipv4_addr(out), in ZTEST() 411 "IPv4 wrong src address selected, iface %p\n", iface); in ZTEST() 427 zassert_not_null(ifaddr, "IPv4 interface address add failed"); in ZTEST() 429 "My IPv4 address check failed"); in ZTEST() 434 zassert_not_null(ifaddr, "IPv4 interface address add failed"); in ZTEST() [all …]
|
/Zephyr-latest/samples/net/sockets/echo_server/ |
D | overlay-tunnel.conf | 12 # Use this for IPv6 over IPv4 15 # Use this for IPv4 over IPv4
|
/Zephyr-latest/tests/net/ipv4_fragment/ |
D | testcase.yaml | 10 - ipv4 14 net.ipv4.fragment: 17 net.ipv4.fragment.with_pmtu:
|
/Zephyr-latest/samples/net/mdns_responder/ |
D | Kconfig | 14 string "My IPv4 address for second interface" 19 string "My IPv4 netmask for second interface" 38 string "My IPv4 address for third interface" 43 string "My IPv4 netmask for third interface"
|
/Zephyr-latest/samples/net/vlan/ |
D | Kconfig | 14 string "My IPv4 address for second interface" 19 string "My IPv4 netmask for second interface" 38 string "My IPv4 address for third interface" 43 string "My IPv4 netmask for third interface"
|
/Zephyr-latest/tests/net/utils/src/ |
D | main.c | 42 } ipv4; member 55 .ipv4.c_addr = "192.0.0.1", 56 .ipv4.verify.s4_addr = { 192, 0, 0, 1 }, 62 .ipv4.c_addr = "192.1.0.0", 63 .ipv4.verify.s4_addr = { 192, 1, 0, 0 }, 69 .ipv4.c_addr = "192.0.0.0", 70 .ipv4.verify.s4_addr = { 192, 0, 0, 0 }, 76 .ipv4.c_addr = "255.255.255.255", 77 .ipv4.verify.s4_addr = { 255, 255, 255, 255 }, 83 .ipv4.c_addr = "0.0.0.0", [all …]
|
/Zephyr-latest/samples/net/dhcpv4_client/src/ |
D | main.c | 53 if (iface->config.ip.ipv4->unicast[i].ipv4.addr_type != in handler() 60 &iface->config.ip.ipv4->unicast[i].ipv4.address.in_addr, in handler() 64 &iface->config.ip.ipv4->unicast[i].netmask, in handler() 68 &iface->config.ip.ipv4->gw, in handler()
|
/Zephyr-latest/tests/net/virtual/ |
D | prj.conf | 21 # Use this for IPv6 over IPv4|6 24 # Use this for IPv4 over IPv4|6
|