%% This is latex

\documentstyle[newcen]{article}
\title{CGW Rip Implementation}

\begin{document}

\section{Input}

When a C Gateway gets an RIP input packet it dispatches to {\em
rip\_in} procedure which does the following:

\begin{itemize}
\item if the source address of the packet is one of our address on the
incomming net, or if the net has {\bf IF\_RIP\_IGN} set the packet is
ignored.

\item if the version field is not 1 the packet is ignored.

\item dispatches if the packet contains a request ({\bf RIP\_REQUEST}
or {\bf RIP\_REQGW}), logs an error if it is either {\bf TRACE\_ON} or
{\bf TRACE\_OFF}.  Otherwise the routing table is updated as follows
(for each {\em netinfo} structure in the packet):

\begin {itemize}
\item if the destination address equals 0 (the default route), the route is
ignored.

\item if the metric is greater than $\infty$ ({\em i.e.} 16) or less
than 0, it is set to $\infty$.

\item the routing table entry for the destination is looked up,
created if necessary.  If the entry is created its metric is set to
$\infty$, if it already exists with a metric of $\infty$ the route is ignored.

\end{itemize}
\end{itemize}

\end{document}


