123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- #ifndef _PROTOCOLS_ROUTED_H
- #define _PROTOCOLS_ROUTED_H 1
- #include <sys/socket.h>
- #define RIPVERSION 1
- struct netinfo {
- struct sockaddr rip_dst;
- int rip_metric;
- };
- struct rip {
- u_char rip_cmd;
- u_char rip_vers;
- u_char rip_res1[2];
- union {
- struct netinfo ru_nets[1];
- char ru_tracefile[1];
- } ripun;
- #define rip_nets ripun.ru_nets
- #define rip_tracefile ripun.ru_tracefile
- };
- #define RIPCMD_REQUEST 1
- #define RIPCMD_RESPONSE 2
- #define RIPCMD_TRACEON 3
- #define RIPCMD_TRACEOFF 4
- #define RIPCMD_MAX 5
- #ifdef RIPCMDS
- char *ripcmds[RIPCMD_MAX] =
- { "#0", "REQUEST", "RESPONSE", "TRACEON", "TRACEOFF" };
- #endif
- #define HOPCNT_INFINITY 16
- #define MAXPACKETSIZE 512
- #define TIMER_RATE 30
- #define SUPPLY_INTERVAL 30
- #define MIN_WAITTIME 2
- #define MAX_WAITTIME 5
- #define EXPIRE_TIME 180
- #define GARBAGE_TIME 240
- #endif
|