1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * if_addrlabel.h - netlink interface for address labels 4607ca46eSDavid Howells * 5607ca46eSDavid Howells * Copyright (C)2007 USAGI/WIDE Project, All Rights Reserved. 6607ca46eSDavid Howells * 7607ca46eSDavid Howells * Authors: 8607ca46eSDavid Howells * YOSHIFUJI Hideaki @ USAGI/WIDE <yoshfuji@linux-ipv6.org> 9607ca46eSDavid Howells */ 10607ca46eSDavid Howells 11607ca46eSDavid Howells #ifndef __LINUX_IF_ADDRLABEL_H 12607ca46eSDavid Howells #define __LINUX_IF_ADDRLABEL_H 13607ca46eSDavid Howells 14607ca46eSDavid Howells #include <linux/types.h> 15607ca46eSDavid Howells 16607ca46eSDavid Howells struct ifaddrlblmsg { 17607ca46eSDavid Howells __u8 ifal_family; /* Address family */ 18607ca46eSDavid Howells __u8 __ifal_reserved; /* Reserved */ 19607ca46eSDavid Howells __u8 ifal_prefixlen; /* Prefix length */ 20607ca46eSDavid Howells __u8 ifal_flags; /* Flags */ 21607ca46eSDavid Howells __u32 ifal_index; /* Link index */ 22607ca46eSDavid Howells __u32 ifal_seq; /* sequence number */ 23607ca46eSDavid Howells }; 24607ca46eSDavid Howells 25607ca46eSDavid Howells enum { 26607ca46eSDavid Howells IFAL_ADDRESS = 1, 27607ca46eSDavid Howells IFAL_LABEL = 2, 28607ca46eSDavid Howells __IFAL_MAX 29607ca46eSDavid Howells }; 30607ca46eSDavid Howells 31607ca46eSDavid Howells #define IFAL_MAX (__IFAL_MAX - 1) 32607ca46eSDavid Howells 33607ca46eSDavid Howells #endif 34