/* * Copyright (c) 2017 Linus Lüssing * * SPDX-License-Identifier: GPL-2.0+ * License-Filename: LICENSE */ #ifndef _MAC_H_ #define _MAC_H_ struct mac_addr { /* 8 instead of 6 for multiples of uint32_t for hashword() */ unsigned char storage[8]; }; int mac_aton(const char *cp, struct mac_addr *mac); char *mac_ntoa(struct mac_addr *mac); #endif /* _MAC_H_ */