Lines Matching full:address

4  * Generic IPv6 and IPv4 address definitions.
51 /* Address families. */
52 #define AF_UNSPEC PF_UNSPEC /**< Unspecified address family. */
138 /** IPv6 address struct */
147 /* Binary size of the IPv6 address */
150 /** IPv4 address struct */
160 /* Binary size of the IPv4 address */
163 /** Socket address family type */
166 /** Length of a socket address */
177 /** Socket address struct for IPv6. */
181 struct in6_addr sin6_addr; /* IPv6 address */
188 struct in6_addr *sin6_addr; /* IPv6 address */
192 /** Socket address struct for IPv4. */
196 struct in_addr sin_addr; /* IPv4 address */
202 struct in_addr *sin_addr; /* IPv4 address */
205 /** Socket address struct for packet socket. */
212 uint8_t sll_halen; /* Length of address */
213 uint8_t sll_addr[8]; /* Physical-layer address, big endian */
222 uint8_t sll_halen; /* Length of address */
223 uint8_t *sll_addr; /* Physical-layer address, big endian */
239 void *msg_name; /* optional socket address, big endian */
240 socklen_t msg_namelen; /* size of socket address */
365 /* Socket address struct for UNIX domain sockets */
389 /** Max length of the IPv4 address as a string. Defined by POSIX. */
391 /** Max length of the IPv6 address as a string. Takes into account possible
437 struct net_addr *remote_addr; /**< IPv6/IPv4 remote address */
438 struct net_addr *local_addr; /**< IPv6/IPv4 local address */
444 /** What is the current state of the network address */
446 NET_ADDR_ANY_STATE = -1, /**< Default (invalid) address type */
447 NET_ADDR_TENTATIVE = 0, /**< Tentative address */
448 NET_ADDR_PREFERRED, /**< Preferred address */
449 NET_ADDR_DEPRECATED, /**< Deprecated address */
452 /** How the network address is assigned to network interface */
456 /** Auto configured address */
458 /** Address is from DHCP */
460 /** Manually set address */
462 /** Manually set address which is overridable by DHCP */
592 * @brief Check if the IPv6 address is a loopback address (::1).
594 * @param addr IPv6 address
596 * @return True if address is a loopback address, False otherwise.
607 * @brief Check if the IPv6 address is a multicast address.
609 * @param addr IPv6 address
611 * @return True if address is multicast address, False otherwise.
625 * @brief Check if IPv6 address is found in one of the network interfaces.
627 * @param addr IPv6 address
629 * @return True if address was found, False otherwise.
640 * @brief Check if IPv6 multicast address is found in one of the
643 * @param maddr Multicast IPv6 address
645 * @return True if address was found, False otherwise.
655 * @param addr1 First IPv6 address.
656 * @param addr2 Second IPv6 address.
692 * @brief Check if the IPv4 address is a loopback address (127.0.0.0/8).
694 * @param addr IPv4 address
696 * @return True if address is a loopback address, False otherwise.
704 * @brief Check if the IPv4 address is unspecified (all bits zero)
706 * @param addr IPv4 address.
708 * @return True if the address is unspecified, false otherwise.
716 * @brief Check if the IPv4 address is a multicast address.
718 * @param addr IPv4 address
720 * @return True if address is multicast address, False otherwise.
728 * @brief Check if the given IPv4 address is a link local address.
730 * @param addr A valid pointer on an IPv4 address
740 * @brief Copy an IPv4 or IPv6 address
742 * @param dest Destination IP address.
743 * @param src Source IP address.
745 * @return Destination address.
751 * @brief Copy an IPv4 address raw buffer
753 * @param dest Destination IP address.
754 * @param src Source IP address.
763 * @brief Copy an IPv6 address raw buffer
765 * @param dest Destination IP address.
766 * @param src Source IP address.
777 * @param addr1 Pointer to IPv4 address.
778 * @param addr2 Pointer to IPv4 address.
789 * @brief Compare two raw IPv4 address buffers
791 * @param addr1 Pointer to IPv4 address buffer.
792 * @param addr2 Pointer to IPv4 address buffer.
806 * @param addr1 Pointer to IPv6 address.
807 * @param addr2 Pointer to IPv6 address.
818 * @brief Compare two raw IPv6 address buffers
820 * @param addr1 Pointer to IPv6 address buffer.
821 * @param addr2 Pointer to IPv6 address buffer.
833 * @brief Check if the given IPv6 address is a link local address.
835 * @param addr A valid pointer on an IPv6 address
845 * @brief Check if the given IPv6 address is a unique local address.
847 * @param addr A valid pointer on an IPv6 address
857 * @brief Return pointer to any (all bits zeros) IPv6 address.
859 * @return Any IPv6 address.
864 * @brief Return pointer to any (all bits zeros) IPv4 address.
866 * @return Any IPv4 address.
871 * @brief Return pointer to broadcast (all bits ones) IPv4 address.
873 * @return Broadcast IPv4 address.
882 * @brief Check if the given address belongs to same subnet that
886 * @param addr IPv4 address
888 * @return True if address is in same subnet, false otherwise.
900 * @brief Check if the given IPv4 address is a broadcast address.
903 * @param addr IPv4 address
905 * @return True if address is a broadcast address, false otherwise.
932 * @brief Check if the IPv4 address is assigned to any network interface
935 * @param addr A valid pointer on an IPv4 address
937 * @return True if IPv4 address is found in one of the network interfaces,
953 * @brief Check if the IPv6 address is unspecified (all bits zero)
955 * @param addr IPv6 address.
957 * @return True if the address is unspecified, false otherwise.
968 * @brief Check if the IPv6 address is solicited node multicast address
971 * @param addr IPv6 address.
973 * @return True if the address is solicited node address, false otherwise.
985 * @brief Check if the IPv6 address is a given scope multicast
986 * address (FFyx::).
988 * @param addr IPv6 address
991 * @return True if the address is in given scope multicast address,
1003 * @param addr_1 IPv6 address 1
1004 * @param addr_2 IPv6 address 2
1017 * @brief Check if the IPv6 address is a global multicast address (FFxE::/16).
1019 * @param addr IPv6 address.
1021 * @return True if the address is global multicast address, false otherwise.
1029 * @brief Check if the IPv6 address is a interface scope multicast
1030 * address (FFx1::).
1032 * @param addr IPv6 address.
1034 * @return True if the address is a interface scope multicast address,
1043 * @brief Check if the IPv6 address is a link local scope multicast
1044 * address (FFx2::).
1046 * @param addr IPv6 address.
1048 * @return True if the address is a link local scope multicast address,
1057 * @brief Check if the IPv6 address is a mesh-local scope multicast
1058 * address (FFx3::).
1060 * @param addr IPv6 address.
1062 * @return True if the address is a mesh-local scope multicast address,
1071 * @brief Check if the IPv6 address is a site scope multicast
1072 * address (FFx5::).
1074 * @param addr IPv6 address.
1076 * @return True if the address is a site scope multicast address,
1085 * @brief Check if the IPv6 address is an organization scope multicast
1086 * address (FFx8::).
1088 * @param addr IPv6 address.
1090 * @return True if the address is an organization scope multicast address,
1099 * @brief Check if the IPv6 address belongs to certain multicast group
1101 * @param addr IPv6 address.
1102 * @param group Group id IPv6 address, the values must be in network
1105 * @return True if the IPv6 multicast address belongs to given multicast
1120 * @brief Check if the IPv6 address belongs to the all nodes multicast group
1122 * @param addr IPv6 address
1124 * @return True if the IPv6 multicast address belongs to the all nodes multicast
1139 * @brief Check if the IPv6 address is a interface scope all nodes multicast
1140 * address (FF01::1).
1142 * @param addr IPv6 address.
1144 * @return True if the address is a interface scope all nodes multicast address,
1155 * @brief Check if the IPv6 address is a link local scope all nodes multicast
1156 * address (FF02::1).
1158 * @param addr IPv6 address.
1160 * @return True if the address is a link local scope all nodes multicast
1161 * address, false otherwise.
1171 * @brief Create solicited node IPv6 multicast address
1174 * @param src IPv6 address.
1175 * @param dst IPv6 address.
1194 /** @brief Construct an IPv6 address from eight 16-bit words.
1196 * @param addr IPv6 address
1197 * @param addr0 16-bit word which is part of the address
1198 * @param addr1 16-bit word which is part of the address
1199 * @param addr2 16-bit word which is part of the address
1200 * @param addr3 16-bit word which is part of the address
1201 * @param addr4 16-bit word which is part of the address
1202 * @param addr5 16-bit word which is part of the address
1203 * @param addr6 16-bit word which is part of the address
1204 * @param addr7 16-bit word which is part of the address
1223 * @brief Create link local allnodes multicast IPv6 address
1225 * @param addr IPv6 address
1233 * @brief Create link local allrouters multicast IPv6 address
1235 * @param addr IPv6 address
1243 * @brief Create IPv6 address interface identifier
1245 * @param addr IPv6 address
1246 * @param lladdr Link local address
1300 * @brief Check if given address is based on link layer address
1366 * @param addr Socket address
1368 * @return Pointer to IPv6 socket address
1379 * @param addr Socket address
1381 * @return Pointer to IPv4 socket address
1392 * @param addr Socket address
1394 * @return Pointer to IPv6 socket address
1406 * @param addr Socket address
1408 * @return Pointer to IPv4 socket address
1420 * @param addr Socket address
1422 * @return Pointer to linklayer socket address
1434 * @param addr Socket address
1436 * @return Pointer to CAN socket address
1445 * @brief Convert a string to IP address.
1447 * @param family IP address family (AF_INET or AF_INET6)
1448 * @param src IP address in a null terminated string
1460 * @brief Convert IP address to string form.
1462 * @param family IP address family (AF_INET or AF_INET6)
1465 * @param dst Buffer for IP address as a null terminated string
1474 * @brief Parse a string that contains either IPv4 or IPv6 address
1478 * @details Syntax of the IP address string:
1488 * @param str String that contains the IP address.
1605 * @brief Return network address family value as a string. This is only usable
1608 * @param family Network address family code
1610 * @return Network address family as a string, or NULL if family is unknown.