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