xref: /openbmc/linux/include/uapi/linux/caif/if_caif.h (revision e2be04c7)
1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
227a3aadcSDavid Howells /*
327a3aadcSDavid Howells  * Copyright (C) ST-Ericsson AB 2010
426ee65e6Ssjur.brandeland@stericsson.com  * Author:	Sjur Brendeland
527a3aadcSDavid Howells  * License terms: GNU General Public License (GPL) version 2
627a3aadcSDavid Howells  */
727a3aadcSDavid Howells 
827a3aadcSDavid Howells #ifndef IF_CAIF_H_
927a3aadcSDavid Howells #define IF_CAIF_H_
1027a3aadcSDavid Howells #include <linux/sockios.h>
1127a3aadcSDavid Howells #include <linux/types.h>
1227a3aadcSDavid Howells #include <linux/socket.h>
1327a3aadcSDavid Howells 
1427a3aadcSDavid Howells /**
1527a3aadcSDavid Howells  * enum ifla_caif - CAIF NetlinkRT parameters.
1627a3aadcSDavid Howells  * @IFLA_CAIF_IPV4_CONNID:  Connection ID for IPv4 PDP Context.
1727a3aadcSDavid Howells  *			    The type of attribute is NLA_U32.
1827a3aadcSDavid Howells  * @IFLA_CAIF_IPV6_CONNID:  Connection ID for IPv6 PDP Context.
1927a3aadcSDavid Howells  *			    The type of attribute is NLA_U32.
2027a3aadcSDavid Howells  * @IFLA_CAIF_LOOPBACK:	    If different from zero, device is doing loopback
2127a3aadcSDavid Howells  *			    The type of attribute is NLA_U8.
2227a3aadcSDavid Howells  *
2327a3aadcSDavid Howells  * When using RT Netlink to create, destroy or configure a CAIF IP interface,
2427a3aadcSDavid Howells  * enum ifla_caif is used to specify the configuration attributes.
2527a3aadcSDavid Howells  */
2627a3aadcSDavid Howells enum ifla_caif {
2727a3aadcSDavid Howells 	__IFLA_CAIF_UNSPEC,
2827a3aadcSDavid Howells 	IFLA_CAIF_IPV4_CONNID,
2927a3aadcSDavid Howells 	IFLA_CAIF_IPV6_CONNID,
3027a3aadcSDavid Howells 	IFLA_CAIF_LOOPBACK,
3127a3aadcSDavid Howells 	__IFLA_CAIF_MAX
3227a3aadcSDavid Howells };
3327a3aadcSDavid Howells #define	IFLA_CAIF_MAX (__IFLA_CAIF_MAX-1)
3427a3aadcSDavid Howells 
3527a3aadcSDavid Howells #endif /*IF_CAIF_H_*/
36