Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/bits
File: in.h
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
[0] Fix | Delete
This file is part of the GNU C Library.
[1] Fix | Delete
[2] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[3] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[4] Fix | Delete
License as published by the Free Software Foundation; either
[5] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[6] Fix | Delete
[7] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[8] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[9] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[10] Fix | Delete
Lesser General Public License for more details.
[11] Fix | Delete
[12] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[13] Fix | Delete
License along with the GNU C Library; if not, see
[14] Fix | Delete
<http://www.gnu.org/licenses/>. */
[15] Fix | Delete
[16] Fix | Delete
/* Linux version. */
[17] Fix | Delete
[18] Fix | Delete
#ifndef _NETINET_IN_H
[19] Fix | Delete
# error "Never use <bits/in.h> directly; include <netinet/in.h> instead."
[20] Fix | Delete
#endif
[21] Fix | Delete
[22] Fix | Delete
/* If the application has already included linux/in6.h from a linux-based
[23] Fix | Delete
kernel then we will not define the IPv6 IPPROTO_* defines, in6_addr (nor the
[24] Fix | Delete
defines), sockaddr_in6, or ipv6_mreq. Same for in6_ptkinfo or ip6_mtuinfo
[25] Fix | Delete
in linux/ipv6.h. The ABI used by the linux-kernel and glibc match exactly.
[26] Fix | Delete
Neither the linux kernel nor glibc should break this ABI without coordination.
[27] Fix | Delete
In upstream kernel 56c176c9 the _UAPI prefix was stripped so we need to check
[28] Fix | Delete
for _LINUX_IN6_H and _IPV6_H now, and keep checking the old versions for
[29] Fix | Delete
maximum backwards compatibility. */
[30] Fix | Delete
#if defined _UAPI_LINUX_IN6_H \
[31] Fix | Delete
|| defined _UAPI_IPV6_H \
[32] Fix | Delete
|| defined _LINUX_IN6_H \
[33] Fix | Delete
|| defined _IPV6_H
[34] Fix | Delete
/* This is not quite the same API since the kernel always defines s6_addr16 and
[35] Fix | Delete
s6_addr32. This is not a violation of POSIX since POSIX says "at least the
[36] Fix | Delete
following member" and that holds true. */
[37] Fix | Delete
# define __USE_KERNEL_IPV6_DEFS 1
[38] Fix | Delete
#else
[39] Fix | Delete
# define __USE_KERNEL_IPV6_DEFS 0
[40] Fix | Delete
#endif
[41] Fix | Delete
[42] Fix | Delete
/* Options for use with `getsockopt' and `setsockopt' at the IP level.
[43] Fix | Delete
The first word in the comment at the right is the data type used;
[44] Fix | Delete
"bool" means a boolean value stored in an `int'. */
[45] Fix | Delete
#define IP_OPTIONS 4 /* ip_opts; IP per-packet options. */
[46] Fix | Delete
#define IP_HDRINCL 3 /* int; Header is included with data. */
[47] Fix | Delete
#define IP_TOS 1 /* int; IP type of service and precedence. */
[48] Fix | Delete
#define IP_TTL 2 /* int; IP time to live. */
[49] Fix | Delete
#define IP_RECVOPTS 6 /* bool; Receive all IP options w/datagram. */
[50] Fix | Delete
/* For BSD compatibility. */
[51] Fix | Delete
#define IP_RECVRETOPTS IP_RETOPTS /* bool; Receive IP options for response. */
[52] Fix | Delete
#define IP_RETOPTS 7 /* ip_opts; Set/get IP per-packet options. */
[53] Fix | Delete
#define IP_MULTICAST_IF 32 /* in_addr; set/get IP multicast i/f */
[54] Fix | Delete
#define IP_MULTICAST_TTL 33 /* unsigned char; set/get IP multicast ttl */
[55] Fix | Delete
#define IP_MULTICAST_LOOP 34 /* bool; set/get IP multicast loopback */
[56] Fix | Delete
#define IP_ADD_MEMBERSHIP 35 /* ip_mreq; add an IP group membership */
[57] Fix | Delete
#define IP_DROP_MEMBERSHIP 36 /* ip_mreq; drop an IP group membership */
[58] Fix | Delete
#define IP_UNBLOCK_SOURCE 37 /* ip_mreq_source: unblock data from source */
[59] Fix | Delete
#define IP_BLOCK_SOURCE 38 /* ip_mreq_source: block data from source */
[60] Fix | Delete
#define IP_ADD_SOURCE_MEMBERSHIP 39 /* ip_mreq_source: join source group */
[61] Fix | Delete
#define IP_DROP_SOURCE_MEMBERSHIP 40 /* ip_mreq_source: leave source group */
[62] Fix | Delete
#define IP_MSFILTER 41
[63] Fix | Delete
#ifdef __USE_MISC
[64] Fix | Delete
# define MCAST_JOIN_GROUP 42 /* group_req: join any-source group */
[65] Fix | Delete
# define MCAST_BLOCK_SOURCE 43 /* group_source_req: block from given group */
[66] Fix | Delete
# define MCAST_UNBLOCK_SOURCE 44 /* group_source_req: unblock from given group*/
[67] Fix | Delete
# define MCAST_LEAVE_GROUP 45 /* group_req: leave any-source group */
[68] Fix | Delete
# define MCAST_JOIN_SOURCE_GROUP 46 /* group_source_req: join source-spec gr */
[69] Fix | Delete
# define MCAST_LEAVE_SOURCE_GROUP 47 /* group_source_req: leave source-spec gr*/
[70] Fix | Delete
# define MCAST_MSFILTER 48
[71] Fix | Delete
# define IP_MULTICAST_ALL 49
[72] Fix | Delete
# define IP_UNICAST_IF 50
[73] Fix | Delete
[74] Fix | Delete
# define MCAST_EXCLUDE 0
[75] Fix | Delete
# define MCAST_INCLUDE 1
[76] Fix | Delete
#endif
[77] Fix | Delete
[78] Fix | Delete
#define IP_ROUTER_ALERT 5 /* bool */
[79] Fix | Delete
#define IP_PKTINFO 8 /* bool */
[80] Fix | Delete
#define IP_PKTOPTIONS 9
[81] Fix | Delete
#define IP_PMTUDISC 10 /* obsolete name? */
[82] Fix | Delete
#define IP_MTU_DISCOVER 10 /* int; see below */
[83] Fix | Delete
#define IP_RECVERR 11 /* bool */
[84] Fix | Delete
#define IP_RECVTTL 12 /* bool */
[85] Fix | Delete
#define IP_RECVTOS 13 /* bool */
[86] Fix | Delete
#define IP_MTU 14 /* int */
[87] Fix | Delete
#define IP_FREEBIND 15
[88] Fix | Delete
#define IP_IPSEC_POLICY 16
[89] Fix | Delete
#define IP_XFRM_POLICY 17
[90] Fix | Delete
#define IP_PASSSEC 18
[91] Fix | Delete
#define IP_TRANSPARENT 19
[92] Fix | Delete
#define IP_MULTICAST_ALL 49 /* bool */
[93] Fix | Delete
[94] Fix | Delete
/* TProxy original addresses */
[95] Fix | Delete
#define IP_ORIGDSTADDR 20
[96] Fix | Delete
#define IP_RECVORIGDSTADDR IP_ORIGDSTADDR
[97] Fix | Delete
[98] Fix | Delete
#define IP_MINTTL 21
[99] Fix | Delete
#define IP_NODEFRAG 22
[100] Fix | Delete
#define IP_CHECKSUM 23
[101] Fix | Delete
#define IP_BIND_ADDRESS_NO_PORT 24
[102] Fix | Delete
#define IP_RECVFRAGSIZE 25
[103] Fix | Delete
[104] Fix | Delete
/* IP_MTU_DISCOVER arguments. */
[105] Fix | Delete
#define IP_PMTUDISC_DONT 0 /* Never send DF frames. */
[106] Fix | Delete
#define IP_PMTUDISC_WANT 1 /* Use per route hints. */
[107] Fix | Delete
#define IP_PMTUDISC_DO 2 /* Always DF. */
[108] Fix | Delete
#define IP_PMTUDISC_PROBE 3 /* Ignore dst pmtu. */
[109] Fix | Delete
/* Always use interface mtu (ignores dst pmtu) but don't set DF flag.
[110] Fix | Delete
Also incoming ICMP frag_needed notifications will be ignored on
[111] Fix | Delete
this socket to prevent accepting spoofed ones. */
[112] Fix | Delete
#define IP_PMTUDISC_INTERFACE 4
[113] Fix | Delete
/* Like IP_PMTUDISC_INTERFACE but allow packets to be fragmented. */
[114] Fix | Delete
#define IP_PMTUDISC_OMIT 5
[115] Fix | Delete
[116] Fix | Delete
#define IP_MULTICAST_IF 32
[117] Fix | Delete
#define IP_MULTICAST_TTL 33
[118] Fix | Delete
#define IP_MULTICAST_LOOP 34
[119] Fix | Delete
#define IP_ADD_MEMBERSHIP 35
[120] Fix | Delete
#define IP_DROP_MEMBERSHIP 36
[121] Fix | Delete
#define IP_UNBLOCK_SOURCE 37
[122] Fix | Delete
#define IP_BLOCK_SOURCE 38
[123] Fix | Delete
#define IP_ADD_SOURCE_MEMBERSHIP 39
[124] Fix | Delete
#define IP_DROP_SOURCE_MEMBERSHIP 40
[125] Fix | Delete
#define IP_MSFILTER 41
[126] Fix | Delete
#define IP_MULTICAST_ALL 49
[127] Fix | Delete
#define IP_UNICAST_IF 50
[128] Fix | Delete
[129] Fix | Delete
/* To select the IP level. */
[130] Fix | Delete
#define SOL_IP 0
[131] Fix | Delete
[132] Fix | Delete
#define IP_DEFAULT_MULTICAST_TTL 1
[133] Fix | Delete
#define IP_DEFAULT_MULTICAST_LOOP 1
[134] Fix | Delete
#define IP_MAX_MEMBERSHIPS 20
[135] Fix | Delete
[136] Fix | Delete
#ifdef __USE_MISC
[137] Fix | Delete
/* Structure used to describe IP options for IP_OPTIONS and IP_RETOPTS.
[138] Fix | Delete
The `ip_dst' field is used for the first-hop gateway when using a
[139] Fix | Delete
source route (this gets put into the header proper). */
[140] Fix | Delete
struct ip_opts
[141] Fix | Delete
{
[142] Fix | Delete
struct in_addr ip_dst; /* First hop; zero without source route. */
[143] Fix | Delete
char ip_opts[40]; /* Actually variable in size. */
[144] Fix | Delete
};
[145] Fix | Delete
[146] Fix | Delete
/* Like `struct ip_mreq' but including interface specification by index. */
[147] Fix | Delete
struct ip_mreqn
[148] Fix | Delete
{
[149] Fix | Delete
struct in_addr imr_multiaddr; /* IP multicast address of group */
[150] Fix | Delete
struct in_addr imr_address; /* local IP address of interface */
[151] Fix | Delete
int imr_ifindex; /* Interface index */
[152] Fix | Delete
};
[153] Fix | Delete
[154] Fix | Delete
/* Structure used for IP_PKTINFO. */
[155] Fix | Delete
struct in_pktinfo
[156] Fix | Delete
{
[157] Fix | Delete
int ipi_ifindex; /* Interface index */
[158] Fix | Delete
struct in_addr ipi_spec_dst; /* Routing destination address */
[159] Fix | Delete
struct in_addr ipi_addr; /* Header destination address */
[160] Fix | Delete
};
[161] Fix | Delete
#endif
[162] Fix | Delete
[163] Fix | Delete
/* Options for use with `getsockopt' and `setsockopt' at the IPv6 level.
[164] Fix | Delete
The first word in the comment at the right is the data type used;
[165] Fix | Delete
"bool" means a boolean value stored in an `int'. */
[166] Fix | Delete
#define IPV6_ADDRFORM 1
[167] Fix | Delete
#define IPV6_2292PKTINFO 2
[168] Fix | Delete
#define IPV6_2292HOPOPTS 3
[169] Fix | Delete
#define IPV6_2292DSTOPTS 4
[170] Fix | Delete
#define IPV6_2292RTHDR 5
[171] Fix | Delete
#define IPV6_2292PKTOPTIONS 6
[172] Fix | Delete
#define IPV6_CHECKSUM 7
[173] Fix | Delete
#define IPV6_2292HOPLIMIT 8
[174] Fix | Delete
[175] Fix | Delete
#define SCM_SRCRT IPV6_RXSRCRT
[176] Fix | Delete
[177] Fix | Delete
#define IPV6_NEXTHOP 9
[178] Fix | Delete
#define IPV6_AUTHHDR 10
[179] Fix | Delete
#define IPV6_UNICAST_HOPS 16
[180] Fix | Delete
#define IPV6_MULTICAST_IF 17
[181] Fix | Delete
#define IPV6_MULTICAST_HOPS 18
[182] Fix | Delete
#define IPV6_MULTICAST_LOOP 19
[183] Fix | Delete
#define IPV6_JOIN_GROUP 20
[184] Fix | Delete
#define IPV6_LEAVE_GROUP 21
[185] Fix | Delete
#define IPV6_ROUTER_ALERT 22
[186] Fix | Delete
#define IPV6_MTU_DISCOVER 23
[187] Fix | Delete
#define IPV6_MTU 24
[188] Fix | Delete
#define IPV6_RECVERR 25
[189] Fix | Delete
#define IPV6_V6ONLY 26
[190] Fix | Delete
#define IPV6_JOIN_ANYCAST 27
[191] Fix | Delete
#define IPV6_LEAVE_ANYCAST 28
[192] Fix | Delete
#define IPV6_IPSEC_POLICY 34
[193] Fix | Delete
#define IPV6_XFRM_POLICY 35
[194] Fix | Delete
#define IPV6_HDRINCL 36
[195] Fix | Delete
[196] Fix | Delete
/* Advanced API (RFC3542) (1). */
[197] Fix | Delete
#define IPV6_RECVPKTINFO 49
[198] Fix | Delete
#define IPV6_PKTINFO 50
[199] Fix | Delete
#define IPV6_RECVHOPLIMIT 51
[200] Fix | Delete
#define IPV6_HOPLIMIT 52
[201] Fix | Delete
#define IPV6_RECVHOPOPTS 53
[202] Fix | Delete
#define IPV6_HOPOPTS 54
[203] Fix | Delete
#define IPV6_RTHDRDSTOPTS 55
[204] Fix | Delete
#define IPV6_RECVRTHDR 56
[205] Fix | Delete
#define IPV6_RTHDR 57
[206] Fix | Delete
#define IPV6_RECVDSTOPTS 58
[207] Fix | Delete
#define IPV6_DSTOPTS 59
[208] Fix | Delete
#define IPV6_RECVPATHMTU 60
[209] Fix | Delete
#define IPV6_PATHMTU 61
[210] Fix | Delete
#define IPV6_DONTFRAG 62
[211] Fix | Delete
[212] Fix | Delete
/* Advanced API (RFC3542) (2). */
[213] Fix | Delete
#define IPV6_RECVTCLASS 66
[214] Fix | Delete
#define IPV6_TCLASS 67
[215] Fix | Delete
[216] Fix | Delete
#define IPV6_AUTOFLOWLABEL 70
[217] Fix | Delete
[218] Fix | Delete
/* RFC5014. */
[219] Fix | Delete
#define IPV6_ADDR_PREFERENCES 72
[220] Fix | Delete
[221] Fix | Delete
/* RFC5082. */
[222] Fix | Delete
#define IPV6_MINHOPCOUNT 73
[223] Fix | Delete
[224] Fix | Delete
#define IPV6_ORIGDSTADDR 74
[225] Fix | Delete
#define IPV6_RECVORIGDSTADDR IPV6_ORIGDSTADDR
[226] Fix | Delete
#define IPV6_TRANSPARENT 75
[227] Fix | Delete
#define IPV6_UNICAST_IF 76
[228] Fix | Delete
#define IPV6_RECVFRAGSIZE 77
[229] Fix | Delete
#define IPV6_FREEBIND 78
[230] Fix | Delete
[231] Fix | Delete
/* Obsolete synonyms for the above. */
[232] Fix | Delete
#if !__USE_KERNEL_IPV6_DEFS
[233] Fix | Delete
# define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
[234] Fix | Delete
# define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
[235] Fix | Delete
#endif
[236] Fix | Delete
#define IPV6_RXHOPOPTS IPV6_HOPOPTS
[237] Fix | Delete
#define IPV6_RXDSTOPTS IPV6_DSTOPTS
[238] Fix | Delete
[239] Fix | Delete
/* IPV6_MTU_DISCOVER values. */
[240] Fix | Delete
#define IPV6_PMTUDISC_DONT 0 /* Never send DF frames. */
[241] Fix | Delete
#define IPV6_PMTUDISC_WANT 1 /* Use per route hints. */
[242] Fix | Delete
#define IPV6_PMTUDISC_DO 2 /* Always DF. */
[243] Fix | Delete
#define IPV6_PMTUDISC_PROBE 3 /* Ignore dst pmtu. */
[244] Fix | Delete
#define IPV6_PMTUDISC_INTERFACE 4 /* See IP_PMTUDISC_INTERFACE. */
[245] Fix | Delete
#define IPV6_PMTUDISC_OMIT 5 /* See IP_PMTUDISC_OMIT. */
[246] Fix | Delete
[247] Fix | Delete
/* Socket level values for IPv6. */
[248] Fix | Delete
#define SOL_IPV6 41
[249] Fix | Delete
#define SOL_ICMPV6 58
[250] Fix | Delete
[251] Fix | Delete
/* Routing header options for IPv6. */
[252] Fix | Delete
#define IPV6_RTHDR_LOOSE 0 /* Hop doesn't need to be neighbour. */
[253] Fix | Delete
#define IPV6_RTHDR_STRICT 1 /* Hop must be a neighbour. */
[254] Fix | Delete
[255] Fix | Delete
#define IPV6_RTHDR_TYPE_0 0 /* IPv6 Routing header type 0. */
[256] Fix | Delete
[257] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function