/Zephyr-latest/subsys/net/ip/ |
D | igmp.c | 586 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 …]
|
D | ipv6_mld.c | 215 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 …]
|
D | net_if.c | 2282 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 …]
|
D | net_context.c | 873 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/ |
D | main.c | 328 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/ |
D | main.c | 243 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/ |
D | main.c | 202 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/ |
D | main.c | 1741 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/ |
D | main.c | 240 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/ |
D | shm.c | 268 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/ |
D | main.c | 169 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/ |
D | mdns_responder.c | 634 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/ |
D | main.c | 1091 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/ |
D | net_ip.h | 728 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()
|
D | net_if.h | 1559 struct net_if_mcast_addr *maddr,
|
/Zephyr-latest/drivers/spi/ |
D | spi_xec_qmspi_ldma.c | 497 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()
|