Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: ip.h
/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* INET An implementation of the TCP/IP protocol suite for the LINUX
[2] Fix | Delete
* operating system. INET is implemented using the BSD Socket
[3] Fix | Delete
* interface as the means of communication with the user level.
[4] Fix | Delete
*
[5] Fix | Delete
* Definitions for the IP protocol.
[6] Fix | Delete
*
[7] Fix | Delete
* Version: @(#)ip.h 1.0.2 04/28/93
[8] Fix | Delete
*
[9] Fix | Delete
* Authors: Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG>
[10] Fix | Delete
*
[11] Fix | Delete
* This program is free software; you can redistribute it and/or
[12] Fix | Delete
* modify it under the terms of the GNU General Public License
[13] Fix | Delete
* as published by the Free Software Foundation; either version
[14] Fix | Delete
* 2 of the License, or (at your option) any later version.
[15] Fix | Delete
*/
[16] Fix | Delete
#ifndef _LINUX_IP_H
[17] Fix | Delete
#define _LINUX_IP_H
[18] Fix | Delete
#include <linux/types.h>
[19] Fix | Delete
#include <asm/byteorder.h>
[20] Fix | Delete
[21] Fix | Delete
#define IPTOS_TOS_MASK 0x1E
[22] Fix | Delete
#define IPTOS_TOS(tos) ((tos)&IPTOS_TOS_MASK)
[23] Fix | Delete
#define IPTOS_LOWDELAY 0x10
[24] Fix | Delete
#define IPTOS_THROUGHPUT 0x08
[25] Fix | Delete
#define IPTOS_RELIABILITY 0x04
[26] Fix | Delete
#define IPTOS_MINCOST 0x02
[27] Fix | Delete
[28] Fix | Delete
#define IPTOS_PREC_MASK 0xE0
[29] Fix | Delete
#define IPTOS_PREC(tos) ((tos)&IPTOS_PREC_MASK)
[30] Fix | Delete
#define IPTOS_PREC_NETCONTROL 0xe0
[31] Fix | Delete
#define IPTOS_PREC_INTERNETCONTROL 0xc0
[32] Fix | Delete
#define IPTOS_PREC_CRITIC_ECP 0xa0
[33] Fix | Delete
#define IPTOS_PREC_FLASHOVERRIDE 0x80
[34] Fix | Delete
#define IPTOS_PREC_FLASH 0x60
[35] Fix | Delete
#define IPTOS_PREC_IMMEDIATE 0x40
[36] Fix | Delete
#define IPTOS_PREC_PRIORITY 0x20
[37] Fix | Delete
#define IPTOS_PREC_ROUTINE 0x00
[38] Fix | Delete
[39] Fix | Delete
[40] Fix | Delete
/* IP options */
[41] Fix | Delete
#define IPOPT_COPY 0x80
[42] Fix | Delete
#define IPOPT_CLASS_MASK 0x60
[43] Fix | Delete
#define IPOPT_NUMBER_MASK 0x1f
[44] Fix | Delete
[45] Fix | Delete
#define IPOPT_COPIED(o) ((o)&IPOPT_COPY)
[46] Fix | Delete
#define IPOPT_CLASS(o) ((o)&IPOPT_CLASS_MASK)
[47] Fix | Delete
#define IPOPT_NUMBER(o) ((o)&IPOPT_NUMBER_MASK)
[48] Fix | Delete
[49] Fix | Delete
#define IPOPT_CONTROL 0x00
[50] Fix | Delete
#define IPOPT_RESERVED1 0x20
[51] Fix | Delete
#define IPOPT_MEASUREMENT 0x40
[52] Fix | Delete
#define IPOPT_RESERVED2 0x60
[53] Fix | Delete
[54] Fix | Delete
#define IPOPT_END (0 |IPOPT_CONTROL)
[55] Fix | Delete
#define IPOPT_NOOP (1 |IPOPT_CONTROL)
[56] Fix | Delete
#define IPOPT_SEC (2 |IPOPT_CONTROL|IPOPT_COPY)
[57] Fix | Delete
#define IPOPT_LSRR (3 |IPOPT_CONTROL|IPOPT_COPY)
[58] Fix | Delete
#define IPOPT_TIMESTAMP (4 |IPOPT_MEASUREMENT)
[59] Fix | Delete
#define IPOPT_CIPSO (6 |IPOPT_CONTROL|IPOPT_COPY)
[60] Fix | Delete
#define IPOPT_RR (7 |IPOPT_CONTROL)
[61] Fix | Delete
#define IPOPT_SID (8 |IPOPT_CONTROL|IPOPT_COPY)
[62] Fix | Delete
#define IPOPT_SSRR (9 |IPOPT_CONTROL|IPOPT_COPY)
[63] Fix | Delete
#define IPOPT_RA (20|IPOPT_CONTROL|IPOPT_COPY)
[64] Fix | Delete
[65] Fix | Delete
#define IPVERSION 4
[66] Fix | Delete
#define MAXTTL 255
[67] Fix | Delete
#define IPDEFTTL 64
[68] Fix | Delete
[69] Fix | Delete
#define IPOPT_OPTVAL 0
[70] Fix | Delete
#define IPOPT_OLEN 1
[71] Fix | Delete
#define IPOPT_OFFSET 2
[72] Fix | Delete
#define IPOPT_MINOFF 4
[73] Fix | Delete
#define MAX_IPOPTLEN 40
[74] Fix | Delete
#define IPOPT_NOP IPOPT_NOOP
[75] Fix | Delete
#define IPOPT_EOL IPOPT_END
[76] Fix | Delete
#define IPOPT_TS IPOPT_TIMESTAMP
[77] Fix | Delete
[78] Fix | Delete
#define IPOPT_TS_TSONLY 0 /* timestamps only */
[79] Fix | Delete
#define IPOPT_TS_TSANDADDR 1 /* timestamps and addresses */
[80] Fix | Delete
#define IPOPT_TS_PRESPEC 3 /* specified modules only */
[81] Fix | Delete
[82] Fix | Delete
#define IPV4_BEET_PHMAXLEN 8
[83] Fix | Delete
[84] Fix | Delete
struct iphdr {
[85] Fix | Delete
#if defined(__LITTLE_ENDIAN_BITFIELD)
[86] Fix | Delete
__u8 ihl:4,
[87] Fix | Delete
version:4;
[88] Fix | Delete
#elif defined (__BIG_ENDIAN_BITFIELD)
[89] Fix | Delete
__u8 version:4,
[90] Fix | Delete
ihl:4;
[91] Fix | Delete
#else
[92] Fix | Delete
#error "Please fix <asm/byteorder.h>"
[93] Fix | Delete
#endif
[94] Fix | Delete
__u8 tos;
[95] Fix | Delete
__be16 tot_len;
[96] Fix | Delete
__be16 id;
[97] Fix | Delete
__be16 frag_off;
[98] Fix | Delete
__u8 ttl;
[99] Fix | Delete
__u8 protocol;
[100] Fix | Delete
__sum16 check;
[101] Fix | Delete
__be32 saddr;
[102] Fix | Delete
__be32 daddr;
[103] Fix | Delete
/*The options start here. */
[104] Fix | Delete
};
[105] Fix | Delete
[106] Fix | Delete
[107] Fix | Delete
struct ip_auth_hdr {
[108] Fix | Delete
__u8 nexthdr;
[109] Fix | Delete
__u8 hdrlen; /* This one is measured in 32 bit units! */
[110] Fix | Delete
__be16 reserved;
[111] Fix | Delete
__be32 spi;
[112] Fix | Delete
__be32 seq_no; /* Sequence number */
[113] Fix | Delete
__u8 auth_data[0]; /* Variable len but >=4. Mind the 64 bit alignment! */
[114] Fix | Delete
};
[115] Fix | Delete
[116] Fix | Delete
struct ip_esp_hdr {
[117] Fix | Delete
__be32 spi;
[118] Fix | Delete
__be32 seq_no; /* Sequence number */
[119] Fix | Delete
__u8 enc_data[0]; /* Variable len but >=8. Mind the 64 bit alignment! */
[120] Fix | Delete
};
[121] Fix | Delete
[122] Fix | Delete
struct ip_comp_hdr {
[123] Fix | Delete
__u8 nexthdr;
[124] Fix | Delete
__u8 flags;
[125] Fix | Delete
__be16 cpi;
[126] Fix | Delete
};
[127] Fix | Delete
[128] Fix | Delete
struct ip_beet_phdr {
[129] Fix | Delete
__u8 nexthdr;
[130] Fix | Delete
__u8 hdrlen;
[131] Fix | Delete
__u8 padlen;
[132] Fix | Delete
__u8 reserved;
[133] Fix | Delete
};
[134] Fix | Delete
[135] Fix | Delete
/* index values for the variables in ipv4_devconf */
[136] Fix | Delete
enum
[137] Fix | Delete
{
[138] Fix | Delete
IPV4_DEVCONF_FORWARDING=1,
[139] Fix | Delete
IPV4_DEVCONF_MC_FORWARDING,
[140] Fix | Delete
IPV4_DEVCONF_PROXY_ARP,
[141] Fix | Delete
IPV4_DEVCONF_ACCEPT_REDIRECTS,
[142] Fix | Delete
IPV4_DEVCONF_SECURE_REDIRECTS,
[143] Fix | Delete
IPV4_DEVCONF_SEND_REDIRECTS,
[144] Fix | Delete
IPV4_DEVCONF_SHARED_MEDIA,
[145] Fix | Delete
IPV4_DEVCONF_RP_FILTER,
[146] Fix | Delete
IPV4_DEVCONF_ACCEPT_SOURCE_ROUTE,
[147] Fix | Delete
IPV4_DEVCONF_BOOTP_RELAY,
[148] Fix | Delete
IPV4_DEVCONF_LOG_MARTIANS,
[149] Fix | Delete
IPV4_DEVCONF_TAG,
[150] Fix | Delete
IPV4_DEVCONF_ARPFILTER,
[151] Fix | Delete
IPV4_DEVCONF_MEDIUM_ID,
[152] Fix | Delete
IPV4_DEVCONF_NOXFRM,
[153] Fix | Delete
IPV4_DEVCONF_NOPOLICY,
[154] Fix | Delete
IPV4_DEVCONF_FORCE_IGMP_VERSION,
[155] Fix | Delete
IPV4_DEVCONF_ARP_ANNOUNCE,
[156] Fix | Delete
IPV4_DEVCONF_ARP_IGNORE,
[157] Fix | Delete
IPV4_DEVCONF_PROMOTE_SECONDARIES,
[158] Fix | Delete
IPV4_DEVCONF_ARP_ACCEPT,
[159] Fix | Delete
IPV4_DEVCONF_ARP_NOTIFY,
[160] Fix | Delete
IPV4_DEVCONF_ACCEPT_LOCAL,
[161] Fix | Delete
IPV4_DEVCONF_SRC_VMARK,
[162] Fix | Delete
IPV4_DEVCONF_PROXY_ARP_PVLAN,
[163] Fix | Delete
IPV4_DEVCONF_ROUTE_LOCALNET,
[164] Fix | Delete
IPV4_DEVCONF_IGMPV2_UNSOLICITED_REPORT_INTERVAL,
[165] Fix | Delete
IPV4_DEVCONF_IGMPV3_UNSOLICITED_REPORT_INTERVAL,
[166] Fix | Delete
IPV4_DEVCONF_IGNORE_ROUTES_WITH_LINKDOWN,
[167] Fix | Delete
IPV4_DEVCONF_DROP_UNICAST_IN_L2_MULTICAST,
[168] Fix | Delete
IPV4_DEVCONF_DROP_GRATUITOUS_ARP,
[169] Fix | Delete
IPV4_DEVCONF_BC_FORWARDING,
[170] Fix | Delete
__IPV4_DEVCONF_MAX
[171] Fix | Delete
};
[172] Fix | Delete
[173] Fix | Delete
#define IPV4_DEVCONF_MAX (__IPV4_DEVCONF_MAX - 1)
[174] Fix | Delete
[175] Fix | Delete
#endif /* _LINUX_IP_H */
[176] Fix | Delete
[177] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function