Home
last modified time | relevance | path

Searched refs:maddr (Results 1 – 16 of 16) sorted by relevance

/Zephyr-latest/subsys/net/ip/
Digmp.c586 struct net_if_mcast_addr *maddr; local
597 maddr = net_if_ipv4_maddr_lookup(addr, &iface);
598 if (maddr && net_if_ipv4_maddr_is_joined(maddr)) {
602 if (!maddr) {
603 maddr = net_if_ipv4_maddr_add(iface, addr);
604 if (!maddr) {
611 maddr->record_type = param->include ? IGMPV3_CHANGE_TO_INCLUDE_MODE
613 maddr->sources_len = param->sources_len;
615 net_ipaddr_copy(&maddr->sources[i].in_addr.s_addr,
619 maddr->record_type = IGMPV3_CHANGE_TO_EXCLUDE_MODE;
[all …]
Dipv6_mld.c215 struct net_if_mcast_addr *maddr; in net_ipv6_mld_join() local
218 maddr = net_if_ipv6_maddr_lookup(addr, &iface); in net_ipv6_mld_join()
219 if (maddr && net_if_ipv6_maddr_is_joined(maddr)) { in net_ipv6_mld_join()
223 if (!maddr) { in net_ipv6_mld_join()
224 maddr = net_if_ipv6_maddr_add(iface, addr); in net_ipv6_mld_join()
225 if (!maddr) { in net_ipv6_mld_join()
243 net_if_ipv6_maddr_join(iface, maddr); in net_ipv6_mld_join()
245 net_if_mcast_monitor(iface, &maddr->address, true); in net_ipv6_mld_join()
248 &maddr->address.in6_addr, in net_ipv6_mld_join()
256 struct net_if_mcast_addr *maddr; in net_ipv6_mld_leave() local
[all …]
Dnet_if.c2282 struct net_if_mcast_addr *net_if_ipv6_maddr_lookup(const struct in6_addr *maddr, in net_if_ipv6_maddr_lookup() argument
2309 maddr->s6_addr, in net_if_ipv6_maddr_lookup()
4551 struct net_if_mcast_addr *maddr = NULL; in net_if_ipv4_maddr_add() local
4565 maddr = ipv4_maddr_find(iface, false, NULL); in net_if_ipv4_maddr_add()
4566 if (maddr) { in net_if_ipv4_maddr_add()
4567 maddr->is_used = true; in net_if_ipv4_maddr_add()
4568 maddr->address.family = AF_INET; in net_if_ipv4_maddr_add()
4569 maddr->address.in_addr.s4_addr32[0] = addr->s4_addr32[0]; in net_if_ipv4_maddr_add()
4577 &maddr->address.in_addr, in net_if_ipv4_maddr_add()
4584 return maddr; in net_if_ipv4_maddr_add()
[all …]
Dnet_context.c873 struct net_if_mcast_addr *maddr; in net_context_bind() local
886 maddr = net_if_ipv6_maddr_lookup(&addr6->sin6_addr, in net_context_bind()
888 if (!maddr) { in net_context_bind()
892 ptr = &maddr->address.in6_addr; in net_context_bind()
982 struct net_if_mcast_addr *maddr; in net_context_bind() local
995 maddr = net_if_ipv4_maddr_lookup(&addr4->sin_addr, in net_context_bind()
997 if (!maddr) { in net_context_bind()
1001 ptr = &maddr->address.in_addr; in net_context_bind()
/Zephyr-latest/tests/net/iface/src/
Dmain.c328 struct net_if_mcast_addr *maddr; in iface_setup() local
445 maddr = net_if_ipv4_maddr_add(iface1, &inaddr_mcast); in iface_setup()
446 if (!maddr) { in iface_setup()
449 zassert_not_null(maddr, "mcast"); in iface_setup()
454 maddr = net_if_ipv6_maddr_add(iface1, &in6addr_mcast); in iface_setup()
455 if (!maddr) { in iface_setup()
458 zassert_not_null(maddr, "mcast"); in iface_setup()
916 struct net_if_mcast_addr *maddr; in v6_addr_add_mcast_twice() local
918 maddr = net_if_ipv6_maddr_add(iface1, &in6addr_mcast); in v6_addr_add_mcast_twice()
919 zassert_equal(maddr, NULL, "Address was added twice"); in v6_addr_add_mcast_twice()
[all …]
/Zephyr-latest/tests/net/hostname/src/
Dmain.c243 struct net_if_mcast_addr *maddr; in test_iface_setup() local
292 maddr = net_if_ipv6_maddr_add(iface1, &in6addr_mcast); in test_iface_setup()
293 if (!maddr) { in test_iface_setup()
296 zassert_not_null(maddr, "mcast"); in test_iface_setup()
/Zephyr-latest/tests/net/promiscuous/src/
Dmain.c202 struct net_if_mcast_addr *maddr; in test_iface_setup() local
266 maddr = net_if_ipv6_maddr_add(iface1, &in6addr_mcast); in test_iface_setup()
267 if (!maddr) { in test_iface_setup()
270 zassert_not_null(maddr, "mcast"); in test_iface_setup()
/Zephyr-latest/tests/net/ipv6/src/
Dmain.c1741 static void net_ctx_bind_mcast(struct net_context *ctx, struct in6_addr *maddr) in net_ctx_bind_mcast() argument
1750 net_ipaddr_copy(&addr.sin6_addr, maddr); in net_ctx_bind_mcast()
1856 struct net_if_mcast_addr *maddr; in ZTEST() local
1865 maddr = net_if_ipv6_maddr_add(TEST_NET_IF, &mcast_iface); in ZTEST()
1866 zassert_not_null(maddr, "Cannot add multicast address to interface"); in ZTEST()
1928 struct net_if_mcast_addr *maddr; in ZTEST() local
1939 maddr = net_if_ipv6_maddr_add(TEST_NET_IF, &mcast_unjoined_group); in ZTEST()
1941 net_if_ipv6_maddr_leave(TEST_NET_IF, maddr); in ZTEST()
1954 net_if_ipv6_maddr_join(TEST_NET_IF, maddr); in ZTEST()
1975 struct net_if_mcast_addr *maddr; in ZTEST() local
[all …]
/Zephyr-latest/tests/net/route/src/
Dmain.c240 struct net_if_mcast_addr *maddr; in test_init() local
274 maddr = net_if_ipv6_maddr_add(my_iface, &in6addr_mcast); in test_init()
275 zassert_not_null(maddr, in test_init()
/Zephyr-latest/lib/posix/options/
Dshm.c268 void **maddr = va_arg(args, void **); in shm_ioctl() local
270 return shm_mmap(shm, addr, len, prot, flags, off, maddr); in shm_ioctl()
/Zephyr-latest/tests/net/route_mcast/src/
Dmain.c169 struct net_if_mcast_addr *maddr; in net_route_mcast_add_addresses() local
187 maddr = net_if_ipv6_maddr_add(iface, &in6addr_mcast); in net_route_mcast_add_addresses()
188 zassert_not_null(maddr, "Cannot add multicast IPv6 address"); in net_route_mcast_add_addresses()
/Zephyr-latest/subsys/net/lib/dns/
Dmdns_responder.c634 struct net_if_mcast_addr *maddr; in iface_ipv4_cb() local
639 maddr = net_if_ipv4_maddr_add(iface, addr); in iface_ipv4_cb()
640 if (!maddr) { in iface_ipv4_cb()
/Zephyr-latest/tests/net/context/src/
Dmain.c1091 struct net_if_mcast_addr *maddr; in iface_add_address() local
1107 maddr = net_if_ipv6_maddr_add(iface, &in6addr_mcast); in iface_add_address()
1108 zassert_not_null(maddr, "Cannot add multicast IPv6 address"); in iface_add_address()
/Zephyr-latest/include/zephyr/net/
Dnet_ip.h728 static inline bool net_ipv6_is_my_maddr(struct in6_addr *maddr) in net_ipv6_is_my_maddr() argument
730 return net_if_ipv6_maddr_lookup(maddr, NULL) != NULL; in net_ipv6_is_my_maddr()
Dnet_if.h1559 struct net_if_mcast_addr *maddr,
/Zephyr-latest/drivers/spi/
Dspi_xec_qmspi_ldma.c497 static uint32_t qmspi_ldma_encode_unit_size(uint32_t maddr, size_t len) in qmspi_ldma_encode_unit_size() argument
499 uint8_t temp = (maddr | (uint32_t)len) & 0x3u; in qmspi_ldma_encode_unit_size()