Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/protocol...
File: routed.h
/*-
[0] Fix | Delete
* Copyright (c) 1983, 1989, 1993
[1] Fix | Delete
* The Regents of the University of California. All rights reserved.
[2] Fix | Delete
*
[3] Fix | Delete
* Redistribution and use in source and binary forms, with or without
[4] Fix | Delete
* modification, are permitted provided that the following conditions
[5] Fix | Delete
* are met:
[6] Fix | Delete
* 1. Redistributions of source code must retain the above copyright
[7] Fix | Delete
* notice, this list of conditions and the following disclaimer.
[8] Fix | Delete
* 2. Redistributions in binary form must reproduce the above copyright
[9] Fix | Delete
* notice, this list of conditions and the following disclaimer in the
[10] Fix | Delete
* documentation and/or other materials provided with the distribution.
[11] Fix | Delete
* 4. Neither the name of the University nor the names of its contributors
[12] Fix | Delete
* may be used to endorse or promote products derived from this software
[13] Fix | Delete
* without specific prior written permission.
[14] Fix | Delete
*
[15] Fix | Delete
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
[16] Fix | Delete
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
[17] Fix | Delete
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
[18] Fix | Delete
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
[19] Fix | Delete
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
[20] Fix | Delete
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
[21] Fix | Delete
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
[22] Fix | Delete
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
[23] Fix | Delete
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
[24] Fix | Delete
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
[25] Fix | Delete
* SUCH DAMAGE.
[26] Fix | Delete
*
[27] Fix | Delete
* @(#)routed.h 8.1 (Berkeley) 6/2/93
[28] Fix | Delete
*/
[29] Fix | Delete
[30] Fix | Delete
#ifndef _PROTOCOLS_ROUTED_H
[31] Fix | Delete
#define _PROTOCOLS_ROUTED_H 1
[32] Fix | Delete
[33] Fix | Delete
#include <sys/socket.h>
[34] Fix | Delete
/*
[35] Fix | Delete
* Routing Information Protocol
[36] Fix | Delete
*
[37] Fix | Delete
* Derived from Xerox NS Routing Information Protocol
[38] Fix | Delete
* by changing 32-bit net numbers to sockaddr's and
[39] Fix | Delete
* padding stuff to 32-bit boundaries.
[40] Fix | Delete
*/
[41] Fix | Delete
#define RIPVERSION 1
[42] Fix | Delete
[43] Fix | Delete
struct netinfo {
[44] Fix | Delete
struct sockaddr rip_dst; /* destination net/host */
[45] Fix | Delete
int rip_metric; /* cost of route */
[46] Fix | Delete
};
[47] Fix | Delete
[48] Fix | Delete
struct rip {
[49] Fix | Delete
unsigned char rip_cmd; /* request/response */
[50] Fix | Delete
unsigned char rip_vers; /* protocol version # */
[51] Fix | Delete
unsigned char rip_res1[2]; /* pad to 32-bit boundary */
[52] Fix | Delete
union {
[53] Fix | Delete
struct netinfo ru_nets[1]; /* variable length... */
[54] Fix | Delete
char ru_tracefile[1]; /* ditto ... */
[55] Fix | Delete
} ripun;
[56] Fix | Delete
#define rip_nets ripun.ru_nets
[57] Fix | Delete
#define rip_tracefile ripun.ru_tracefile
[58] Fix | Delete
};
[59] Fix | Delete
[60] Fix | Delete
/*
[61] Fix | Delete
* Packet types.
[62] Fix | Delete
*/
[63] Fix | Delete
#define RIPCMD_REQUEST 1 /* want info */
[64] Fix | Delete
#define RIPCMD_RESPONSE 2 /* responding to request */
[65] Fix | Delete
#define RIPCMD_TRACEON 3 /* turn tracing on */
[66] Fix | Delete
#define RIPCMD_TRACEOFF 4 /* turn it off */
[67] Fix | Delete
[68] Fix | Delete
#define RIPCMD_MAX 5
[69] Fix | Delete
#ifdef RIPCMDS
[70] Fix | Delete
char *ripcmds[RIPCMD_MAX] =
[71] Fix | Delete
{ "#0", "REQUEST", "RESPONSE", "TRACEON", "TRACEOFF" };
[72] Fix | Delete
#endif
[73] Fix | Delete
[74] Fix | Delete
#define HOPCNT_INFINITY 16 /* per Xerox NS */
[75] Fix | Delete
#define MAXPACKETSIZE 512 /* max broadcast size */
[76] Fix | Delete
[77] Fix | Delete
/*
[78] Fix | Delete
* Timer values used in managing the routing table.
[79] Fix | Delete
* Complete tables are broadcast every SUPPLY_INTERVAL seconds.
[80] Fix | Delete
* If changes occur between updates, dynamic updates containing only changes
[81] Fix | Delete
* may be sent. When these are sent, a timer is set for a random value
[82] Fix | Delete
* between MIN_WAITTIME and MAX_WAITTIME, and no additional dynamic updates
[83] Fix | Delete
* are sent until the timer expires.
[84] Fix | Delete
*
[85] Fix | Delete
* Every update of a routing entry forces an entry's timer to be reset.
[86] Fix | Delete
* After EXPIRE_TIME without updates, the entry is marked invalid,
[87] Fix | Delete
* but held onto until GARBAGE_TIME so that others may
[88] Fix | Delete
* see it "be deleted".
[89] Fix | Delete
*/
[90] Fix | Delete
#define TIMER_RATE 30 /* alarm clocks every 30 seconds */
[91] Fix | Delete
[92] Fix | Delete
#define SUPPLY_INTERVAL 30 /* time to supply tables */
[93] Fix | Delete
#define MIN_WAITTIME 2 /* min. interval to broadcast changes */
[94] Fix | Delete
#define MAX_WAITTIME 5 /* max. time to delay changes */
[95] Fix | Delete
[96] Fix | Delete
#define EXPIRE_TIME 180 /* time to mark entry invalid */
[97] Fix | Delete
#define GARBAGE_TIME 240 /* time to garbage collect */
[98] Fix | Delete
[99] Fix | Delete
#endif /* protocols/routed.h */
[100] Fix | Delete
[101] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function