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