if_addrlabel.h 721 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * if_addrlabel.h - netlink interface for address labels
  4. *
  5. * Copyright (C)2007 USAGI/WIDE Project, All Rights Reserved.
  6. *
  7. * Authors:
  8. * YOSHIFUJI Hideaki @ USAGI/WIDE <[email protected]>
  9. */
  10. #ifndef __LINUX_IF_ADDRLABEL_H
  11. #define __LINUX_IF_ADDRLABEL_H
  12. #include <linux/types.h>
  13. struct ifaddrlblmsg {
  14. __u8 ifal_family; /* Address family */
  15. __u8 __ifal_reserved; /* Reserved */
  16. __u8 ifal_prefixlen; /* Prefix length */
  17. __u8 ifal_flags; /* Flags */
  18. __u32 ifal_index; /* Link index */
  19. __u32 ifal_seq; /* sequence number */
  20. };
  21. enum {
  22. IFAL_ADDRESS = 1,
  23. IFAL_LABEL = 2,
  24. __IFAL_MAX
  25. };
  26. #define IFAL_MAX (__IFAL_MAX - 1)
  27. #endif