Lines Matching defs:mask
72 * hwaddr_masked_aton - Convert ASCII string with optional mask to MAC address (colon-delimited format)
73 * @txt: MAC address with optional mask as a string (e.g., "00:11:22:33:44:55/ff:ff:ff:ff:00:00")
75 * @mask: Buffer for the MAC address mask (ETH_ALEN = 6 bytes)
76 * @maskable: Flag to indicate whether a mask is allowed
79 int hwaddr_masked_aton(const char *txt, u8 *addr, u8 *mask, u8 maskable)
88 /* check for optional mask */
90 /* no mask specified, assume default */
91 os_memset(mask, 0xff, ETH_ALEN);
93 /* mask specified and allowed */
94 r = hwaddr_parse(r + 1, mask);
99 /* mask specified but not allowed or trailing garbage */
188 int hwaddr_mask_txt(char *buf, size_t len, const u8 *addr, const u8 *mask)
195 if (mask[i] != 0xff) {
203 MAC2STR(addr), MAC2STR(mask));