Home
last modified time | relevance | path

Searched refs:netmask (Results 1 – 25 of 31) sorted by relevance

12

/Zephyr-Core-3.6.0/samples/boards/nxp_s32/netc/src/
Dmain.c21 const char *ipv4_addr, const char *netmask) in setup_iface() argument
56 if (netmask && netmask[0]) { in setup_iface()
57 if (net_addr_pton(AF_INET, netmask, &addr4)) { in setup_iface()
58 LOG_ERR("Invalid netmask: %s", netmask); in setup_iface()
/Zephyr-Core-3.6.0/samples/net/mdns_responder/src/
Dvlan.c46 const char *ipv4_addr, const char *netmask, in setup_iface() argument
88 if (netmask && netmask[0]) { in setup_iface()
89 if (net_addr_pton(AF_INET, netmask, &addr4)) { in setup_iface()
/Zephyr-Core-3.6.0/samples/net/sockets/echo_server/src/
Dvlan.c46 const char *ipv4_addr, const char *netmask, in setup_iface() argument
88 if (netmask && netmask[0]) { in setup_iface()
89 if (net_addr_pton(AF_INET, netmask, &addr4)) { in setup_iface()
/Zephyr-Core-3.6.0/samples/net/virtual/
DKconfig19 string "My IPv4 netmask for second interface"
22 Static netmask to use if not overridden by DHCP. Use empty value to
36 string "My IPv4 netmask for third interface"
39 Static netmask to use if not overridden by DHCP. Use empty value to
/Zephyr-Core-3.6.0/samples/boards/nxp_s32/netc/
DKconfig19 string "My IPv4 netmask for second interface"
22 Static netmask to use.
/Zephyr-Core-3.6.0/drivers/net/
Dloopback.c45 struct in_addr netmask = { { { 255, 0, 0, 0 } } }; in loopback_init() local
53 net_if_ipv4_set_netmask(iface, &netmask); in loopback_init()
/Zephyr-Core-3.6.0/samples/net/mdns_responder/
DKconfig19 string "My IPv4 netmask for second interface"
43 string "My IPv4 netmask for third interface"
/Zephyr-Core-3.6.0/samples/net/virtual/src/
Dmain.c229 const char *netmask) in setup_iface() argument
304 if (netmask) { in setup_iface()
305 if (net_addr_pton(AF_INET, netmask, &addr4)) { in setup_iface()
306 LOG_ERR("Invalid netmask: %s", netmask); in setup_iface()
/Zephyr-Core-3.6.0/samples/net/sockets/echo_server/
DKconfig26 string "My IPv4 netmask for second interface"
50 string "My IPv4 netmask for third interface"
/Zephyr-Core-3.6.0/samples/net/dhcpv4_client/src/
Dmain.c64 &iface->config.ip.ipv4->netmask, in handler()
/Zephyr-Core-3.6.0/samples/net/dhcpv4_client/
DREADME.rst11 DHCPv4 server, and prints address, lease time, netmask and router
40 subnet 192.0.2.0 netmask 255.255.255.0 {
110 subnet 192.0.2.0 netmask 255.255.255.0 {
/Zephyr-Core-3.6.0/samples/net/capture/
DREADME.rst56 inet 192.0.2.2 netmask 255.255.255.255 broadcast 0.0.0.0
83 inet 198.51.100.2 netmask 255.255.255.0 destination 198.51.100.2
92 inet 203.0.113.2 netmask 255.255.255.0 destination 203.0.113.2
141 IPv4 netmask : 255.255.255.0
/Zephyr-Core-3.6.0/samples/net/telnet/src/
Dtelnet.c50 &iface->config.ip.ipv4->netmask, in ipv4_addr_add_handler()
/Zephyr-Core-3.6.0/subsys/net/ip/
Dipv4_autoconf.c166 struct in_addr netmask = { { { 255, 255, 0, 0 } } }; in ipv4_autoconf_addr_set() local
185 net_if_ipv4_set_netmask(ipv4auto->iface, &netmask); in ipv4_autoconf_addr_set()
Dnet_if.c3283 subnet = UNALIGNED_GET(&addr->s_addr) & ipv4->netmask.s_addr; in net_if_ipv4_addr_mask_cmp()
3292 ipv4->netmask.s_addr) == subnet) { in net_if_ipv4_addr_mask_cmp()
3323 if ((UNALIGNED_GET(&addr->s_addr) & ~ipv4->netmask.s_addr) == in ipv4_is_broadcast_address()
3324 ~ipv4->netmask.s_addr) { in ipv4_is_broadcast_address()
3626 struct in_addr netmask = { 0 }; in net_if_ipv4_get_netmask() local
3638 netmask = iface->config.ip.ipv4->netmask; in net_if_ipv4_get_netmask()
3642 return netmask; in net_if_ipv4_get_netmask()
3646 const struct in_addr *netmask) in net_if_ipv4_set_netmask() argument
3658 net_ipaddr_copy(&iface->config.ip.ipv4->netmask, netmask); in net_if_ipv4_set_netmask()
3664 const struct in_addr *netmask) in z_impl_net_if_ipv4_set_netmask_by_index() argument
[all …]
/Zephyr-Core-3.6.0/subsys/net/lib/shell/
Dipv4.c50 &ipv4->netmask)); in ip_address_lifetime_cb()
/Zephyr-Core-3.6.0/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c64 struct in_addr netmask; member
450 buf, buflen, &ctx->netmask); in dhcpv4_encode_requested_params()
1415 struct in_addr netmask; in net_dhcpv4_server_start() local
1439 netmask = net_if_ipv4_get_netmask(iface); in net_dhcpv4_server_start()
1440 if (net_ipv4_is_addr_unspecified(&netmask)) { in net_dhcpv4_server_start()
1502 server_ctx[slot].netmask = netmask; in net_dhcpv4_server_start()
Ddhcpv4.c729 struct in_addr netmask; in dhcpv4_parse_options() local
736 if (net_pkt_read(pkt, netmask.s4_addr, length)) { in dhcpv4_parse_options()
741 net_if_ipv4_set_netmask(iface, &netmask); in dhcpv4_parse_options()
743 net_sprint_ipv4_addr(&netmask)); in dhcpv4_parse_options()
/Zephyr-Core-3.6.0/tests/net/dhcpv4/server/src/
Dmain.c25 static struct in_addr netmask = { { { 255, 255, 255, 0 } } }; variable
70 (void)net_if_ipv4_set_netmask(iface, &netmask); in server_iface_init()
566 verify_option(pkt, DHCPV4_OPTIONS_SUBNET_MASK, netmask.s4_addr, in verify_offer()
753 verify_option(pkt, DHCPV4_OPTIONS_SUBNET_MASK, netmask.s4_addr, in verify_ack()
/Zephyr-Core-3.6.0/samples/net/dns_resolve/src/
Dmain.c186 &iface->config.ip.ipv4->netmask, in print_dhcpv4_addr()
/Zephyr-Core-3.6.0/tests/net/ip-addr/src/
Dmain.c386 struct in_addr netmask = { { { 255, 255, 255, 0 } } }; in ZTEST() local
474 net_if_ipv4_set_netmask(iface, &netmask); in ZTEST()
/Zephyr-Core-3.6.0/subsys/net/lib/config/
DKconfig105 string "My IPv4 netmask"
108 Static netmask to use if not overridden by DHCP. Use empty value to
/Zephyr-Core-3.6.0/subsys/net/lib/capture/
Dcapture.c217 struct in_addr netmask = { { { 255, 255, 255, 255 } } }; in setup_iface() local
233 net_if_ipv4_set_netmask(iface, &netmask); in setup_iface()
/Zephyr-Core-3.6.0/tests/net/arp/src/
Dmain.c342 struct in_addr netmask = { { { 255, 255, 255, 0 } } }; in ZTEST() local
350 net_if_ipv4_set_netmask(iface, &netmask); in ZTEST()
/Zephyr-Core-3.6.0/tests/net/virtual/src/
Dmain.c793 struct in_addr netmask = {{{ 255, 255, 255, 0 }}}; in ZTEST() local
821 net_if_ipv4_set_netmask(iface, &netmask); in ZTEST()
822 net_if_ipv4_set_netmask(eth_interfaces[0], &netmask); in ZTEST()

12