Lines Matching +full:video +full:- +full:interfaces
10 * SPDX-License-Identifier: Apache-2.0
50 #define PF_LOCAL 6 /**< Inter-process communication */
51 #define PF_UNIX PF_LOCAL /**< Inter-process communication */
60 #define AF_LOCAL PF_LOCAL /**< Inter-process communication */
61 #define AF_UNIX PF_UNIX /**< Inter-process communication */
65 IPPROTO_IP = 0, /**< IP protocol (pseudo-val for setsockopt() */
94 /** @brief Convert 16-bit value from network to host byte order.
102 /** @brief Convert 32-bit value from network to host byte order.
110 /** @brief Convert 64-bit value from network to host byte order.
118 /** @brief Convert 16-bit value from host to network byte order.
126 /** @brief Convert 32-bit value from host to network byte order.
134 /** @brief Convert 64-bit value from host to network byte order.
186 uint8_t sin6_scope_id; /**< Interfaces for a scope */
199 uint16_t sll_protocol; /**< Physical-layer protocol */
204 uint8_t sll_addr[8]; /**< Physical-layer address, big endian */
214 uint8_t sin6_scope_id; /**< interfaces for a scope */
227 uint16_t sll_protocol; /**< Physical-layer protocol */
232 uint8_t *sll_addr; /**< Physical-layer address, big endian */
271 int cmsg_type; /**< Protocol-specific type */
296 ((msghdr)->msg_controllen >= sizeof(struct cmsghdr) ? \
297 (struct cmsghdr *)((msghdr)->msg_control) : NULL)
307 (((uint8_t *)(cmsg) + ALIGN_H((cmsg)->cmsg_len) + \
309 (uint8_t *)((msghdr)->msg_control) + (msghdr)->msg_controllen) ? \
312 ALIGN_H((cmsg)->cmsg_len))))
411 char data[NET_SOCKADDR_MAX_SIZE - sizeof(sa_family_t)];
419 char data[NET_SOCKADDR_PTR_MAX_SIZE - sizeof(sa_family_t)];
425 char data[NET_SOCKADDR_MAX_SIZE - sizeof(sa_family_t)];
431 char sun_path[NET_SOCKADDR_MAX_SIZE - sizeof(sa_family_t)];
508 NET_PRIORITY_VI = 4, /**< Video, < 100 ms latency and jitter */
527 NET_ADDR_ANY_STATE = -1, /**< Default (invalid) address type */
665 #define NET_IPV6_FRAGH_OFFSET_MASK 0xfff8 /* Mask for the 13-bit Fragment Offset field */
666 #define NET_IPV4_FRAGH_OFFSET_MASK 0x1fff /* Mask for the 13-bit Fragment Offset field */
667 #define NET_IPV4_MORE_FRAG_MASK 0x2000 /* Mask for the 1-bit More Fragments field */
668 #define NET_IPV4_DO_NOT_FRAG_MASK 0x4000 /* Mask for the 1-bit Do Not Fragment field */
681 return UNALIGNED_GET(&addr->s6_addr32[0]) == 0 && in net_ipv6_is_addr_loopback()
682 UNALIGNED_GET(&addr->s6_addr32[1]) == 0 && in net_ipv6_is_addr_loopback()
683 UNALIGNED_GET(&addr->s6_addr32[2]) == 0 && in net_ipv6_is_addr_loopback()
684 ntohl(UNALIGNED_GET(&addr->s6_addr32[3])) == 1; in net_ipv6_is_addr_loopback()
696 return addr->s6_addr[0] == 0xFF; in net_ipv6_is_addr_mcast()
706 * @brief Check if IPv6 address is found in one of the network interfaces.
722 * network interfaces.
746 uint8_t bits = 128 - length; in net_ipv6_is_prefix()
767 mask = (uint8_t)((0xff << (8 - remain)) ^ 0xff) << remain; in net_ipv6_is_prefix()
784 uint8_t bits = 128 - prefix_len; in net_ipv6_addr_prefix_mask()
800 mask = (uint8_t)((0xff << (8 - remain)) ^ 0xff) << remain; in net_ipv6_addr_prefix_mask()
813 return addr->s4_addr[0] == 127U; in net_ipv4_is_addr_loopback()
825 return UNALIGNED_GET(&addr->s_addr) == 0; in net_ipv4_is_addr_unspecified()
837 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xF0000000) == 0xE0000000; in net_ipv4_is_addr_mcast()
849 return (ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFF0000) == 0xA9FE0000; in net_ipv4_is_ll_addr()
865 masked_24 = ntohl(UNALIGNED_GET(&addr->s_addr)) & 0xFFFFFF00; in net_ipv4_is_private_addr()
926 return UNALIGNED_GET(&addr1->s_addr) == UNALIGNED_GET(&addr2->s_addr); in net_ipv4_addr_cmp()
982 return UNALIGNED_GET(&addr->s6_addr16[0]) == htons(0xFE80); in net_ipv6_is_ll_addr()
994 return UNALIGNED_GET(&addr->s6_addr16[0]) == htons(0xFEC0); in net_ipv6_is_sl_addr()
1007 return addr->s6_addr[0] == 0xFD; in net_ipv6_is_ula_addr()
1019 return (addr->s6_addr[0] & 0xE0) == 0x20; in net_ipv6_is_global_addr()
1035 masked_32 = ntohl(UNALIGNED_GET(&addr->s6_addr32[0])); in net_ipv6_is_private_addr()
1123 * @return True if IPv4 address is found in one of the network interfaces,
1147 return UNALIGNED_GET(&addr->s6_addr32[0]) == 0 && in net_ipv6_is_addr_unspecified()
1148 UNALIGNED_GET(&addr->s6_addr32[1]) == 0 && in net_ipv6_is_addr_unspecified()
1149 UNALIGNED_GET(&addr->s6_addr32[2]) == 0 && in net_ipv6_is_addr_unspecified()
1150 UNALIGNED_GET(&addr->s6_addr32[3]) == 0; in net_ipv6_is_addr_unspecified()
1163 return UNALIGNED_GET(&addr->s6_addr32[0]) == htonl(0xff020000) && in net_ipv6_is_addr_solicited_node()
1164 UNALIGNED_GET(&addr->s6_addr32[1]) == 0x00000000 && in net_ipv6_is_addr_solicited_node()
1165 UNALIGNED_GET(&addr->s6_addr32[2]) == htonl(0x00000001) && in net_ipv6_is_addr_solicited_node()
1166 ((UNALIGNED_GET(&addr->s6_addr32[3]) & htonl(0xff000000)) == in net_ipv6_is_addr_solicited_node()
1183 return (addr->s6_addr[0] == 0xff) && ((addr->s6_addr[1] & 0xF) == scope); in net_ipv6_is_addr_mcast_scope()
1198 return (addr_1->s6_addr[0] == 0xff) && (addr_2->s6_addr[0] == 0xff) && in net_ipv6_is_same_mcast_scope()
1199 (addr_1->s6_addr[1] == addr_2->s6_addr[1]); in net_ipv6_is_same_mcast_scope()
1243 * @brief Check if the IPv6 address is a mesh-local scope multicast
1248 * @return True if the address is a mesh-local scope multicast address,
1297 return UNALIGNED_GET(&addr->s6_addr16[1]) == group->s6_addr16[1] && in net_ipv6_is_addr_mcast_group()
1298 UNALIGNED_GET(&addr->s6_addr16[2]) == group->s6_addr16[2] && in net_ipv6_is_addr_mcast_group()
1299 UNALIGNED_GET(&addr->s6_addr16[3]) == group->s6_addr16[3] && in net_ipv6_is_addr_mcast_group()
1300 UNALIGNED_GET(&addr->s6_addr32[1]) == group->s6_addr32[1] && in net_ipv6_is_addr_mcast_group()
1301 UNALIGNED_GET(&addr->s6_addr32[2]) == group->s6_addr32[1] && in net_ipv6_is_addr_mcast_group()
1302 UNALIGNED_GET(&addr->s6_addr32[3]) == group->s6_addr32[3]; in net_ipv6_is_addr_mcast_group()
1367 dst->s6_addr[0] = 0xFF; in net_ipv6_addr_create_solicited_node()
1368 dst->s6_addr[1] = 0x02; in net_ipv6_addr_create_solicited_node()
1369 UNALIGNED_PUT(0, &dst->s6_addr16[1]); in net_ipv6_addr_create_solicited_node()
1370 UNALIGNED_PUT(0, &dst->s6_addr16[2]); in net_ipv6_addr_create_solicited_node()
1371 UNALIGNED_PUT(0, &dst->s6_addr16[3]); in net_ipv6_addr_create_solicited_node()
1372 UNALIGNED_PUT(0, &dst->s6_addr16[4]); in net_ipv6_addr_create_solicited_node()
1373 dst->s6_addr[10] = 0U; in net_ipv6_addr_create_solicited_node()
1374 dst->s6_addr[11] = 0x01; in net_ipv6_addr_create_solicited_node()
1375 dst->s6_addr[12] = 0xFF; in net_ipv6_addr_create_solicited_node()
1376 dst->s6_addr[13] = src->s6_addr[13]; in net_ipv6_addr_create_solicited_node()
1377 UNALIGNED_PUT(UNALIGNED_GET(&src->s6_addr16[7]), &dst->s6_addr16[7]); in net_ipv6_addr_create_solicited_node()
1380 /** @brief Construct an IPv6 address from eight 16-bit words.
1383 * @param addr0 16-bit word which is part of the address
1384 * @param addr1 16-bit word which is part of the address
1385 * @param addr2 16-bit word which is part of the address
1386 * @param addr3 16-bit word which is part of the address
1387 * @param addr4 16-bit word which is part of the address
1388 * @param addr5 16-bit word which is part of the address
1389 * @param addr6 16-bit word which is part of the address
1390 * @param addr7 16-bit word which is part of the address
1398 UNALIGNED_PUT(htons(addr0), &addr->s6_addr16[0]); in net_ipv6_addr_create()
1399 UNALIGNED_PUT(htons(addr1), &addr->s6_addr16[1]); in net_ipv6_addr_create()
1400 UNALIGNED_PUT(htons(addr2), &addr->s6_addr16[2]); in net_ipv6_addr_create()
1401 UNALIGNED_PUT(htons(addr3), &addr->s6_addr16[3]); in net_ipv6_addr_create()
1402 UNALIGNED_PUT(htons(addr4), &addr->s6_addr16[4]); in net_ipv6_addr_create()
1403 UNALIGNED_PUT(htons(addr5), &addr->s6_addr16[5]); in net_ipv6_addr_create()
1404 UNALIGNED_PUT(htons(addr6), &addr->s6_addr16[6]); in net_ipv6_addr_create()
1405 UNALIGNED_PUT(htons(addr7), &addr->s6_addr16[7]); in net_ipv6_addr_create()
1438 ntohs(addr4->s4_addr16[0]), in net_ipv6_addr_create_v4_mapped()
1439 ntohs(addr4->s4_addr16[1])); in net_ipv6_addr_create_v4_mapped()
1452 if (UNALIGNED_GET(&addr->s6_addr32[0]) == 0 && in net_ipv6_addr_is_v4_mapped()
1453 UNALIGNED_GET(&addr->s6_addr32[1]) == 0 && in net_ipv6_addr_is_v4_mapped()
1454 UNALIGNED_GET(&addr->s6_addr16[5]) == 0xffff) { in net_ipv6_addr_is_v4_mapped()
1463 * Interface identifier is either generated from EUI-64 (MAC) defined
1510 switch (lladdr->len) { in net_ipv6_addr_based_on_ll()
1512 if (!memcmp(&addr->s6_addr[14], lladdr->addr, lladdr->len) && in net_ipv6_addr_based_on_ll()
1513 addr->s6_addr[8] == 0U && in net_ipv6_addr_based_on_ll()
1514 addr->s6_addr[9] == 0U && in net_ipv6_addr_based_on_ll()
1515 addr->s6_addr[10] == 0U && in net_ipv6_addr_based_on_ll()
1516 addr->s6_addr[11] == 0xff && in net_ipv6_addr_based_on_ll()
1517 addr->s6_addr[12] == 0xfe) { in net_ipv6_addr_based_on_ll()
1523 if (lladdr->type == NET_LINK_ETHERNET) { in net_ipv6_addr_based_on_ll()
1524 if (!memcmp(&addr->s6_addr[9], &lladdr->addr[1], 2) && in net_ipv6_addr_based_on_ll()
1525 !memcmp(&addr->s6_addr[13], &lladdr->addr[3], 3) && in net_ipv6_addr_based_on_ll()
1526 addr->s6_addr[11] == 0xff && in net_ipv6_addr_based_on_ll()
1527 addr->s6_addr[12] == 0xfe && in net_ipv6_addr_based_on_ll()
1528 (addr->s6_addr[8] ^ 0x02) == lladdr->addr[0]) { in net_ipv6_addr_based_on_ll()
1535 if (!memcmp(&addr->s6_addr[9], &lladdr->addr[1], in net_ipv6_addr_based_on_ll()
1536 lladdr->len - 1) && in net_ipv6_addr_based_on_ll()
1537 (addr->s6_addr[8] ^ 0x02) == lladdr->addr[0]) { in net_ipv6_addr_based_on_ll()
1706 return (int32_t)(seq1 - seq2); in net_tcp_seq_cmp()
1829 return -ENOTSUP; in net_ipv6_pe_add_filter()
1847 return -ENOTSUP; in net_ipv6_pe_del_filter()