Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux
File: ipv6.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _IPV6_H
[1] Fix | Delete
#define _IPV6_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/libc-compat.h>
[4] Fix | Delete
#include <linux/types.h>
[5] Fix | Delete
#include <linux/in6.h>
[6] Fix | Delete
#include <asm/byteorder.h>
[7] Fix | Delete
[8] Fix | Delete
/* The latest drafts declared increase in minimal mtu up to 1280. */
[9] Fix | Delete
[10] Fix | Delete
#define IPV6_MIN_MTU 1280
[11] Fix | Delete
[12] Fix | Delete
/*
[13] Fix | Delete
* Advanced API
[14] Fix | Delete
* source interface/address selection, source routing, etc...
[15] Fix | Delete
* *under construction*
[16] Fix | Delete
*/
[17] Fix | Delete
[18] Fix | Delete
#if __UAPI_DEF_IN6_PKTINFO
[19] Fix | Delete
struct in6_pktinfo {
[20] Fix | Delete
struct in6_addr ipi6_addr;
[21] Fix | Delete
int ipi6_ifindex;
[22] Fix | Delete
};
[23] Fix | Delete
#endif
[24] Fix | Delete
[25] Fix | Delete
#if __UAPI_DEF_IP6_MTUINFO
[26] Fix | Delete
struct ip6_mtuinfo {
[27] Fix | Delete
struct sockaddr_in6 ip6m_addr;
[28] Fix | Delete
__u32 ip6m_mtu;
[29] Fix | Delete
};
[30] Fix | Delete
#endif
[31] Fix | Delete
[32] Fix | Delete
struct in6_ifreq {
[33] Fix | Delete
struct in6_addr ifr6_addr;
[34] Fix | Delete
__u32 ifr6_prefixlen;
[35] Fix | Delete
int ifr6_ifindex;
[36] Fix | Delete
};
[37] Fix | Delete
[38] Fix | Delete
#define IPV6_SRCRT_STRICT 0x01 /* Deprecated; will be removed */
[39] Fix | Delete
#define IPV6_SRCRT_TYPE_0 0 /* Deprecated; will be removed */
[40] Fix | Delete
#define IPV6_SRCRT_TYPE_2 2 /* IPv6 type 2 Routing Header */
[41] Fix | Delete
#define IPV6_SRCRT_TYPE_4 4 /* Segment Routing with IPv6 */
[42] Fix | Delete
[43] Fix | Delete
/*
[44] Fix | Delete
* routing header
[45] Fix | Delete
*/
[46] Fix | Delete
struct ipv6_rt_hdr {
[47] Fix | Delete
__u8 nexthdr;
[48] Fix | Delete
__u8 hdrlen;
[49] Fix | Delete
__u8 type;
[50] Fix | Delete
__u8 segments_left;
[51] Fix | Delete
[52] Fix | Delete
/*
[53] Fix | Delete
* type specific data
[54] Fix | Delete
* variable length field
[55] Fix | Delete
*/
[56] Fix | Delete
};
[57] Fix | Delete
[58] Fix | Delete
[59] Fix | Delete
struct ipv6_opt_hdr {
[60] Fix | Delete
__u8 nexthdr;
[61] Fix | Delete
__u8 hdrlen;
[62] Fix | Delete
/*
[63] Fix | Delete
* TLV encoded option data follows.
[64] Fix | Delete
*/
[65] Fix | Delete
} __attribute__((packed)); /* required for some archs */
[66] Fix | Delete
[67] Fix | Delete
#define ipv6_destopt_hdr ipv6_opt_hdr
[68] Fix | Delete
#define ipv6_hopopt_hdr ipv6_opt_hdr
[69] Fix | Delete
[70] Fix | Delete
/* Router Alert option values (RFC2711) */
[71] Fix | Delete
#define IPV6_OPT_ROUTERALERT_MLD 0x0000 /* MLD(RFC2710) */
[72] Fix | Delete
[73] Fix | Delete
/*
[74] Fix | Delete
* routing header type 0 (used in cmsghdr struct)
[75] Fix | Delete
*/
[76] Fix | Delete
[77] Fix | Delete
struct rt0_hdr {
[78] Fix | Delete
struct ipv6_rt_hdr rt_hdr;
[79] Fix | Delete
__u32 reserved;
[80] Fix | Delete
struct in6_addr addr[0];
[81] Fix | Delete
[82] Fix | Delete
#define rt0_type rt_hdr.type
[83] Fix | Delete
};
[84] Fix | Delete
[85] Fix | Delete
/*
[86] Fix | Delete
* routing header type 2
[87] Fix | Delete
*/
[88] Fix | Delete
[89] Fix | Delete
struct rt2_hdr {
[90] Fix | Delete
struct ipv6_rt_hdr rt_hdr;
[91] Fix | Delete
__u32 reserved;
[92] Fix | Delete
struct in6_addr addr;
[93] Fix | Delete
[94] Fix | Delete
#define rt2_type rt_hdr.type
[95] Fix | Delete
};
[96] Fix | Delete
[97] Fix | Delete
/*
[98] Fix | Delete
* home address option in destination options header
[99] Fix | Delete
*/
[100] Fix | Delete
[101] Fix | Delete
struct ipv6_destopt_hao {
[102] Fix | Delete
__u8 type;
[103] Fix | Delete
__u8 length;
[104] Fix | Delete
struct in6_addr addr;
[105] Fix | Delete
} __attribute__((packed));
[106] Fix | Delete
[107] Fix | Delete
/*
[108] Fix | Delete
* IPv6 fixed header
[109] Fix | Delete
*
[110] Fix | Delete
* BEWARE, it is incorrect. The first 4 bits of flow_lbl
[111] Fix | Delete
* are glued to priority now, forming "class".
[112] Fix | Delete
*/
[113] Fix | Delete
[114] Fix | Delete
struct ipv6hdr {
[115] Fix | Delete
#if defined(__LITTLE_ENDIAN_BITFIELD)
[116] Fix | Delete
__u8 priority:4,
[117] Fix | Delete
version:4;
[118] Fix | Delete
#elif defined(__BIG_ENDIAN_BITFIELD)
[119] Fix | Delete
__u8 version:4,
[120] Fix | Delete
priority:4;
[121] Fix | Delete
#else
[122] Fix | Delete
#error "Please fix <asm/byteorder.h>"
[123] Fix | Delete
#endif
[124] Fix | Delete
__u8 flow_lbl[3];
[125] Fix | Delete
[126] Fix | Delete
__be16 payload_len;
[127] Fix | Delete
__u8 nexthdr;
[128] Fix | Delete
__u8 hop_limit;
[129] Fix | Delete
[130] Fix | Delete
struct in6_addr saddr;
[131] Fix | Delete
struct in6_addr daddr;
[132] Fix | Delete
};
[133] Fix | Delete
[134] Fix | Delete
[135] Fix | Delete
/* index values for the variables in ipv6_devconf */
[136] Fix | Delete
enum {
[137] Fix | Delete
DEVCONF_FORWARDING = 0,
[138] Fix | Delete
DEVCONF_HOPLIMIT,
[139] Fix | Delete
DEVCONF_MTU6,
[140] Fix | Delete
DEVCONF_ACCEPT_RA,
[141] Fix | Delete
DEVCONF_ACCEPT_REDIRECTS,
[142] Fix | Delete
DEVCONF_AUTOCONF,
[143] Fix | Delete
DEVCONF_DAD_TRANSMITS,
[144] Fix | Delete
DEVCONF_RTR_SOLICITS,
[145] Fix | Delete
DEVCONF_RTR_SOLICIT_INTERVAL,
[146] Fix | Delete
DEVCONF_RTR_SOLICIT_DELAY,
[147] Fix | Delete
DEVCONF_USE_TEMPADDR,
[148] Fix | Delete
DEVCONF_TEMP_VALID_LFT,
[149] Fix | Delete
DEVCONF_TEMP_PREFERED_LFT,
[150] Fix | Delete
DEVCONF_REGEN_MAX_RETRY,
[151] Fix | Delete
DEVCONF_MAX_DESYNC_FACTOR,
[152] Fix | Delete
DEVCONF_MAX_ADDRESSES,
[153] Fix | Delete
DEVCONF_FORCE_MLD_VERSION,
[154] Fix | Delete
DEVCONF_ACCEPT_RA_DEFRTR,
[155] Fix | Delete
DEVCONF_ACCEPT_RA_PINFO,
[156] Fix | Delete
DEVCONF_ACCEPT_RA_RTR_PREF,
[157] Fix | Delete
DEVCONF_RTR_PROBE_INTERVAL,
[158] Fix | Delete
DEVCONF_ACCEPT_RA_RT_INFO_MAX_PLEN,
[159] Fix | Delete
DEVCONF_PROXY_NDP,
[160] Fix | Delete
DEVCONF_OPTIMISTIC_DAD,
[161] Fix | Delete
DEVCONF_ACCEPT_SOURCE_ROUTE,
[162] Fix | Delete
DEVCONF_MC_FORWARDING,
[163] Fix | Delete
DEVCONF_DISABLE_IPV6,
[164] Fix | Delete
DEVCONF_ACCEPT_DAD,
[165] Fix | Delete
DEVCONF_FORCE_TLLAO,
[166] Fix | Delete
DEVCONF_NDISC_NOTIFY,
[167] Fix | Delete
DEVCONF_MLDV1_UNSOLICITED_REPORT_INTERVAL,
[168] Fix | Delete
DEVCONF_MLDV2_UNSOLICITED_REPORT_INTERVAL,
[169] Fix | Delete
DEVCONF_SUPPRESS_FRAG_NDISC,
[170] Fix | Delete
DEVCONF_ACCEPT_RA_FROM_LOCAL,
[171] Fix | Delete
DEVCONF_USE_OPTIMISTIC,
[172] Fix | Delete
DEVCONF_ACCEPT_RA_MTU,
[173] Fix | Delete
DEVCONF_STABLE_SECRET,
[174] Fix | Delete
DEVCONF_USE_OIF_ADDRS_ONLY,
[175] Fix | Delete
DEVCONF_ACCEPT_RA_MIN_HOP_LIMIT,
[176] Fix | Delete
DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN,
[177] Fix | Delete
DEVCONF_DROP_UNICAST_IN_L2_MULTICAST,
[178] Fix | Delete
DEVCONF_DROP_UNSOLICITED_NA,
[179] Fix | Delete
DEVCONF_KEEP_ADDR_ON_DOWN,
[180] Fix | Delete
DEVCONF_RTR_SOLICIT_MAX_INTERVAL,
[181] Fix | Delete
DEVCONF_SEG6_ENABLED,
[182] Fix | Delete
DEVCONF_SEG6_REQUIRE_HMAC,
[183] Fix | Delete
DEVCONF_ENHANCED_DAD,
[184] Fix | Delete
DEVCONF_ADDR_GEN_MODE,
[185] Fix | Delete
DEVCONF_DISABLE_POLICY,
[186] Fix | Delete
DEVCONF_ACCEPT_RA_RT_INFO_MIN_PLEN,
[187] Fix | Delete
DEVCONF_NDISC_TCLASS,
[188] Fix | Delete
DEVCONF_MAX
[189] Fix | Delete
};
[190] Fix | Delete
[191] Fix | Delete
[192] Fix | Delete
#endif /* _IPV6_H */
[193] Fix | Delete
[194] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function