Алгоритми маршрутизації в мережах
charmyname[MAXHOSTNAMELEN+1];
intsupplier;/* supply or broadcast updates */
intsupplier_set;
intipforwarding = 1;/* kernel forwarding on */
intdefault_gateway;/* 1=advertise default */
intbackground = 1;
intridhosts;/* 1=reduce host routes */
intmhome;/* 1=want multi-homed host route */
intadvertise_mhome;/* 1=must continue adverising it */
intauth_ok = 1;/* 1=ignore auth if we do not care */
struct timeval epoch;/* when started */
struct timeval clk, prev_clk;
struct timeval now;/* current idea of time */
time_tnow_stale;
time_tnow_expire;
time_tnow_garbage;
struct timeval next_bcast;/* next general broadcast */
struct timeval no_flash = {EPOCH+SUPPLY_INTERVAL}; /* inhibit flash update */
fd_setfdbits;
intsock_max;
intrip_sock = -1;/* RIP socket */
struct interface *rip_sock_mcast;/* current multicast interface */
intrt_sock;/* routing socket */
intrt_sock_seqno;
static int get_rip_sock(naddr, int);