RIPcode
-
RIPListen.java
-
The listener, which receives datagrams at the specified port,
turns each one into a
DataInputStream, and
gives it to RIPPacket to parse.
-
RIPPacket.java
-
This grabs off the 4-byte
RIP header,
counts how many route entries there are, and runs a
loop letting a RIPEntry
parse each route entry.
-
RIPEntry.java
-
This parses the 20-byte entry, learning
in particular the address, mask, nexthop, and metric.
Prepared by
doug@mscs.mu.edu
Douglas Harris
Created October 25, 1998