Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ExeBy/exe_root.../usr/include/net
File: route.h
/* Copyright (C) 1997-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
/* Based on the 4.4BSD and Linux version of this file. */
[17] Fix | Delete
[18] Fix | Delete
#ifndef _NET_ROUTE_H
[19] Fix | Delete
#define _NET_ROUTE_H 1
[20] Fix | Delete
[21] Fix | Delete
#include <features.h>
[22] Fix | Delete
#include <sys/socket.h>
[23] Fix | Delete
#include <sys/types.h>
[24] Fix | Delete
#include <netinet/in.h>
[25] Fix | Delete
#include <bits/wordsize.h>
[26] Fix | Delete
[27] Fix | Delete
[28] Fix | Delete
/* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */
[29] Fix | Delete
struct rtentry
[30] Fix | Delete
{
[31] Fix | Delete
unsigned long int rt_pad1;
[32] Fix | Delete
struct sockaddr rt_dst; /* Target address. */
[33] Fix | Delete
struct sockaddr rt_gateway; /* Gateway addr (RTF_GATEWAY). */
[34] Fix | Delete
struct sockaddr rt_genmask; /* Target network mask (IP). */
[35] Fix | Delete
unsigned short int rt_flags;
[36] Fix | Delete
short int rt_pad2;
[37] Fix | Delete
unsigned long int rt_pad3;
[38] Fix | Delete
unsigned char rt_tos;
[39] Fix | Delete
unsigned char rt_class;
[40] Fix | Delete
#if __WORDSIZE == 64
[41] Fix | Delete
short int rt_pad4[3];
[42] Fix | Delete
#else
[43] Fix | Delete
short int rt_pad4;
[44] Fix | Delete
#endif
[45] Fix | Delete
short int rt_metric; /* +1 for binary compatibility! */
[46] Fix | Delete
char *rt_dev; /* Forcing the device at add. */
[47] Fix | Delete
unsigned long int rt_mtu; /* Per route MTU/Window. */
[48] Fix | Delete
unsigned long int rt_window; /* Window clamping. */
[49] Fix | Delete
unsigned short int rt_irtt; /* Initial RTT. */
[50] Fix | Delete
};
[51] Fix | Delete
/* Compatibility hack. */
[52] Fix | Delete
#define rt_mss rt_mtu
[53] Fix | Delete
[54] Fix | Delete
[55] Fix | Delete
struct in6_rtmsg
[56] Fix | Delete
{
[57] Fix | Delete
struct in6_addr rtmsg_dst;
[58] Fix | Delete
struct in6_addr rtmsg_src;
[59] Fix | Delete
struct in6_addr rtmsg_gateway;
[60] Fix | Delete
uint32_t rtmsg_type;
[61] Fix | Delete
uint16_t rtmsg_dst_len;
[62] Fix | Delete
uint16_t rtmsg_src_len;
[63] Fix | Delete
uint32_t rtmsg_metric;
[64] Fix | Delete
unsigned long int rtmsg_info;
[65] Fix | Delete
uint32_t rtmsg_flags;
[66] Fix | Delete
int rtmsg_ifindex;
[67] Fix | Delete
};
[68] Fix | Delete
[69] Fix | Delete
[70] Fix | Delete
#define RTF_UP 0x0001 /* Route usable. */
[71] Fix | Delete
#define RTF_GATEWAY 0x0002 /* Destination is a gateway. */
[72] Fix | Delete
[73] Fix | Delete
#define RTF_HOST 0x0004 /* Host entry (net otherwise). */
[74] Fix | Delete
#define RTF_REINSTATE 0x0008 /* Reinstate route after timeout. */
[75] Fix | Delete
#define RTF_DYNAMIC 0x0010 /* Created dyn. (by redirect). */
[76] Fix | Delete
#define RTF_MODIFIED 0x0020 /* Modified dyn. (by redirect). */
[77] Fix | Delete
#define RTF_MTU 0x0040 /* Specific MTU for this route. */
[78] Fix | Delete
#define RTF_MSS RTF_MTU /* Compatibility. */
[79] Fix | Delete
#define RTF_WINDOW 0x0080 /* Per route window clamping. */
[80] Fix | Delete
#define RTF_IRTT 0x0100 /* Initial round trip time. */
[81] Fix | Delete
#define RTF_REJECT 0x0200 /* Reject route. */
[82] Fix | Delete
#define RTF_STATIC 0x0400 /* Manually injected route. */
[83] Fix | Delete
#define RTF_XRESOLVE 0x0800 /* External resolver. */
[84] Fix | Delete
#define RTF_NOFORWARD 0x1000 /* Forwarding inhibited. */
[85] Fix | Delete
#define RTF_THROW 0x2000 /* Go to next class. */
[86] Fix | Delete
#define RTF_NOPMTUDISC 0x4000 /* Do not send packets with DF. */
[87] Fix | Delete
[88] Fix | Delete
/* for IPv6 */
[89] Fix | Delete
#define RTF_DEFAULT 0x00010000 /* default - learned via ND */
[90] Fix | Delete
#define RTF_ALLONLINK 0x00020000 /* fallback, no routers on link */
[91] Fix | Delete
#define RTF_ADDRCONF 0x00040000 /* addrconf route - RA */
[92] Fix | Delete
[93] Fix | Delete
#define RTF_LINKRT 0x00100000 /* link specific - device match */
[94] Fix | Delete
#define RTF_NONEXTHOP 0x00200000 /* route with no nexthop */
[95] Fix | Delete
[96] Fix | Delete
#define RTF_CACHE 0x01000000 /* cache entry */
[97] Fix | Delete
#define RTF_FLOW 0x02000000 /* flow significant route */
[98] Fix | Delete
#define RTF_POLICY 0x04000000 /* policy route */
[99] Fix | Delete
[100] Fix | Delete
#define RTCF_VALVE 0x00200000
[101] Fix | Delete
#define RTCF_MASQ 0x00400000
[102] Fix | Delete
#define RTCF_NAT 0x00800000
[103] Fix | Delete
#define RTCF_DOREDIRECT 0x01000000
[104] Fix | Delete
#define RTCF_LOG 0x02000000
[105] Fix | Delete
#define RTCF_DIRECTSRC 0x04000000
[106] Fix | Delete
[107] Fix | Delete
#define RTF_LOCAL 0x80000000
[108] Fix | Delete
#define RTF_INTERFACE 0x40000000
[109] Fix | Delete
#define RTF_MULTICAST 0x20000000
[110] Fix | Delete
#define RTF_BROADCAST 0x10000000
[111] Fix | Delete
#define RTF_NAT 0x08000000
[112] Fix | Delete
[113] Fix | Delete
#define RTF_ADDRCLASSMASK 0xF8000000
[114] Fix | Delete
#define RT_ADDRCLASS(flags) ((uint32_t) flags >> 23)
[115] Fix | Delete
[116] Fix | Delete
#define RT_TOS(tos) ((tos) & IPTOS_TOS_MASK)
[117] Fix | Delete
[118] Fix | Delete
#define RT_LOCALADDR(flags) ((flags & RTF_ADDRCLASSMASK) \
[119] Fix | Delete
== (RTF_LOCAL|RTF_INTERFACE))
[120] Fix | Delete
[121] Fix | Delete
#define RT_CLASS_UNSPEC 0
[122] Fix | Delete
#define RT_CLASS_DEFAULT 253
[123] Fix | Delete
[124] Fix | Delete
#define RT_CLASS_MAIN 254
[125] Fix | Delete
#define RT_CLASS_LOCAL 255
[126] Fix | Delete
#define RT_CLASS_MAX 255
[127] Fix | Delete
[128] Fix | Delete
[129] Fix | Delete
#define RTMSG_ACK NLMSG_ACK
[130] Fix | Delete
#define RTMSG_OVERRUN NLMSG_OVERRUN
[131] Fix | Delete
[132] Fix | Delete
#define RTMSG_NEWDEVICE 0x11
[133] Fix | Delete
#define RTMSG_DELDEVICE 0x12
[134] Fix | Delete
#define RTMSG_NEWROUTE 0x21
[135] Fix | Delete
#define RTMSG_DELROUTE 0x22
[136] Fix | Delete
#define RTMSG_NEWRULE 0x31
[137] Fix | Delete
#define RTMSG_DELRULE 0x32
[138] Fix | Delete
#define RTMSG_CONTROL 0x40
[139] Fix | Delete
[140] Fix | Delete
#define RTMSG_AR_FAILED 0x51 /* Address Resolution failed. */
[141] Fix | Delete
[142] Fix | Delete
#endif /* net/route.h */
[143] Fix | Delete
[144] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function