minix/include/net/gen/rip.h
Ben Gras 2fe8fb192f Full switch to clang/ELF. Drop ack. Simplify.
There is important information about booting non-ack images in
docs/UPDATING. ack/aout-format images can't be built any more, and
booting clang/ELF-format ones is a little different. Updating to the
new boot monitor is recommended.

Changes in this commit:

	. drop boot monitor -> allowing dropping ack support
	. facility to copy ELF boot files to /boot so that old boot monitor
	  can still boot fairly easily, see UPDATING
	. no more ack-format libraries -> single-case libraries
	. some cleanup of OBJECT_FMT, COMPILER_TYPE, etc cases
	. drop several ack toolchain commands, but not all support
	  commands (e.g. aal is gone but acksize is not yet).
	. a few libc files moved to netbsd libc dir
	. new /bin/date as minix date used code in libc/
	. test compile fix
	. harmonize includes
	. /usr/lib is no longer special: without ack, /usr/lib plays no
	  kind of special bootstrapping role any more and bootstrapping
	  is done exclusively through packages, so releases depend even
	  less on the state of the machine making them now.
	. rename nbsd_lib* to lib*
	. reduce mtree
2012-02-14 14:52:02 +01:00

78 lines
1.4 KiB
C

/*
net/gen/rip.h
Definitions for the Routing Information Protocol (RFC-1058).
Created: Aug 16, 1993 by Philip Homburg <philip@cs.vu.nl>
*/
#ifndef NET__GEN__RIP_H
#define NET__GEN__RIP_H
typedef struct rip_hdr
{
u8_t rh_command;
u8_t rh_version;
u16_t rh_zero;
} rip_hdr_t;
#define RHC_REQUEST 1
#define RHC_RESPONSE 2
#define RIP_ENTRY_MAX 25
typedef struct rip_entry
{
union
{
struct rip_entry_v1
{
u16_t re_family;
u16_t re_zero0;
u32_t re_address;
u32_t re_zero1;
u32_t re_zero2;
u32_t re_metric;
} v1;
struct rip_entry_v2
{
u16_t re_family;
u16_t re_tag;
u32_t re_address;
u32_t re_mask;
u32_t re_nexthop;
u32_t re_metric;
} v2;
} u;
} rip_entry_t;
#define RIP_FAMILY_IP 2
#define RIP_INFINITY 16
#define RIP_UDP_PORT 520
#define RIP_PERIOD 30 /* A responce is sent once every
* RIP_PERIOD seconds
*/
#define RIP_FUZZ 10 /* The actual value used is RIP_FREQUENCE -
* a random number of at most RIP_FUZZ.
*/
#define RIP_TIMEOUT 180 /* A route is dead after RIP_TIMEOUT seconds */
#define RIP_DELETE_TO 120 /* A dead route is removed after RIP_DELETE_TO
* seconds
*/
#ifdef __RIP_DEBUG
#undef RIP_PERIOD
#define RIP_PERIOD 15
#undef RIP_TIMEOUT
#define RIP_TIMEOUT 10
#undef RIP_DELETE_TO
#define RIP_DELETE_TO 10
#endif /* __RIP_DEBUG */
#endif /* NET__GEN__RIP_H */
/*
* $PchId: rip.h,v 1.3 1995/11/17 22:21:16 philip Exp $
*/