1e2be04c7SGreg Kroah-Hartman /* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */ 20655f6a8SRichard Alpe /* 30655f6a8SRichard Alpe * Copyright (c) 2014, Ericsson AB 40655f6a8SRichard Alpe * All rights reserved. 50655f6a8SRichard Alpe * 60655f6a8SRichard Alpe * Redistribution and use in source and binary forms, with or without 70655f6a8SRichard Alpe * modification, are permitted provided that the following conditions are met: 80655f6a8SRichard Alpe * 90655f6a8SRichard Alpe * 1. Redistributions of source code must retain the above copyright 100655f6a8SRichard Alpe * notice, this list of conditions and the following disclaimer. 110655f6a8SRichard Alpe * 2. Redistributions in binary form must reproduce the above copyright 120655f6a8SRichard Alpe * notice, this list of conditions and the following disclaimer in the 130655f6a8SRichard Alpe * documentation and/or other materials provided with the distribution. 140655f6a8SRichard Alpe * 3. Neither the names of the copyright holders nor the names of its 150655f6a8SRichard Alpe * contributors may be used to endorse or promote products derived from 160655f6a8SRichard Alpe * this software without specific prior written permission. 170655f6a8SRichard Alpe * 180655f6a8SRichard Alpe * Alternatively, this software may be distributed under the terms of the 190655f6a8SRichard Alpe * GNU General Public License ("GPL") version 2 as published by the Free 200655f6a8SRichard Alpe * Software Foundation. 210655f6a8SRichard Alpe * 220655f6a8SRichard Alpe * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 230655f6a8SRichard Alpe * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 240655f6a8SRichard Alpe * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 250655f6a8SRichard Alpe * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 260655f6a8SRichard Alpe * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 270655f6a8SRichard Alpe * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 280655f6a8SRichard Alpe * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 290655f6a8SRichard Alpe * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 300655f6a8SRichard Alpe * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 310655f6a8SRichard Alpe * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 320655f6a8SRichard Alpe * POSSIBILITY OF SUCH DAMAGE. 330655f6a8SRichard Alpe */ 340655f6a8SRichard Alpe 350655f6a8SRichard Alpe #ifndef _LINUX_TIPC_NETLINK_H_ 360655f6a8SRichard Alpe #define _LINUX_TIPC_NETLINK_H_ 370655f6a8SRichard Alpe 380655f6a8SRichard Alpe #define TIPC_GENL_V2_NAME "TIPCv2" 390655f6a8SRichard Alpe #define TIPC_GENL_V2_VERSION 0x1 400655f6a8SRichard Alpe 410655f6a8SRichard Alpe /* Netlink commands */ 420655f6a8SRichard Alpe enum { 430655f6a8SRichard Alpe TIPC_NL_UNSPEC, 440655f6a8SRichard Alpe TIPC_NL_LEGACY, 450655f6a8SRichard Alpe TIPC_NL_BEARER_DISABLE, 460655f6a8SRichard Alpe TIPC_NL_BEARER_ENABLE, 4735b9dd76SRichard Alpe TIPC_NL_BEARER_GET, 48315c00bcSRichard Alpe TIPC_NL_BEARER_SET, 4934b78a12SRichard Alpe TIPC_NL_SOCK_GET, 501a1a143dSRichard Alpe TIPC_NL_PUBL_GET, 517be57fc6SRichard Alpe TIPC_NL_LINK_GET, 52f96ce7a2SRichard Alpe TIPC_NL_LINK_SET, 53ae36342bSRichard Alpe TIPC_NL_LINK_RESET_STATS, 5446f15c67SRichard Alpe TIPC_NL_MEDIA_GET, 551e55417dSRichard Alpe TIPC_NL_MEDIA_SET, 563e4b6ab5SRichard Alpe TIPC_NL_NODE_GET, 57fd3cf2adSRichard Alpe TIPC_NL_NET_GET, 5827c21416SRichard Alpe TIPC_NL_NET_SET, 591593123aSRichard Alpe TIPC_NL_NAME_TABLE_GET, 607b3f5229SParthasarathy Bhuvaragan TIPC_NL_MON_SET, 61bf1035b2SParthasarathy Bhuvaragan TIPC_NL_MON_GET, 62cf6f7e1dSParthasarathy Bhuvaragan TIPC_NL_MON_PEER_GET, 63b3404022SRichard Alpe TIPC_NL_PEER_REMOVE, 64ef20cd4dSRichard Alpe TIPC_NL_BEARER_ADD, 65fdb3acccSRichard Alpe TIPC_NL_UDP_GET_REMOTEIP, 66e1f32190STuong Lien TIPC_NL_KEY_SET, 67e1f32190STuong Lien TIPC_NL_KEY_FLUSH, 68e1b5e598SJohn Rutherford TIPC_NL_ADDR_LEGACY_GET, 690655f6a8SRichard Alpe 700655f6a8SRichard Alpe __TIPC_NL_CMD_MAX, 710655f6a8SRichard Alpe TIPC_NL_CMD_MAX = __TIPC_NL_CMD_MAX - 1 720655f6a8SRichard Alpe }; 730655f6a8SRichard Alpe 740655f6a8SRichard Alpe /* Top level netlink attributes */ 750655f6a8SRichard Alpe enum { 760655f6a8SRichard Alpe TIPC_NLA_UNSPEC, 770655f6a8SRichard Alpe TIPC_NLA_BEARER, /* nest */ 7834b78a12SRichard Alpe TIPC_NLA_SOCK, /* nest */ 791a1a143dSRichard Alpe TIPC_NLA_PUBL, /* nest */ 807be57fc6SRichard Alpe TIPC_NLA_LINK, /* nest */ 8146f15c67SRichard Alpe TIPC_NLA_MEDIA, /* nest */ 823e4b6ab5SRichard Alpe TIPC_NLA_NODE, /* nest */ 83fd3cf2adSRichard Alpe TIPC_NLA_NET, /* nest */ 841593123aSRichard Alpe TIPC_NLA_NAME_TABLE, /* nest */ 857b3f5229SParthasarathy Bhuvaragan TIPC_NLA_MON, /* nest */ 86cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER, /* nest */ 870655f6a8SRichard Alpe 880655f6a8SRichard Alpe __TIPC_NLA_MAX, 890655f6a8SRichard Alpe TIPC_NLA_MAX = __TIPC_NLA_MAX - 1 900655f6a8SRichard Alpe }; 910655f6a8SRichard Alpe 920655f6a8SRichard Alpe /* Bearer info */ 930655f6a8SRichard Alpe enum { 940655f6a8SRichard Alpe TIPC_NLA_BEARER_UNSPEC, 950655f6a8SRichard Alpe TIPC_NLA_BEARER_NAME, /* string */ 960655f6a8SRichard Alpe TIPC_NLA_BEARER_PROP, /* nest */ 970655f6a8SRichard Alpe TIPC_NLA_BEARER_DOMAIN, /* u32 */ 98d0f91938SErik Hugne TIPC_NLA_BEARER_UDP_OPTS, /* nest */ 990655f6a8SRichard Alpe 1000655f6a8SRichard Alpe __TIPC_NLA_BEARER_MAX, 1010655f6a8SRichard Alpe TIPC_NLA_BEARER_MAX = __TIPC_NLA_BEARER_MAX - 1 1020655f6a8SRichard Alpe }; 1030655f6a8SRichard Alpe 104d0f91938SErik Hugne enum { 105d0f91938SErik Hugne TIPC_NLA_UDP_UNSPEC, 106d0f91938SErik Hugne TIPC_NLA_UDP_LOCAL, /* sockaddr_storage */ 107d0f91938SErik Hugne TIPC_NLA_UDP_REMOTE, /* sockaddr_storage */ 108fdb3acccSRichard Alpe TIPC_NLA_UDP_MULTI_REMOTEIP, /* flag */ 109d0f91938SErik Hugne 110d0f91938SErik Hugne __TIPC_NLA_UDP_MAX, 111d0f91938SErik Hugne TIPC_NLA_UDP_MAX = __TIPC_NLA_UDP_MAX - 1 112d0f91938SErik Hugne }; 11334b78a12SRichard Alpe /* Socket info */ 11434b78a12SRichard Alpe enum { 11534b78a12SRichard Alpe TIPC_NLA_SOCK_UNSPEC, 11634b78a12SRichard Alpe TIPC_NLA_SOCK_ADDR, /* u32 */ 11734b78a12SRichard Alpe TIPC_NLA_SOCK_REF, /* u32 */ 11834b78a12SRichard Alpe TIPC_NLA_SOCK_CON, /* nest */ 11934b78a12SRichard Alpe TIPC_NLA_SOCK_HAS_PUBL, /* flag */ 120c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT, /* nest */ 121c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_TYPE, /* u32 */ 122c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_INO, /* u32 */ 123c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_UID, /* u32 */ 124c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_TIPC_STATE, /* u32 */ 125c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_COOKIE, /* u64 */ 126c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_PAD, /* flag */ 127a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP, /* nest */ 12834b78a12SRichard Alpe 12934b78a12SRichard Alpe __TIPC_NLA_SOCK_MAX, 13034b78a12SRichard Alpe TIPC_NLA_SOCK_MAX = __TIPC_NLA_SOCK_MAX - 1 13134b78a12SRichard Alpe }; 13234b78a12SRichard Alpe 1337be57fc6SRichard Alpe /* Link info */ 1347be57fc6SRichard Alpe enum { 1357be57fc6SRichard Alpe TIPC_NLA_LINK_UNSPEC, 1367be57fc6SRichard Alpe TIPC_NLA_LINK_NAME, /* string */ 1377be57fc6SRichard Alpe TIPC_NLA_LINK_DEST, /* u32 */ 1387be57fc6SRichard Alpe TIPC_NLA_LINK_MTU, /* u32 */ 1397be57fc6SRichard Alpe TIPC_NLA_LINK_BROADCAST, /* flag */ 1407be57fc6SRichard Alpe TIPC_NLA_LINK_UP, /* flag */ 1417be57fc6SRichard Alpe TIPC_NLA_LINK_ACTIVE, /* flag */ 1427be57fc6SRichard Alpe TIPC_NLA_LINK_PROP, /* nest */ 1437be57fc6SRichard Alpe TIPC_NLA_LINK_STATS, /* nest */ 1447be57fc6SRichard Alpe TIPC_NLA_LINK_RX, /* u32 */ 1457be57fc6SRichard Alpe TIPC_NLA_LINK_TX, /* u32 */ 1467be57fc6SRichard Alpe 1477be57fc6SRichard Alpe __TIPC_NLA_LINK_MAX, 1487be57fc6SRichard Alpe TIPC_NLA_LINK_MAX = __TIPC_NLA_LINK_MAX - 1 1497be57fc6SRichard Alpe }; 1507be57fc6SRichard Alpe 15146f15c67SRichard Alpe /* Media info */ 15246f15c67SRichard Alpe enum { 15346f15c67SRichard Alpe TIPC_NLA_MEDIA_UNSPEC, 15446f15c67SRichard Alpe TIPC_NLA_MEDIA_NAME, /* string */ 15546f15c67SRichard Alpe TIPC_NLA_MEDIA_PROP, /* nest */ 15646f15c67SRichard Alpe 15746f15c67SRichard Alpe __TIPC_NLA_MEDIA_MAX, 15846f15c67SRichard Alpe TIPC_NLA_MEDIA_MAX = __TIPC_NLA_MEDIA_MAX - 1 15946f15c67SRichard Alpe }; 16046f15c67SRichard Alpe 1613e4b6ab5SRichard Alpe /* Node info */ 1623e4b6ab5SRichard Alpe enum { 1633e4b6ab5SRichard Alpe TIPC_NLA_NODE_UNSPEC, 1643e4b6ab5SRichard Alpe TIPC_NLA_NODE_ADDR, /* u32 */ 1653e4b6ab5SRichard Alpe TIPC_NLA_NODE_UP, /* flag */ 166e1f32190STuong Lien TIPC_NLA_NODE_ID, /* data */ 167e1f32190STuong Lien TIPC_NLA_NODE_KEY, /* data */ 168daef1ee3STuong Lien TIPC_NLA_NODE_KEY_MASTER, /* flag */ 169*23700da2STuong Lien TIPC_NLA_NODE_REKEYING, /* u32 */ 1703e4b6ab5SRichard Alpe 1713e4b6ab5SRichard Alpe __TIPC_NLA_NODE_MAX, 1723e4b6ab5SRichard Alpe TIPC_NLA_NODE_MAX = __TIPC_NLA_NODE_MAX - 1 1733e4b6ab5SRichard Alpe }; 1743e4b6ab5SRichard Alpe 175fd3cf2adSRichard Alpe /* Net info */ 176fd3cf2adSRichard Alpe enum { 177fd3cf2adSRichard Alpe TIPC_NLA_NET_UNSPEC, 178fd3cf2adSRichard Alpe TIPC_NLA_NET_ID, /* u32 */ 17927c21416SRichard Alpe TIPC_NLA_NET_ADDR, /* u32 */ 180d50ccc2dSJon Maloy TIPC_NLA_NET_NODEID, /* u64 */ 181d50ccc2dSJon Maloy TIPC_NLA_NET_NODEID_W1, /* u64 */ 182e1b5e598SJohn Rutherford TIPC_NLA_NET_ADDR_LEGACY, /* flag */ 183fd3cf2adSRichard Alpe 184fd3cf2adSRichard Alpe __TIPC_NLA_NET_MAX, 185fd3cf2adSRichard Alpe TIPC_NLA_NET_MAX = __TIPC_NLA_NET_MAX - 1 186fd3cf2adSRichard Alpe }; 187fd3cf2adSRichard Alpe 1881593123aSRichard Alpe /* Name table info */ 1891593123aSRichard Alpe enum { 1901593123aSRichard Alpe TIPC_NLA_NAME_TABLE_UNSPEC, 1911593123aSRichard Alpe TIPC_NLA_NAME_TABLE_PUBL, /* nest */ 1921593123aSRichard Alpe 1931593123aSRichard Alpe __TIPC_NLA_NAME_TABLE_MAX, 1941593123aSRichard Alpe TIPC_NLA_NAME_TABLE_MAX = __TIPC_NLA_NAME_TABLE_MAX - 1 1951593123aSRichard Alpe }; 1961593123aSRichard Alpe 1977b3f5229SParthasarathy Bhuvaragan /* Monitor info */ 1987b3f5229SParthasarathy Bhuvaragan enum { 1997b3f5229SParthasarathy Bhuvaragan TIPC_NLA_MON_UNSPEC, 2007b3f5229SParthasarathy Bhuvaragan TIPC_NLA_MON_ACTIVATION_THRESHOLD, /* u32 */ 201cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_REF, /* u32 */ 202cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_ACTIVE, /* flag */ 203cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_BEARER_NAME, /* string */ 204cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEERCNT, /* u32 */ 205cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_LISTGEN, /* u32 */ 2067b3f5229SParthasarathy Bhuvaragan 2077b3f5229SParthasarathy Bhuvaragan __TIPC_NLA_MON_MAX, 2087b3f5229SParthasarathy Bhuvaragan TIPC_NLA_MON_MAX = __TIPC_NLA_MON_MAX - 1 2097b3f5229SParthasarathy Bhuvaragan }; 2107b3f5229SParthasarathy Bhuvaragan 2111a1a143dSRichard Alpe /* Publication info */ 2121a1a143dSRichard Alpe enum { 2131a1a143dSRichard Alpe TIPC_NLA_PUBL_UNSPEC, 2141a1a143dSRichard Alpe 2151a1a143dSRichard Alpe TIPC_NLA_PUBL_TYPE, /* u32 */ 2161a1a143dSRichard Alpe TIPC_NLA_PUBL_LOWER, /* u32 */ 2171a1a143dSRichard Alpe TIPC_NLA_PUBL_UPPER, /* u32 */ 2181a1a143dSRichard Alpe TIPC_NLA_PUBL_SCOPE, /* u32 */ 2191a1a143dSRichard Alpe TIPC_NLA_PUBL_NODE, /* u32 */ 2201a1a143dSRichard Alpe TIPC_NLA_PUBL_REF, /* u32 */ 2211a1a143dSRichard Alpe TIPC_NLA_PUBL_KEY, /* u32 */ 2221a1a143dSRichard Alpe 2231a1a143dSRichard Alpe __TIPC_NLA_PUBL_MAX, 2241a1a143dSRichard Alpe TIPC_NLA_PUBL_MAX = __TIPC_NLA_PUBL_MAX - 1 2251a1a143dSRichard Alpe }; 2261a1a143dSRichard Alpe 227cf6f7e1dSParthasarathy Bhuvaragan /* Monitor peer info */ 228cf6f7e1dSParthasarathy Bhuvaragan enum { 229cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_UNSPEC, 230cf6f7e1dSParthasarathy Bhuvaragan 231cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_ADDR, /* u32 */ 232cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_DOMGEN, /* u32 */ 233cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_APPLIED, /* u32 */ 234cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_UPMAP, /* u64 */ 235cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_MEMBERS, /* tlv */ 236cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_UP, /* flag */ 237cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_HEAD, /* flag */ 238cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_LOCAL, /* flag */ 239cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_PAD, /* flag */ 240cf6f7e1dSParthasarathy Bhuvaragan 241cf6f7e1dSParthasarathy Bhuvaragan __TIPC_NLA_MON_PEER_MAX, 242cf6f7e1dSParthasarathy Bhuvaragan TIPC_NLA_MON_PEER_MAX = __TIPC_NLA_MON_PEER_MAX - 1 243cf6f7e1dSParthasarathy Bhuvaragan }; 244cf6f7e1dSParthasarathy Bhuvaragan 245a1be5a20SGhantaKrishnamurthy MohanKrishna /* Nest, socket group info */ 246a1be5a20SGhantaKrishnamurthy MohanKrishna enum { 247a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_ID, /* u32 */ 248a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_OPEN, /* flag */ 249a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_NODE_SCOPE, /* flag */ 250a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_CLUSTER_SCOPE, /* flag */ 251a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_INSTANCE, /* u32 */ 252a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_BC_SEND_NEXT, /* u32 */ 253a1be5a20SGhantaKrishnamurthy MohanKrishna 254a1be5a20SGhantaKrishnamurthy MohanKrishna __TIPC_NLA_SOCK_GROUP_MAX, 255a1be5a20SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_GROUP_MAX = __TIPC_NLA_SOCK_GROUP_MAX - 1 256a1be5a20SGhantaKrishnamurthy MohanKrishna }; 257a1be5a20SGhantaKrishnamurthy MohanKrishna 25834b78a12SRichard Alpe /* Nest, connection info */ 25934b78a12SRichard Alpe enum { 26034b78a12SRichard Alpe TIPC_NLA_CON_UNSPEC, 26134b78a12SRichard Alpe 26234b78a12SRichard Alpe TIPC_NLA_CON_FLAG, /* flag */ 26334b78a12SRichard Alpe TIPC_NLA_CON_NODE, /* u32 */ 26434b78a12SRichard Alpe TIPC_NLA_CON_SOCK, /* u32 */ 26534b78a12SRichard Alpe TIPC_NLA_CON_TYPE, /* u32 */ 26634b78a12SRichard Alpe TIPC_NLA_CON_INST, /* u32 */ 26734b78a12SRichard Alpe 26834b78a12SRichard Alpe __TIPC_NLA_CON_MAX, 26934b78a12SRichard Alpe TIPC_NLA_CON_MAX = __TIPC_NLA_CON_MAX - 1 27034b78a12SRichard Alpe }; 27134b78a12SRichard Alpe 272c30b70deSGhantaKrishnamurthy MohanKrishna /* Nest, socket statistics info */ 273c30b70deSGhantaKrishnamurthy MohanKrishna enum { 274c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT_RCVQ, /* u32 */ 275c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT_SENDQ, /* u32 */ 276c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT_LINK_CONG, /* flag */ 277c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT_CONN_CONG, /* flag */ 278872619d8SGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT_DROP, /* u32 */ 279c30b70deSGhantaKrishnamurthy MohanKrishna 280c30b70deSGhantaKrishnamurthy MohanKrishna __TIPC_NLA_SOCK_STAT_MAX, 281c30b70deSGhantaKrishnamurthy MohanKrishna TIPC_NLA_SOCK_STAT_MAX = __TIPC_NLA_SOCK_STAT_MAX - 1 282c30b70deSGhantaKrishnamurthy MohanKrishna }; 283c30b70deSGhantaKrishnamurthy MohanKrishna 2840655f6a8SRichard Alpe /* Nest, link propreties. Valid for link, media and bearer */ 2850655f6a8SRichard Alpe enum { 2860655f6a8SRichard Alpe TIPC_NLA_PROP_UNSPEC, 2870655f6a8SRichard Alpe 2880655f6a8SRichard Alpe TIPC_NLA_PROP_PRIO, /* u32 */ 2890655f6a8SRichard Alpe TIPC_NLA_PROP_TOL, /* u32 */ 2900655f6a8SRichard Alpe TIPC_NLA_PROP_WIN, /* u32 */ 291901271e0SGhantaKrishnamurthy MohanKrishna TIPC_NLA_PROP_MTU, /* u32 */ 29202ec6cafSHoang Le TIPC_NLA_PROP_BROADCAST, /* u32 */ 29302ec6cafSHoang Le TIPC_NLA_PROP_BROADCAST_RATIO, /* u32 */ 2940655f6a8SRichard Alpe 2950655f6a8SRichard Alpe __TIPC_NLA_PROP_MAX, 2960655f6a8SRichard Alpe TIPC_NLA_PROP_MAX = __TIPC_NLA_PROP_MAX - 1 2970655f6a8SRichard Alpe }; 2980655f6a8SRichard Alpe 2997be57fc6SRichard Alpe /* Nest, statistics info */ 3007be57fc6SRichard Alpe enum { 3017be57fc6SRichard Alpe TIPC_NLA_STATS_UNSPEC, 3027be57fc6SRichard Alpe 3037be57fc6SRichard Alpe TIPC_NLA_STATS_RX_INFO, /* u32 */ 3047be57fc6SRichard Alpe TIPC_NLA_STATS_RX_FRAGMENTS, /* u32 */ 3057be57fc6SRichard Alpe TIPC_NLA_STATS_RX_FRAGMENTED, /* u32 */ 3067be57fc6SRichard Alpe TIPC_NLA_STATS_RX_BUNDLES, /* u32 */ 3077be57fc6SRichard Alpe TIPC_NLA_STATS_RX_BUNDLED, /* u32 */ 3087be57fc6SRichard Alpe TIPC_NLA_STATS_TX_INFO, /* u32 */ 3097be57fc6SRichard Alpe TIPC_NLA_STATS_TX_FRAGMENTS, /* u32 */ 3107be57fc6SRichard Alpe TIPC_NLA_STATS_TX_FRAGMENTED, /* u32 */ 3117be57fc6SRichard Alpe TIPC_NLA_STATS_TX_BUNDLES, /* u32 */ 3127be57fc6SRichard Alpe TIPC_NLA_STATS_TX_BUNDLED, /* u32 */ 3137be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_PROF_TOT, /* u32 */ 3147be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_CNT, /* u32 */ 3157be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_TOT, /* u32 */ 3167be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P0, /* u32 */ 3177be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P1, /* u32 */ 3187be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P2, /* u32 */ 3197be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P3, /* u32 */ 3207be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P4, /* u32 */ 3217be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P5, /* u32 */ 3227be57fc6SRichard Alpe TIPC_NLA_STATS_MSG_LEN_P6, /* u32 */ 3237be57fc6SRichard Alpe TIPC_NLA_STATS_RX_STATES, /* u32 */ 3247be57fc6SRichard Alpe TIPC_NLA_STATS_RX_PROBES, /* u32 */ 3257be57fc6SRichard Alpe TIPC_NLA_STATS_RX_NACKS, /* u32 */ 3267be57fc6SRichard Alpe TIPC_NLA_STATS_RX_DEFERRED, /* u32 */ 3277be57fc6SRichard Alpe TIPC_NLA_STATS_TX_STATES, /* u32 */ 3287be57fc6SRichard Alpe TIPC_NLA_STATS_TX_PROBES, /* u32 */ 3297be57fc6SRichard Alpe TIPC_NLA_STATS_TX_NACKS, /* u32 */ 3307be57fc6SRichard Alpe TIPC_NLA_STATS_TX_ACKS, /* u32 */ 3317be57fc6SRichard Alpe TIPC_NLA_STATS_RETRANSMITTED, /* u32 */ 3327be57fc6SRichard Alpe TIPC_NLA_STATS_DUPLICATES, /* u32 */ 3337be57fc6SRichard Alpe TIPC_NLA_STATS_LINK_CONGS, /* u32 */ 3347be57fc6SRichard Alpe TIPC_NLA_STATS_MAX_QUEUE, /* u32 */ 3357be57fc6SRichard Alpe TIPC_NLA_STATS_AVG_QUEUE, /* u32 */ 3367be57fc6SRichard Alpe 3377be57fc6SRichard Alpe __TIPC_NLA_STATS_MAX, 3387be57fc6SRichard Alpe TIPC_NLA_STATS_MAX = __TIPC_NLA_STATS_MAX - 1 3397be57fc6SRichard Alpe }; 3407be57fc6SRichard Alpe 3410655f6a8SRichard Alpe #endif 342