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