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