From c3e9b2ab2448bce4a6fe6a5be9c8de8beecc8e17 Mon Sep 17 00:00:00 2001 From: Pavel Machek Date: Mon, 26 Oct 1998 15:35:19 +0000 Subject: RIP now includes notion of interface, and is correctly talking to itself on second host. Split horizont is broken. --- proto/rip/rip.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'proto/rip/rip.h') diff --git a/proto/rip/rip.h b/proto/rip/rip.h index fd637dc..1f87891 100644 --- a/proto/rip/rip.h +++ b/proto/rip/rip.h @@ -10,6 +10,10 @@ struct rip_connection { ip_addr addr; struct rip_entry *sendptr; sock *send; + struct rip_interface *rif; + + ip_addr daddr; + int dport; }; struct rip_packet_heading { @@ -54,13 +58,21 @@ struct rip_packet { struct rip_block block[25]; }; +struct rip_interface { + node n; + struct proto *proto; + struct iface *iface; + sock *sock; + struct rip_connection *busy; +}; + struct rip_data { struct proto inherited; - sock *listen; timer *timer; list connections; list rtable; list garbage; + list interfaces; int magic; }; -- cgit v1.2.3