Home
last modified time | relevance | path

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

12

/Zephyr-latest/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()
59 if (net_addr_pton(AF_INET, netmask, &nm)) { in setup_iface()
60 LOG_ERR("Invalid netmask: %s", netmask); in setup_iface()
/Zephyr-latest/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-latest/samples/net/mdns_responder/src/
Dvlan.c43 const char *netmask, in setup_iface() argument
85 if (netmask && netmask[0]) { in setup_iface()
88 if (net_addr_pton(AF_INET, netmask, &nm)) { in setup_iface()
/Zephyr-latest/samples/net/sockets/echo_server/src/
Dvlan.c47 const char *netmask, uint16_t vlan_tag) in setup_iface() argument
88 if (netmask && netmask[0]) { in setup_iface()
91 if (net_addr_pton(AF_INET, netmask, &nm)) { in setup_iface()
/Zephyr-latest/samples/net/vlan/src/
Dmain.c41 const char *netmask, uint16_t vlan_tag) in setup_iface() argument
96 if (netmask && netmask[0]) { in setup_iface()
99 if (net_addr_pton(AF_INET, netmask, &nm)) { in setup_iface()
/Zephyr-latest/samples/boards/nxp/s32/netc/
DKconfig19 string "My IPv4 netmask for second interface"
22 Static netmask to use.
/Zephyr-latest/samples/net/vlan/
DKconfig19 string "My IPv4 netmask for second interface"
43 string "My IPv4 netmask for third interface"
61 Set the IPv6 address prefix length (netmask) for the interfaces
/Zephyr-latest/subsys/net/lib/shell/
Dipv4.c50 &ipv4->unicast[i].netmask)); in ip_address_lifetime_cb()
137 struct in_addr netmask; in cmd_net_ip_add() local
151 if (net_addr_pton(AF_INET, argv[3], &netmask)) { in cmd_net_ip_add()
156 net_if_ipv4_set_netmask_by_addr(iface, &addr, &netmask); in cmd_net_ip_add()
/Zephyr-latest/drivers/net/
Dloopback.c55 struct in_addr netmask = { { { 255, 0, 0, 0 } } }; in loopback_init() local
63 net_if_ipv4_set_netmask_by_addr(iface, &ipv4_loopback, &netmask); in loopback_init()
/Zephyr-latest/subsys/net/ip/
Dipv4_autoconf.c28 struct in_addr netmask = { { { 255, 255, 0, 0 } } }; in ipv4_autoconf_addr_set() local
52 &netmask); in ipv4_autoconf_addr_set()
Dnet_if.c3474 ipv4->unicast[i].netmask.s_addr; in net_if_ipv4_addr_mask_cmp()
3477 ipv4->unicast[i].netmask.s_addr) == subnet) { in net_if_ipv4_addr_mask_cmp()
3511 ~ipv4->unicast[i].netmask.s_addr; in ipv4_is_broadcast_address()
3605 ipv4->unicast[i].netmask.s_addr; in net_if_ipv4_get_best_match()
3857 struct in_addr netmask = { 0 }; in net_if_ipv4_get_netmask_by_addr() local
3879 ipv4->unicast[i].netmask.s_addr; in net_if_ipv4_get_netmask_by_addr()
3882 ipv4->unicast[i].netmask.s_addr) == subnet) { in net_if_ipv4_get_netmask_by_addr()
3883 netmask = ipv4->unicast[i].netmask; in net_if_ipv4_get_netmask_by_addr()
3891 return netmask; in net_if_ipv4_get_netmask_by_addr()
3896 const struct in_addr *netmask) in net_if_ipv4_set_netmask_by_addr() argument
[all …]
DKconfig.ipv435 int "The default netmask length for registered IPv4 addresses"
39 The default netmask length for the registered IPv4 addresses.
40 The application can set a custom netmask with
/Zephyr-latest/samples/net/mdns_responder/
DKconfig19 string "My IPv4 netmask for second interface"
43 string "My IPv4 netmask for third interface"
/Zephyr-latest/samples/net/ipv4_autoconf/src/
Dmain.c56 &cfg->ip.ipv4->unicast[i].netmask, in handler()
/Zephyr-latest/samples/net/dns_resolve/src/
Dmain.c173 struct in_addr netmask; in print_dhcpv4_addr() local
188 netmask = net_if_ipv4_get_netmask_by_addr(iface, in print_dhcpv4_addr()
191 net_addr_ntop(AF_INET, &netmask, hr_addr, NET_IPV4_ADDR_LEN)); in print_dhcpv4_addr()
/Zephyr-latest/samples/net/virtual/src/
Dmain.c229 const char *netmask) in setup_iface() argument
304 if (netmask) { in setup_iface()
307 if (net_addr_pton(AF_INET, netmask, &nm)) { in setup_iface()
308 LOG_ERR("Invalid netmask: %s", netmask); in setup_iface()
/Zephyr-latest/subsys/net/lib/config/
Dinit.c87 &iface->config.ip.ipv4->unicast[i].netmask, in print_dhcpv4_info()
147 struct in_addr addr, netmask; in setup_ipv4() local
190 &netmask)) { in setup_ipv4()
194 net_if_ipv4_set_netmask_by_addr(iface, &addr, &netmask); in setup_ipv4()
/Zephyr-latest/samples/net/dhcpv4_client/src/
Dmain.c64 &iface->config.ip.ipv4->unicast[i].netmask, in handler()
/Zephyr-latest/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-latest/samples/net/sockets/echo_server/
DKconfig26 string "My IPv4 netmask for second interface"
50 string "My IPv4 netmask for third interface"
/Zephyr-latest/tests/net/ip-addr/src/
Dmain.c381 struct in_addr netmask = { { { 255, 255, 0, 0 } } }; in ZTEST() local
389 net_if_ipv4_set_netmask_by_addr(default_iface, &lladdr4_1, &netmask); in ZTEST()
396 net_if_ipv4_set_netmask_by_addr(second_iface, &lladdr4_2, &netmask); in ZTEST()
478 struct in_addr netmask = { { { 255, 255, 255, 0 } } }; in ZTEST() local
499 net_if_ipv4_set_netmask_by_addr(default_iface, &addr4, &netmask); in ZTEST()
/Zephyr-latest/tests/boards/espressif/ethernet/src/
Dmain.c47 net_addr_ntop(AF_INET, &iface->config.ip.ipv4->unicast[0].netmask, buf, in ipv4_event()
/Zephyr-latest/tests/net/dhcpv4/server/src/
Dmain.c25 static struct in_addr netmask = { { { 255, 255, 255, 0 } } }; variable
70 (void)net_if_ipv4_set_netmask_by_addr(iface, &server_addr, &netmask); in server_iface_init()
572 verify_option(pkt, DHCPV4_OPTIONS_SUBNET_MASK, netmask.s4_addr, in verify_offer()
764 verify_option(pkt, DHCPV4_OPTIONS_SUBNET_MASK, netmask.s4_addr, in verify_ack()
/Zephyr-latest/subsys/net/lib/dhcpv4/
Ddhcpv4_server.c68 struct in_addr netmask; member
512 buf, buflen, &ctx->netmask); in dhcpv4_encode_requested_params()
1548 struct in_addr netmask; in net_dhcpv4_server_start() local
1572 netmask = net_if_ipv4_get_netmask_by_addr(iface, server_addr); in net_dhcpv4_server_start()
1573 if (net_ipv4_is_addr_unspecified(&netmask)) { in net_dhcpv4_server_start()
1635 server_ctx[slot].netmask = netmask; in net_dhcpv4_server_start()
/Zephyr-latest/include/zephyr/net/
Dnet_if.h455 struct in_addr netmask; member
510 struct in_addr netmask; member
2607 const struct in_addr *netmask);
2620 const struct in_addr *netmask);
2633 const struct in_addr *netmask);
2646 const struct in_addr *netmask);

12