Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/protocol...
File: timed.h
/*
[0] Fix | Delete
* Copyright (c) 1983, 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
* @(#)timed.h 8.1 (Berkeley) 6/2/93
[28] Fix | Delete
*/
[29] Fix | Delete
[30] Fix | Delete
#ifndef _PROTOCOLS_TIMED_H
[31] Fix | Delete
#define _PROTOCOLS_TIMED_H 1
[32] Fix | Delete
[33] Fix | Delete
#include <sys/types.h>
[34] Fix | Delete
#include <sys/time.h>
[35] Fix | Delete
[36] Fix | Delete
/*
[37] Fix | Delete
* Time Synchronization Protocol
[38] Fix | Delete
*/
[39] Fix | Delete
[40] Fix | Delete
#define TSPVERSION 1
[41] Fix | Delete
#define ANYADDR NULL
[42] Fix | Delete
#define MAXHOSTNAMELEN 64
[43] Fix | Delete
[44] Fix | Delete
struct tsp {
[45] Fix | Delete
unsigned char tsp_type;
[46] Fix | Delete
unsigned char tsp_vers;
[47] Fix | Delete
unsigned short tsp_seq;
[48] Fix | Delete
union {
[49] Fix | Delete
struct timeval tspu_time;
[50] Fix | Delete
char tspu_hopcnt;
[51] Fix | Delete
} tsp_u;
[52] Fix | Delete
char tsp_name[MAXHOSTNAMELEN];
[53] Fix | Delete
};
[54] Fix | Delete
[55] Fix | Delete
#define tsp_time tsp_u.tspu_time
[56] Fix | Delete
#define tsp_hopcnt tsp_u.tspu_hopcnt
[57] Fix | Delete
[58] Fix | Delete
/*
[59] Fix | Delete
* Command types.
[60] Fix | Delete
*/
[61] Fix | Delete
#define TSP_ANY 0 /* match any types */
[62] Fix | Delete
#define TSP_ADJTIME 1 /* send adjtime */
[63] Fix | Delete
#define TSP_ACK 2 /* generic acknowledgement */
[64] Fix | Delete
#define TSP_MASTERREQ 3 /* ask for master's name */
[65] Fix | Delete
#define TSP_MASTERACK 4 /* acknowledge master request */
[66] Fix | Delete
#define TSP_SETTIME 5 /* send network time */
[67] Fix | Delete
#define TSP_MASTERUP 6 /* inform slaves that master is up */
[68] Fix | Delete
#define TSP_SLAVEUP 7 /* slave is up but not polled */
[69] Fix | Delete
#define TSP_ELECTION 8 /* advance candidature for master */
[70] Fix | Delete
#define TSP_ACCEPT 9 /* support candidature of master */
[71] Fix | Delete
#define TSP_REFUSE 10 /* reject candidature of master */
[72] Fix | Delete
#define TSP_CONFLICT 11 /* two or more masters present */
[73] Fix | Delete
#define TSP_RESOLVE 12 /* masters' conflict resolution */
[74] Fix | Delete
#define TSP_QUIT 13 /* reject candidature if master is up */
[75] Fix | Delete
#define TSP_DATE 14 /* reset the time (date command) */
[76] Fix | Delete
#define TSP_DATEREQ 15 /* remote request to reset the time */
[77] Fix | Delete
#define TSP_DATEACK 16 /* acknowledge time setting */
[78] Fix | Delete
#define TSP_TRACEON 17 /* turn tracing on */
[79] Fix | Delete
#define TSP_TRACEOFF 18 /* turn tracing off */
[80] Fix | Delete
#define TSP_MSITE 19 /* find out master's site */
[81] Fix | Delete
#define TSP_MSITEREQ 20 /* remote master's site request */
[82] Fix | Delete
#define TSP_TEST 21 /* for testing election algo */
[83] Fix | Delete
#define TSP_SETDATE 22 /* New from date command */
[84] Fix | Delete
#define TSP_SETDATEREQ 23 /* New remote for above */
[85] Fix | Delete
#define TSP_LOOP 24 /* loop detection packet */
[86] Fix | Delete
[87] Fix | Delete
#define TSPTYPENUMBER 25
[88] Fix | Delete
[89] Fix | Delete
#ifdef TSPTYPES
[90] Fix | Delete
char *tsptype[TSPTYPENUMBER] =
[91] Fix | Delete
{ "ANY", "ADJTIME", "ACK", "MASTERREQ", "MASTERACK", "SETTIME", "MASTERUP",
[92] Fix | Delete
"SLAVEUP", "ELECTION", "ACCEPT", "REFUSE", "CONFLICT", "RESOLVE", "QUIT",
[93] Fix | Delete
"DATE", "DATEREQ", "DATEACK", "TRACEON", "TRACEOFF", "MSITE", "MSITEREQ",
[94] Fix | Delete
"TEST", "SETDATE", "SETDATEREQ", "LOOP" };
[95] Fix | Delete
#endif
[96] Fix | Delete
[97] Fix | Delete
#endif /* protocols/timed.h */
[98] Fix | Delete
[99] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function