xref: /linux/include/uapi/linux/caif/if_caif.h (revision ae22a94997b8a03dcb3c922857c203246711f9d4)
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 /*
3  * Copyright (C) ST-Ericsson AB 2010
4  * Author:	Sjur Brendeland
5  * License terms: GNU General Public License (GPL) version 2
6  */
7 
8 #ifndef IF_CAIF_H_
9 #define IF_CAIF_H_
10 #include <linux/sockios.h>
11 #include <linux/types.h>
12 #include <linux/socket.h>
13 
14 /**
15  * enum ifla_caif - CAIF NetlinkRT parameters.
16  * @IFLA_CAIF_IPV4_CONNID:  Connection ID for IPv4 PDP Context.
17  *			    The type of attribute is NLA_U32.
18  * @IFLA_CAIF_IPV6_CONNID:  Connection ID for IPv6 PDP Context.
19  *			    The type of attribute is NLA_U32.
20  * @IFLA_CAIF_LOOPBACK:	    If different from zero, device is doing loopback
21  *			    The type of attribute is NLA_U8.
22  *
23  * When using RT Netlink to create, destroy or configure a CAIF IP interface,
24  * enum ifla_caif is used to specify the configuration attributes.
25  */
26 enum ifla_caif {
27 	__IFLA_CAIF_UNSPEC,
28 	IFLA_CAIF_IPV4_CONNID,
29 	IFLA_CAIF_IPV6_CONNID,
30 	IFLA_CAIF_LOOPBACK,
31 	__IFLA_CAIF_MAX
32 };
33 #define	IFLA_CAIF_MAX (__IFLA_CAIF_MAX-1)
34 
35 #endif /*IF_CAIF_H_*/
36