Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: neighbour.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef __LINUX_NEIGHBOUR_H
[1] Fix | Delete
#define __LINUX_NEIGHBOUR_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/types.h>
[4] Fix | Delete
#include <linux/netlink.h>
[5] Fix | Delete
[6] Fix | Delete
struct ndmsg {
[7] Fix | Delete
__u8 ndm_family;
[8] Fix | Delete
__u8 ndm_pad1;
[9] Fix | Delete
__u16 ndm_pad2;
[10] Fix | Delete
__s32 ndm_ifindex;
[11] Fix | Delete
__u16 ndm_state;
[12] Fix | Delete
__u8 ndm_flags;
[13] Fix | Delete
__u8 ndm_type;
[14] Fix | Delete
};
[15] Fix | Delete
[16] Fix | Delete
enum {
[17] Fix | Delete
NDA_UNSPEC,
[18] Fix | Delete
NDA_DST,
[19] Fix | Delete
NDA_LLADDR,
[20] Fix | Delete
NDA_CACHEINFO,
[21] Fix | Delete
NDA_PROBES,
[22] Fix | Delete
NDA_VLAN,
[23] Fix | Delete
NDA_PORT,
[24] Fix | Delete
NDA_VNI,
[25] Fix | Delete
NDA_IFINDEX,
[26] Fix | Delete
NDA_MASTER,
[27] Fix | Delete
NDA_LINK_NETNSID,
[28] Fix | Delete
NDA_SRC_VNI,
[29] Fix | Delete
NDA_PROTOCOL, /* Originator of entry */
[30] Fix | Delete
__RH_RESERVED_NDA_NH_ID,
[31] Fix | Delete
NDA_FDB_EXT_ATTRS,
[32] Fix | Delete
__NDA_MAX
[33] Fix | Delete
};
[34] Fix | Delete
[35] Fix | Delete
#define NDA_MAX (__NDA_MAX - 1)
[36] Fix | Delete
[37] Fix | Delete
/*
[38] Fix | Delete
* Neighbor Cache Entry Flags
[39] Fix | Delete
*/
[40] Fix | Delete
[41] Fix | Delete
#define NTF_USE 0x01
[42] Fix | Delete
#define NTF_SELF 0x02
[43] Fix | Delete
#define NTF_MASTER 0x04
[44] Fix | Delete
#define NTF_PROXY 0x08 /* == ATF_PUBL */
[45] Fix | Delete
#define NTF_EXT_LEARNED 0x10
[46] Fix | Delete
#define NTF_OFFLOADED 0x20
[47] Fix | Delete
#define NTF_STICKY 0x40
[48] Fix | Delete
#define NTF_ROUTER 0x80
[49] Fix | Delete
[50] Fix | Delete
/*
[51] Fix | Delete
* Neighbor Cache Entry States.
[52] Fix | Delete
*/
[53] Fix | Delete
[54] Fix | Delete
#define NUD_INCOMPLETE 0x01
[55] Fix | Delete
#define NUD_REACHABLE 0x02
[56] Fix | Delete
#define NUD_STALE 0x04
[57] Fix | Delete
#define NUD_DELAY 0x08
[58] Fix | Delete
#define NUD_PROBE 0x10
[59] Fix | Delete
#define NUD_FAILED 0x20
[60] Fix | Delete
[61] Fix | Delete
/* Dummy states */
[62] Fix | Delete
#define NUD_NOARP 0x40
[63] Fix | Delete
#define NUD_PERMANENT 0x80
[64] Fix | Delete
#define NUD_NONE 0x00
[65] Fix | Delete
[66] Fix | Delete
/* NUD_NOARP & NUD_PERMANENT are pseudostates, they never change
[67] Fix | Delete
* and make no address resolution or NUD.
[68] Fix | Delete
* NUD_PERMANENT also cannot be deleted by garbage collectors.
[69] Fix | Delete
* When NTF_EXT_LEARNED is set for a bridge fdb entry the different cache entry
[70] Fix | Delete
* states don't make sense and thus are ignored. Such entries don't age and
[71] Fix | Delete
* can roam.
[72] Fix | Delete
*/
[73] Fix | Delete
[74] Fix | Delete
struct nda_cacheinfo {
[75] Fix | Delete
__u32 ndm_confirmed;
[76] Fix | Delete
__u32 ndm_used;
[77] Fix | Delete
__u32 ndm_updated;
[78] Fix | Delete
__u32 ndm_refcnt;
[79] Fix | Delete
};
[80] Fix | Delete
[81] Fix | Delete
/*****************************************************************
[82] Fix | Delete
* Neighbour tables specific messages.
[83] Fix | Delete
*
[84] Fix | Delete
* To retrieve the neighbour tables send RTM_GETNEIGHTBL with the
[85] Fix | Delete
* NLM_F_DUMP flag set. Every neighbour table configuration is
[86] Fix | Delete
* spread over multiple messages to avoid running into message
[87] Fix | Delete
* size limits on systems with many interfaces. The first message
[88] Fix | Delete
* in the sequence transports all not device specific data such as
[89] Fix | Delete
* statistics, configuration, and the default parameter set.
[90] Fix | Delete
* This message is followed by 0..n messages carrying device
[91] Fix | Delete
* specific parameter sets.
[92] Fix | Delete
* Although the ordering should be sufficient, NDTA_NAME can be
[93] Fix | Delete
* used to identify sequences. The initial message can be identified
[94] Fix | Delete
* by checking for NDTA_CONFIG. The device specific messages do
[95] Fix | Delete
* not contain this TLV but have NDTPA_IFINDEX set to the
[96] Fix | Delete
* corresponding interface index.
[97] Fix | Delete
*
[98] Fix | Delete
* To change neighbour table attributes, send RTM_SETNEIGHTBL
[99] Fix | Delete
* with NDTA_NAME set. Changeable attribute include NDTA_THRESH[1-3],
[100] Fix | Delete
* NDTA_GC_INTERVAL, and all TLVs in NDTA_PARMS unless marked
[101] Fix | Delete
* otherwise. Device specific parameter sets can be changed by
[102] Fix | Delete
* setting NDTPA_IFINDEX to the interface index of the corresponding
[103] Fix | Delete
* device.
[104] Fix | Delete
****/
[105] Fix | Delete
[106] Fix | Delete
struct ndt_stats {
[107] Fix | Delete
__u64 ndts_allocs;
[108] Fix | Delete
__u64 ndts_destroys;
[109] Fix | Delete
__u64 ndts_hash_grows;
[110] Fix | Delete
__u64 ndts_res_failed;
[111] Fix | Delete
__u64 ndts_lookups;
[112] Fix | Delete
__u64 ndts_hits;
[113] Fix | Delete
__u64 ndts_rcv_probes_mcast;
[114] Fix | Delete
__u64 ndts_rcv_probes_ucast;
[115] Fix | Delete
__u64 ndts_periodic_gc_runs;
[116] Fix | Delete
__u64 ndts_forced_gc_runs;
[117] Fix | Delete
__u64 ndts_table_fulls;
[118] Fix | Delete
};
[119] Fix | Delete
[120] Fix | Delete
enum {
[121] Fix | Delete
NDTPA_UNSPEC,
[122] Fix | Delete
NDTPA_IFINDEX, /* u32, unchangeable */
[123] Fix | Delete
NDTPA_REFCNT, /* u32, read-only */
[124] Fix | Delete
NDTPA_REACHABLE_TIME, /* u64, read-only, msecs */
[125] Fix | Delete
NDTPA_BASE_REACHABLE_TIME, /* u64, msecs */
[126] Fix | Delete
NDTPA_RETRANS_TIME, /* u64, msecs */
[127] Fix | Delete
NDTPA_GC_STALETIME, /* u64, msecs */
[128] Fix | Delete
NDTPA_DELAY_PROBE_TIME, /* u64, msecs */
[129] Fix | Delete
NDTPA_QUEUE_LEN, /* u32 */
[130] Fix | Delete
NDTPA_APP_PROBES, /* u32 */
[131] Fix | Delete
NDTPA_UCAST_PROBES, /* u32 */
[132] Fix | Delete
NDTPA_MCAST_PROBES, /* u32 */
[133] Fix | Delete
NDTPA_ANYCAST_DELAY, /* u64, msecs */
[134] Fix | Delete
NDTPA_PROXY_DELAY, /* u64, msecs */
[135] Fix | Delete
NDTPA_PROXY_QLEN, /* u32 */
[136] Fix | Delete
NDTPA_LOCKTIME, /* u64, msecs */
[137] Fix | Delete
NDTPA_QUEUE_LENBYTES, /* u32 */
[138] Fix | Delete
NDTPA_MCAST_REPROBES, /* u32 */
[139] Fix | Delete
NDTPA_PAD,
[140] Fix | Delete
__NDTPA_MAX
[141] Fix | Delete
};
[142] Fix | Delete
#define NDTPA_MAX (__NDTPA_MAX - 1)
[143] Fix | Delete
[144] Fix | Delete
struct ndtmsg {
[145] Fix | Delete
__u8 ndtm_family;
[146] Fix | Delete
__u8 ndtm_pad1;
[147] Fix | Delete
__u16 ndtm_pad2;
[148] Fix | Delete
};
[149] Fix | Delete
[150] Fix | Delete
struct ndt_config {
[151] Fix | Delete
__u16 ndtc_key_len;
[152] Fix | Delete
__u16 ndtc_entry_size;
[153] Fix | Delete
__u32 ndtc_entries;
[154] Fix | Delete
__u32 ndtc_last_flush; /* delta to now in msecs */
[155] Fix | Delete
__u32 ndtc_last_rand; /* delta to now in msecs */
[156] Fix | Delete
__u32 ndtc_hash_rnd;
[157] Fix | Delete
__u32 ndtc_hash_mask;
[158] Fix | Delete
__u32 ndtc_hash_chain_gc;
[159] Fix | Delete
__u32 ndtc_proxy_qlen;
[160] Fix | Delete
};
[161] Fix | Delete
[162] Fix | Delete
enum {
[163] Fix | Delete
NDTA_UNSPEC,
[164] Fix | Delete
NDTA_NAME, /* char *, unchangeable */
[165] Fix | Delete
NDTA_THRESH1, /* u32 */
[166] Fix | Delete
NDTA_THRESH2, /* u32 */
[167] Fix | Delete
NDTA_THRESH3, /* u32 */
[168] Fix | Delete
NDTA_CONFIG, /* struct ndt_config, read-only */
[169] Fix | Delete
NDTA_PARMS, /* nested TLV NDTPA_* */
[170] Fix | Delete
NDTA_STATS, /* struct ndt_stats, read-only */
[171] Fix | Delete
NDTA_GC_INTERVAL, /* u64, msecs */
[172] Fix | Delete
NDTA_PAD,
[173] Fix | Delete
__NDTA_MAX
[174] Fix | Delete
};
[175] Fix | Delete
#define NDTA_MAX (__NDTA_MAX - 1)
[176] Fix | Delete
[177] Fix | Delete
/* FDB activity notification bits used in NFEA_ACTIVITY_NOTIFY:
[178] Fix | Delete
* - FDB_NOTIFY_BIT - notify on activity/expire for any entry
[179] Fix | Delete
* - FDB_NOTIFY_INACTIVE_BIT - mark as inactive to avoid multiple notifications
[180] Fix | Delete
*/
[181] Fix | Delete
enum {
[182] Fix | Delete
FDB_NOTIFY_BIT = (1 << 0),
[183] Fix | Delete
FDB_NOTIFY_INACTIVE_BIT = (1 << 1)
[184] Fix | Delete
};
[185] Fix | Delete
[186] Fix | Delete
/* embedded into NDA_FDB_EXT_ATTRS:
[187] Fix | Delete
* [NDA_FDB_EXT_ATTRS] = {
[188] Fix | Delete
* [NFEA_ACTIVITY_NOTIFY]
[189] Fix | Delete
* ...
[190] Fix | Delete
* }
[191] Fix | Delete
*/
[192] Fix | Delete
enum {
[193] Fix | Delete
NFEA_UNSPEC,
[194] Fix | Delete
NFEA_ACTIVITY_NOTIFY,
[195] Fix | Delete
NFEA_DONT_REFRESH,
[196] Fix | Delete
__NFEA_MAX
[197] Fix | Delete
};
[198] Fix | Delete
#define NFEA_MAX (__NFEA_MAX - 1)
[199] Fix | Delete
[200] Fix | Delete
#endif
[201] Fix | Delete
[202] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function