2009-03-04 04:28:35 +01:00
|
|
|
/****************************************************************************
|
|
|
|
****************************************************************************
|
|
|
|
***
|
|
|
|
*** This header was automatically generated from a Linux kernel header
|
|
|
|
*** of the same name, to make information necessary for userspace to
|
|
|
|
*** call into the kernel available to libc. It contains only constants,
|
|
|
|
*** structures, and macros generated from the original header, and thus,
|
|
|
|
*** contains no copyrightable information.
|
|
|
|
***
|
2012-03-07 00:45:52 +01:00
|
|
|
*** To edit the content of this header, modify the corresponding
|
|
|
|
*** source file (e.g. under external/kernel-headers/original/) then
|
|
|
|
*** run bionic/libc/kernel/tools/update_all.py
|
|
|
|
***
|
|
|
|
*** Any manual change here will be lost the next time this script will
|
|
|
|
*** be run. You've been warned!
|
|
|
|
***
|
2009-03-04 04:28:35 +01:00
|
|
|
****************************************************************************
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef __LINUX_RTNETLINK_H
|
|
|
|
#define __LINUX_RTNETLINK_H
|
2010-04-07 03:49:49 +02:00
|
|
|
#include <linux/types.h>
|
2009-03-04 04:28:35 +01:00
|
|
|
#include <linux/netlink.h>
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#include <linux/if_link.h>
|
|
|
|
#include <linux/if_addr.h>
|
|
|
|
#include <linux/neighbour.h>
|
2011-01-07 00:30:35 +01:00
|
|
|
#define RTNL_FAMILY_IPMR 128
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-07 00:30:35 +01:00
|
|
|
#define RTNL_FAMILY_IP6MR 129
|
|
|
|
#define RTNL_FAMILY_MAX 129
|
2009-03-04 04:28:35 +01:00
|
|
|
enum {
|
|
|
|
RTM_BASE = 16,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_BASE RTM_BASE
|
|
|
|
RTM_NEWLINK = 16,
|
|
|
|
#define RTM_NEWLINK RTM_NEWLINK
|
|
|
|
RTM_DELLINK,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_DELLINK RTM_DELLINK
|
|
|
|
RTM_GETLINK,
|
|
|
|
#define RTM_GETLINK RTM_GETLINK
|
|
|
|
RTM_SETLINK,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_SETLINK RTM_SETLINK
|
|
|
|
RTM_NEWADDR = 20,
|
|
|
|
#define RTM_NEWADDR RTM_NEWADDR
|
|
|
|
RTM_DELADDR,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_DELADDR RTM_DELADDR
|
|
|
|
RTM_GETADDR,
|
|
|
|
#define RTM_GETADDR RTM_GETADDR
|
|
|
|
RTM_NEWROUTE = 24,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_NEWROUTE RTM_NEWROUTE
|
|
|
|
RTM_DELROUTE,
|
|
|
|
#define RTM_DELROUTE RTM_DELROUTE
|
|
|
|
RTM_GETROUTE,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_GETROUTE RTM_GETROUTE
|
|
|
|
RTM_NEWNEIGH = 28,
|
|
|
|
#define RTM_NEWNEIGH RTM_NEWNEIGH
|
|
|
|
RTM_DELNEIGH,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_DELNEIGH RTM_DELNEIGH
|
|
|
|
RTM_GETNEIGH,
|
|
|
|
#define RTM_GETNEIGH RTM_GETNEIGH
|
|
|
|
RTM_NEWRULE = 32,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_NEWRULE RTM_NEWRULE
|
|
|
|
RTM_DELRULE,
|
|
|
|
#define RTM_DELRULE RTM_DELRULE
|
|
|
|
RTM_GETRULE,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_GETRULE RTM_GETRULE
|
|
|
|
RTM_NEWQDISC = 36,
|
|
|
|
#define RTM_NEWQDISC RTM_NEWQDISC
|
|
|
|
RTM_DELQDISC,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_DELQDISC RTM_DELQDISC
|
|
|
|
RTM_GETQDISC,
|
|
|
|
#define RTM_GETQDISC RTM_GETQDISC
|
|
|
|
RTM_NEWTCLASS = 40,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_NEWTCLASS RTM_NEWTCLASS
|
|
|
|
RTM_DELTCLASS,
|
|
|
|
#define RTM_DELTCLASS RTM_DELTCLASS
|
|
|
|
RTM_GETTCLASS,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_GETTCLASS RTM_GETTCLASS
|
|
|
|
RTM_NEWTFILTER = 44,
|
|
|
|
#define RTM_NEWTFILTER RTM_NEWTFILTER
|
|
|
|
RTM_DELTFILTER,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_DELTFILTER RTM_DELTFILTER
|
|
|
|
RTM_GETTFILTER,
|
|
|
|
#define RTM_GETTFILTER RTM_GETTFILTER
|
|
|
|
RTM_NEWACTION = 48,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_NEWACTION RTM_NEWACTION
|
|
|
|
RTM_DELACTION,
|
|
|
|
#define RTM_DELACTION RTM_DELACTION
|
|
|
|
RTM_GETACTION,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_GETACTION RTM_GETACTION
|
|
|
|
RTM_NEWPREFIX = 52,
|
|
|
|
#define RTM_NEWPREFIX RTM_NEWPREFIX
|
|
|
|
RTM_GETMULTICAST = 58,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_GETMULTICAST RTM_GETMULTICAST
|
|
|
|
RTM_GETANYCAST = 62,
|
|
|
|
#define RTM_GETANYCAST RTM_GETANYCAST
|
|
|
|
RTM_NEWNEIGHTBL = 64,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_NEWNEIGHTBL RTM_NEWNEIGHTBL
|
|
|
|
RTM_GETNEIGHTBL = 66,
|
|
|
|
#define RTM_GETNEIGHTBL RTM_GETNEIGHTBL
|
|
|
|
RTM_SETNEIGHTBL,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_SETNEIGHTBL RTM_SETNEIGHTBL
|
2010-04-07 03:49:49 +02:00
|
|
|
RTM_NEWNDUSEROPT = 68,
|
|
|
|
#define RTM_NEWNDUSEROPT RTM_NEWNDUSEROPT
|
|
|
|
RTM_NEWADDRLABEL = 72,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define RTM_NEWADDRLABEL RTM_NEWADDRLABEL
|
|
|
|
RTM_DELADDRLABEL,
|
|
|
|
#define RTM_DELADDRLABEL RTM_DELADDRLABEL
|
|
|
|
RTM_GETADDRLABEL,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define RTM_GETADDRLABEL RTM_GETADDRLABEL
|
|
|
|
RTM_GETDCB = 78,
|
|
|
|
#define RTM_GETDCB RTM_GETDCB
|
|
|
|
RTM_SETDCB,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define RTM_SETDCB RTM_SETDCB
|
2009-03-04 04:28:35 +01:00
|
|
|
__RTM_MAX,
|
|
|
|
#define RTM_MAX (((__RTM_MAX + 3) & ~3) - 1)
|
|
|
|
};
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_NR_MSGTYPES (RTM_MAX + 1 - RTM_BASE)
|
|
|
|
#define RTM_NR_FAMILIES (RTM_NR_MSGTYPES >> 2)
|
|
|
|
#define RTM_FAM(cmd) (((cmd) - RTM_BASE) >> 2)
|
2011-01-07 00:30:35 +01:00
|
|
|
struct rtattr {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned short rta_len;
|
|
|
|
unsigned short rta_type;
|
|
|
|
};
|
|
|
|
#define RTA_ALIGNTO 4
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTA_ALIGN(len) ( ((len)+RTA_ALIGNTO-1) & ~(RTA_ALIGNTO-1) )
|
|
|
|
#define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rtattr) && (rta)->rta_len <= (len))
|
|
|
|
#define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
|
|
|
|
#define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
|
|
|
|
#define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
|
|
|
|
#define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
|
2011-01-07 00:30:35 +01:00
|
|
|
struct rtmsg {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char rtm_family;
|
|
|
|
unsigned char rtm_dst_len;
|
|
|
|
unsigned char rtm_src_len;
|
|
|
|
unsigned char rtm_tos;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char rtm_table;
|
|
|
|
unsigned char rtm_protocol;
|
|
|
|
unsigned char rtm_scope;
|
|
|
|
unsigned char rtm_type;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned rtm_flags;
|
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
enum {
|
2009-03-04 04:28:35 +01:00
|
|
|
RTN_UNSPEC,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTN_UNICAST,
|
|
|
|
RTN_LOCAL,
|
|
|
|
RTN_BROADCAST,
|
|
|
|
RTN_ANYCAST,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTN_MULTICAST,
|
|
|
|
RTN_BLACKHOLE,
|
|
|
|
RTN_UNREACHABLE,
|
|
|
|
RTN_PROHIBIT,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTN_THROW,
|
|
|
|
RTN_NAT,
|
|
|
|
RTN_XRESOLVE,
|
|
|
|
__RTN_MAX
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
#define RTN_MAX (__RTN_MAX - 1)
|
|
|
|
#define RTPROT_UNSPEC 0
|
|
|
|
#define RTPROT_REDIRECT 1
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTPROT_KERNEL 2
|
|
|
|
#define RTPROT_BOOT 3
|
|
|
|
#define RTPROT_STATIC 4
|
|
|
|
#define RTPROT_GATED 8
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTPROT_RA 9
|
|
|
|
#define RTPROT_MRT 10
|
|
|
|
#define RTPROT_ZEBRA 11
|
|
|
|
#define RTPROT_BIRD 12
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTPROT_DNROUTED 13
|
|
|
|
#define RTPROT_XORP 14
|
|
|
|
#define RTPROT_NTK 15
|
2010-04-07 03:49:49 +02:00
|
|
|
#define RTPROT_DHCP 16
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-07 00:30:35 +01:00
|
|
|
enum rt_scope_t {
|
2009-03-04 04:28:35 +01:00
|
|
|
RT_SCOPE_UNIVERSE=0,
|
|
|
|
RT_SCOPE_SITE=200,
|
|
|
|
RT_SCOPE_LINK=253,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RT_SCOPE_HOST=254,
|
|
|
|
RT_SCOPE_NOWHERE=255
|
|
|
|
};
|
|
|
|
#define RTM_F_NOTIFY 0x100
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_F_CLONED 0x200
|
|
|
|
#define RTM_F_EQUALIZE 0x400
|
|
|
|
#define RTM_F_PREFIX 0x800
|
2011-01-07 00:30:35 +01:00
|
|
|
enum rt_class_t {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RT_TABLE_UNSPEC=0,
|
2010-04-07 03:49:49 +02:00
|
|
|
RT_TABLE_COMPAT=252,
|
2009-03-04 04:28:35 +01:00
|
|
|
RT_TABLE_DEFAULT=253,
|
|
|
|
RT_TABLE_MAIN=254,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RT_TABLE_LOCAL=255,
|
2010-04-07 03:49:49 +02:00
|
|
|
RT_TABLE_MAX=0xFFFFFFFF
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
enum rtattr_type_t {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTA_UNSPEC,
|
|
|
|
RTA_DST,
|
|
|
|
RTA_SRC,
|
|
|
|
RTA_IIF,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTA_OIF,
|
|
|
|
RTA_GATEWAY,
|
|
|
|
RTA_PRIORITY,
|
|
|
|
RTA_PREFSRC,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTA_METRICS,
|
|
|
|
RTA_MULTIPATH,
|
|
|
|
RTA_PROTOINFO,
|
|
|
|
RTA_FLOW,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTA_CACHEINFO,
|
|
|
|
RTA_SESSION,
|
|
|
|
RTA_MP_ALGO,
|
2010-04-07 03:49:49 +02:00
|
|
|
RTA_TABLE,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-07 00:30:35 +01:00
|
|
|
RTA_MARK,
|
2009-03-04 04:28:35 +01:00
|
|
|
__RTA_MAX
|
|
|
|
};
|
|
|
|
#define RTA_MAX (__RTA_MAX - 1)
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
|
|
|
|
#define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
2011-01-07 00:30:35 +01:00
|
|
|
struct rtnexthop {
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned short rtnh_len;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char rtnh_flags;
|
|
|
|
unsigned char rtnh_hops;
|
|
|
|
int rtnh_ifindex;
|
|
|
|
};
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNH_F_DEAD 1
|
|
|
|
#define RTNH_F_PERVASIVE 2
|
|
|
|
#define RTNH_F_ONLINK 4
|
|
|
|
#define RTNH_ALIGNTO 4
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNH_ALIGN(len) ( ((len)+RTNH_ALIGNTO-1) & ~(RTNH_ALIGNTO-1) )
|
|
|
|
#define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && ((int)(rtnh)->rtnh_len) <= (len))
|
|
|
|
#define RTNH_NEXT(rtnh) ((struct rtnexthop*)(((char*)(rtnh)) + RTNH_ALIGN((rtnh)->rtnh_len)))
|
|
|
|
#define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNH_SPACE(len) RTNH_ALIGN(RTNH_LENGTH(len))
|
|
|
|
#define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
|
2011-01-07 00:30:35 +01:00
|
|
|
struct rta_cacheinfo {
|
2009-03-04 04:28:35 +01:00
|
|
|
__u32 rta_clntref;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
__u32 rta_lastuse;
|
|
|
|
__s32 rta_expires;
|
|
|
|
__u32 rta_error;
|
|
|
|
__u32 rta_used;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNETLINK_HAVE_PEERINFO 1
|
|
|
|
__u32 rta_id;
|
|
|
|
__u32 rta_ts;
|
|
|
|
__u32 rta_tsage;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
enum {
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_UNSPEC,
|
|
|
|
#define RTAX_UNSPEC RTAX_UNSPEC
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_LOCK,
|
|
|
|
#define RTAX_LOCK RTAX_LOCK
|
|
|
|
RTAX_MTU,
|
|
|
|
#define RTAX_MTU RTAX_MTU
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_WINDOW,
|
|
|
|
#define RTAX_WINDOW RTAX_WINDOW
|
|
|
|
RTAX_RTT,
|
|
|
|
#define RTAX_RTT RTAX_RTT
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_RTTVAR,
|
|
|
|
#define RTAX_RTTVAR RTAX_RTTVAR
|
|
|
|
RTAX_SSTHRESH,
|
|
|
|
#define RTAX_SSTHRESH RTAX_SSTHRESH
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_CWND,
|
|
|
|
#define RTAX_CWND RTAX_CWND
|
|
|
|
RTAX_ADVMSS,
|
|
|
|
#define RTAX_ADVMSS RTAX_ADVMSS
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_REORDERING,
|
|
|
|
#define RTAX_REORDERING RTAX_REORDERING
|
|
|
|
RTAX_HOPLIMIT,
|
|
|
|
#define RTAX_HOPLIMIT RTAX_HOPLIMIT
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
RTAX_INITCWND,
|
|
|
|
#define RTAX_INITCWND RTAX_INITCWND
|
|
|
|
RTAX_FEATURES,
|
|
|
|
#define RTAX_FEATURES RTAX_FEATURES
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
RTAX_RTO_MIN,
|
|
|
|
#define RTAX_RTO_MIN RTAX_RTO_MIN
|
2011-01-07 00:30:35 +01:00
|
|
|
RTAX_INITRWND,
|
|
|
|
#define RTAX_INITRWND RTAX_INITRWND
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
__RTAX_MAX
|
|
|
|
};
|
|
|
|
#define RTAX_MAX (__RTAX_MAX - 1)
|
|
|
|
#define RTAX_FEATURE_ECN 0x00000001
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTAX_FEATURE_SACK 0x00000002
|
|
|
|
#define RTAX_FEATURE_TIMESTAMP 0x00000004
|
|
|
|
#define RTAX_FEATURE_ALLFRAG 0x00000008
|
2011-01-07 00:30:35 +01:00
|
|
|
struct rta_session {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
__u8 proto;
|
|
|
|
__u8 pad1;
|
|
|
|
__u16 pad2;
|
|
|
|
union {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct {
|
|
|
|
__u16 sport;
|
|
|
|
__u16 dport;
|
|
|
|
} ports;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
struct {
|
|
|
|
__u8 type;
|
|
|
|
__u8 code;
|
|
|
|
__u16 ident;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
} icmpt;
|
|
|
|
__u32 spi;
|
|
|
|
} u;
|
|
|
|
};
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-07 00:30:35 +01:00
|
|
|
struct rtgenmsg {
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char rtgen_family;
|
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
struct ifinfomsg {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char ifi_family;
|
|
|
|
unsigned char __ifi_pad;
|
|
|
|
unsigned short ifi_type;
|
|
|
|
int ifi_index;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned ifi_flags;
|
|
|
|
unsigned ifi_change;
|
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
struct prefixmsg {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char prefix_family;
|
|
|
|
unsigned char prefix_pad1;
|
|
|
|
unsigned short prefix_pad2;
|
|
|
|
int prefix_ifindex;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char prefix_type;
|
|
|
|
unsigned char prefix_len;
|
|
|
|
unsigned char prefix_flags;
|
|
|
|
unsigned char prefix_pad3;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
PREFIX_UNSPEC,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
PREFIX_ADDRESS,
|
|
|
|
PREFIX_CACHEINFO,
|
|
|
|
__PREFIX_MAX
|
|
|
|
};
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define PREFIX_MAX (__PREFIX_MAX - 1)
|
2011-01-07 00:30:35 +01:00
|
|
|
struct prefix_cacheinfo {
|
2009-03-04 04:28:35 +01:00
|
|
|
__u32 preferred_time;
|
|
|
|
__u32 valid_time;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
struct tcmsg {
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char tcm_family;
|
|
|
|
unsigned char tcm__pad1;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned short tcm__pad2;
|
|
|
|
int tcm_ifindex;
|
|
|
|
__u32 tcm_handle;
|
|
|
|
__u32 tcm_parent;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
__u32 tcm_info;
|
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
enum {
|
2009-03-04 04:28:35 +01:00
|
|
|
TCA_UNSPEC,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
TCA_KIND,
|
|
|
|
TCA_OPTIONS,
|
|
|
|
TCA_STATS,
|
|
|
|
TCA_XSTATS,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
TCA_RATE,
|
|
|
|
TCA_FCNT,
|
|
|
|
TCA_STATS2,
|
2010-04-07 03:49:49 +02:00
|
|
|
TCA_STAB,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
__TCA_MAX
|
|
|
|
};
|
|
|
|
#define TCA_MAX (__TCA_MAX - 1)
|
|
|
|
#define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcmsg))
|
2011-01-07 00:30:35 +01:00
|
|
|
struct nduseroptmsg {
|
2010-04-07 03:49:49 +02:00
|
|
|
unsigned char nduseropt_family;
|
|
|
|
unsigned char nduseropt_pad1;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
unsigned short nduseropt_opts_len;
|
|
|
|
int nduseropt_ifindex;
|
|
|
|
__u8 nduseropt_icmp_type;
|
|
|
|
__u8 nduseropt_icmp_code;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
unsigned short nduseropt_pad2;
|
|
|
|
unsigned int nduseropt_pad3;
|
|
|
|
};
|
2011-01-07 00:30:35 +01:00
|
|
|
enum {
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
NDUSEROPT_UNSPEC,
|
|
|
|
NDUSEROPT_SRCADDR,
|
|
|
|
__NDUSEROPT_MAX
|
|
|
|
};
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define NDUSEROPT_MAX (__NDUSEROPT_MAX - 1)
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTMGRP_LINK 1
|
|
|
|
#define RTMGRP_NOTIFY 2
|
|
|
|
#define RTMGRP_NEIGH 4
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTMGRP_TC 8
|
|
|
|
#define RTMGRP_IPV4_IFADDR 0x10
|
|
|
|
#define RTMGRP_IPV4_MROUTE 0x20
|
|
|
|
#define RTMGRP_IPV4_ROUTE 0x40
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTMGRP_IPV4_RULE 0x80
|
|
|
|
#define RTMGRP_IPV6_IFADDR 0x100
|
|
|
|
#define RTMGRP_IPV6_MROUTE 0x200
|
|
|
|
#define RTMGRP_IPV6_ROUTE 0x400
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTMGRP_IPV6_IFINFO 0x800
|
|
|
|
#define RTMGRP_DECnet_IFADDR 0x1000
|
|
|
|
#define RTMGRP_DECnet_ROUTE 0x4000
|
|
|
|
#define RTMGRP_IPV6_PREFIX 0x20000
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
enum rtnetlink_groups {
|
|
|
|
RTNLGRP_NONE,
|
|
|
|
#define RTNLGRP_NONE RTNLGRP_NONE
|
|
|
|
RTNLGRP_LINK,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_LINK RTNLGRP_LINK
|
|
|
|
RTNLGRP_NOTIFY,
|
|
|
|
#define RTNLGRP_NOTIFY RTNLGRP_NOTIFY
|
|
|
|
RTNLGRP_NEIGH,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_NEIGH RTNLGRP_NEIGH
|
|
|
|
RTNLGRP_TC,
|
|
|
|
#define RTNLGRP_TC RTNLGRP_TC
|
|
|
|
RTNLGRP_IPV4_IFADDR,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_IPV4_IFADDR RTNLGRP_IPV4_IFADDR
|
|
|
|
RTNLGRP_IPV4_MROUTE,
|
|
|
|
#define RTNLGRP_IPV4_MROUTE RTNLGRP_IPV4_MROUTE
|
|
|
|
RTNLGRP_IPV4_ROUTE,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_IPV4_ROUTE RTNLGRP_IPV4_ROUTE
|
|
|
|
RTNLGRP_IPV4_RULE,
|
|
|
|
#define RTNLGRP_IPV4_RULE RTNLGRP_IPV4_RULE
|
|
|
|
RTNLGRP_IPV6_IFADDR,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_IPV6_IFADDR RTNLGRP_IPV6_IFADDR
|
|
|
|
RTNLGRP_IPV6_MROUTE,
|
|
|
|
#define RTNLGRP_IPV6_MROUTE RTNLGRP_IPV6_MROUTE
|
|
|
|
RTNLGRP_IPV6_ROUTE,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_IPV6_ROUTE RTNLGRP_IPV6_ROUTE
|
|
|
|
RTNLGRP_IPV6_IFINFO,
|
|
|
|
#define RTNLGRP_IPV6_IFINFO RTNLGRP_IPV6_IFINFO
|
|
|
|
RTNLGRP_DECnet_IFADDR,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_DECnet_IFADDR RTNLGRP_DECnet_IFADDR
|
|
|
|
RTNLGRP_NOP2,
|
|
|
|
RTNLGRP_DECnet_ROUTE,
|
|
|
|
#define RTNLGRP_DECnet_ROUTE RTNLGRP_DECnet_ROUTE
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
RTNLGRP_DECnet_RULE,
|
|
|
|
#define RTNLGRP_DECnet_RULE RTNLGRP_DECnet_RULE
|
2009-03-04 04:28:35 +01:00
|
|
|
RTNLGRP_NOP4,
|
|
|
|
RTNLGRP_IPV6_PREFIX,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define RTNLGRP_IPV6_PREFIX RTNLGRP_IPV6_PREFIX
|
2010-04-07 03:49:49 +02:00
|
|
|
RTNLGRP_IPV6_RULE,
|
|
|
|
#define RTNLGRP_IPV6_RULE RTNLGRP_IPV6_RULE
|
|
|
|
RTNLGRP_ND_USEROPT,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define RTNLGRP_ND_USEROPT RTNLGRP_ND_USEROPT
|
|
|
|
RTNLGRP_PHONET_IFADDR,
|
|
|
|
#define RTNLGRP_PHONET_IFADDR RTNLGRP_PHONET_IFADDR
|
|
|
|
RTNLGRP_PHONET_ROUTE,
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2010-04-07 03:49:49 +02:00
|
|
|
#define RTNLGRP_PHONET_ROUTE RTNLGRP_PHONET_ROUTE
|
2009-03-04 04:28:35 +01:00
|
|
|
__RTNLGRP_MAX
|
|
|
|
};
|
|
|
|
#define RTNLGRP_MAX (__RTNLGRP_MAX - 1)
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2011-01-07 00:30:35 +01:00
|
|
|
struct tcamsg {
|
2009-03-04 04:28:35 +01:00
|
|
|
unsigned char tca_family;
|
|
|
|
unsigned char tca__pad1;
|
|
|
|
unsigned short tca__pad2;
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
};
|
|
|
|
#define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
|
|
|
#define TA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcamsg))
|
|
|
|
#define TCA_ACT_TAB 1
|
2012-03-07 00:45:52 +01:00
|
|
|
/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
|
2009-03-04 04:28:35 +01:00
|
|
|
#define TCAA_MAX 1
|
|
|
|
#endif
|