diff options
author | Jo-Philipp Wich <jo@mein.io> | 2021-09-19 11:18:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 11:18:19 +0200 |
commit | 0ea5ee8d78454191eb32251fce1b77b1a4c41c77 (patch) | |
tree | 5cdad08b66b6aae878eb0f236c79f9dc79a6248f /include/linux/if_addrlabel.h | |
parent | 64e4f68cc70466f736b6ba98c5ec8c9800bee351 (diff) | |
parent | dd86e1dadab228c1a20bdb5504d216706cdd8624 (diff) |
Merge pull request #20 from jow-/lib-add-rtnl
lib: introduce Linux route netlink binding
Diffstat (limited to 'include/linux/if_addrlabel.h')
-rw-r--r-- | include/linux/if_addrlabel.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/include/linux/if_addrlabel.h b/include/linux/if_addrlabel.h new file mode 100644 index 0000000..d1f5974 --- /dev/null +++ b/include/linux/if_addrlabel.h @@ -0,0 +1,33 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * if_addrlabel.h - netlink interface for address labels + * + * Copyright (C)2007 USAGI/WIDE Project, All Rights Reserved. + * + * Authors: + * YOSHIFUJI Hideaki @ USAGI/WIDE <yoshfuji@linux-ipv6.org> + */ + +#ifndef __LINUX_IF_ADDRLABEL_H +#define __LINUX_IF_ADDRLABEL_H + +#include <linux/types.h> + +struct ifaddrlblmsg { + __u8 ifal_family; /* Address family */ + __u8 __ifal_reserved; /* Reserved */ + __u8 ifal_prefixlen; /* Prefix length */ + __u8 ifal_flags; /* Flags */ + __u32 ifal_index; /* Link index */ + __u32 ifal_seq; /* sequence number */ +}; + +enum { + IFAL_ADDRESS = 1, + IFAL_LABEL = 2, + __IFAL_MAX +}; + +#define IFAL_MAX (__IFAL_MAX - 1) + +#endif |