diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/linux-headers/linux/nexthop.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/linux-headers/linux/nexthop.h')
-rw-r--r-- | contrib/libs/linux-headers/linux/nexthop.h | 112 |
1 files changed, 56 insertions, 56 deletions
diff --git a/contrib/libs/linux-headers/linux/nexthop.h b/contrib/libs/linux-headers/linux/nexthop.h index afbcb575db..b56c5b8954 100644 --- a/contrib/libs/linux-headers/linux/nexthop.h +++ b/contrib/libs/linux-headers/linux/nexthop.h @@ -1,56 +1,56 @@ -/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ -#ifndef _LINUX_NEXTHOP_H -#define _LINUX_NEXTHOP_H - -#include <linux/types.h> - -struct nhmsg { - unsigned char nh_family; - unsigned char nh_scope; /* return only */ - unsigned char nh_protocol; /* Routing protocol that installed nh */ - unsigned char resvd; - unsigned int nh_flags; /* RTNH_F flags */ -}; - -/* entry in a nexthop group */ -struct nexthop_grp { - __u32 id; /* nexthop id - must exist */ - __u8 weight; /* weight of this nexthop */ - __u8 resvd1; - __u16 resvd2; -}; - -enum { - NEXTHOP_GRP_TYPE_MPATH, /* default type if not specified */ - __NEXTHOP_GRP_TYPE_MAX, -}; - -#define NEXTHOP_GRP_TYPE_MAX (__NEXTHOP_GRP_TYPE_MAX - 1) - -enum { - NHA_UNSPEC, - NHA_ID, /* u32; id for nexthop. id == 0 means auto-assign */ - - NHA_GROUP, /* array of nexthop_grp */ - NHA_GROUP_TYPE, /* u16 one of NEXTHOP_GRP_TYPE */ - /* if NHA_GROUP attribute is added, no other attributes can be set */ - - NHA_BLACKHOLE, /* flag; nexthop used to blackhole packets */ - /* if NHA_BLACKHOLE is added, OIF, GATEWAY, ENCAP can not be set */ - - NHA_OIF, /* u32; nexthop device */ - NHA_GATEWAY, /* be32 (IPv4) or in6_addr (IPv6) gw address */ - NHA_ENCAP_TYPE, /* u16; lwt encap type */ - NHA_ENCAP, /* lwt encap data */ - - /* NHA_OIF can be appended to dump request to return only - * nexthops using given device - */ - NHA_GROUPS, /* flag; only return nexthop groups in dump */ - NHA_MASTER, /* u32; only return nexthops with given master dev */ - - __NHA_MAX, -}; - -#define NHA_MAX (__NHA_MAX - 1) -#endif +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _LINUX_NEXTHOP_H +#define _LINUX_NEXTHOP_H + +#include <linux/types.h> + +struct nhmsg { + unsigned char nh_family; + unsigned char nh_scope; /* return only */ + unsigned char nh_protocol; /* Routing protocol that installed nh */ + unsigned char resvd; + unsigned int nh_flags; /* RTNH_F flags */ +}; + +/* entry in a nexthop group */ +struct nexthop_grp { + __u32 id; /* nexthop id - must exist */ + __u8 weight; /* weight of this nexthop */ + __u8 resvd1; + __u16 resvd2; +}; + +enum { + NEXTHOP_GRP_TYPE_MPATH, /* default type if not specified */ + __NEXTHOP_GRP_TYPE_MAX, +}; + +#define NEXTHOP_GRP_TYPE_MAX (__NEXTHOP_GRP_TYPE_MAX - 1) + +enum { + NHA_UNSPEC, + NHA_ID, /* u32; id for nexthop. id == 0 means auto-assign */ + + NHA_GROUP, /* array of nexthop_grp */ + NHA_GROUP_TYPE, /* u16 one of NEXTHOP_GRP_TYPE */ + /* if NHA_GROUP attribute is added, no other attributes can be set */ + + NHA_BLACKHOLE, /* flag; nexthop used to blackhole packets */ + /* if NHA_BLACKHOLE is added, OIF, GATEWAY, ENCAP can not be set */ + + NHA_OIF, /* u32; nexthop device */ + NHA_GATEWAY, /* be32 (IPv4) or in6_addr (IPv6) gw address */ + NHA_ENCAP_TYPE, /* u16; lwt encap type */ + NHA_ENCAP, /* lwt encap data */ + + /* NHA_OIF can be appended to dump request to return only + * nexthops using given device + */ + NHA_GROUPS, /* flag; only return nexthop groups in dump */ + NHA_MASTER, /* u32; only return nexthops with given master dev */ + + __NHA_MAX, +}; + +#define NHA_MAX (__NHA_MAX - 1) +#endif |