Lines Matching +full:address +full:- +full:length
4 * SPDX-License-Identifier: Apache-2.0
9 * @brief Public API for network link address
24 * @brief Network link address library
25 * @defgroup net_linkaddr Network Link Address Library
32 /** Maximum length of the link address */
44 * Type of the link address. This indicates the network technology that this
45 * address is used in. Note that in order to save space we store the value
50 /** Unknown link address type. */
52 /** IEEE 802.15.4 link address. */
54 /** Bluetooth IPSP link address. */
56 /** Ethernet link address. */
58 /** Dummy link address. Used in testing apps and loopback support. */
60 /** CANBUS link address. */
65 * @brief Hardware link address structure
67 * Used to hold the link address information
70 /** The array of byte representing the address */
73 /** Length of that address array */
76 /** What kind of address is this for */
81 * @brief Hardware link address structure
83 * Used to hold the link address information. This variant is needed
84 * when we have to store the link layer address.
91 /** What kind of address is this for */
94 /** The real length of the ll address. */
97 /** The array of bytes representing the address */
104 * @param lladdr1 Pointer to a link layer address
105 * @param lladdr2 Pointer to a link layer address
116 if (lladdr1->len != lladdr2->len) { in net_linkaddr_cmp()
120 return !memcmp(lladdr1->addr, lladdr2->addr, lladdr1->len); in net_linkaddr_cmp()
125 * @brief Set the member data of a link layer address storage structure.
127 * @param lladdr_store The link address storage structure to change.
128 * @param new_addr Array of bytes containing the link address.
129 * @param new_len Length of the link address array.
136 return -EINVAL; in net_linkaddr_set()
140 return -EMSGSIZE; in net_linkaddr_set()
143 lladdr_store->len = new_len; in net_linkaddr_set()
144 memcpy(lladdr_store->addr, new_addr, new_len); in net_linkaddr_set()