mac.h 399 B

12345678910111213141516171819
  1. /*
  2. * Copyright (c) 2017 Linus Lüssing <linus.luessing@c0d3.blue>
  3. *
  4. * SPDX-License-Identifier: GPL-2.0+
  5. * License-Filename: LICENSE
  6. */
  7. #ifndef _MAC_H_
  8. #define _MAC_H_
  9. struct mac_addr {
  10. /* 8 instead of 6 for multiples of uint32_t for hashword() */
  11. unsigned char storage[8];
  12. };
  13. int mac_aton(const char *cp, struct mac_addr *mac);
  14. char *mac_ntoa(struct mac_addr *mac);
  15. #endif /* _MAC_H_ */