diff options
author | Pavel Machek <pavel@ucw.cz> | 1998-10-26 15:35:19 +0000 |
---|---|---|
committer | Pavel Machek <pavel@ucw.cz> | 1998-10-26 15:35:19 +0000 |
commit | c3e9b2ab2448bce4a6fe6a5be9c8de8beecc8e17 (patch) | |
tree | 0e53109378d31ecde23f6367bbd32f8ddd40ec75 /proto/rip/rip.h | |
parent | dafd580ed94f38c95a84d8d00d3a57c7c194d6db (diff) |
RIP now includes notion of interface, and is correctly talking to
itself on second host. Split horizont is broken.
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r-- | proto/rip/rip.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h index fd637dc3..1f87891c 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; }; |