summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1998-10-26 16:35:19 +0100
committerPavel Machek <pavel@ucw.cz>1998-10-26 16:35:19 +0100
commitc3e9b2ab2448bce4a6fe6a5be9c8de8beecc8e17 (patch)
tree0e53109378d31ecde23f6367bbd32f8ddd40ec75 /proto/rip/rip.h
parentdafd580ed94f38c95a84d8d00d3a57c7c194d6db (diff)
downloadbird-c3e9b2ab2448bce4a6fe6a5be9c8de8beecc8e17.tar
bird-c3e9b2ab2448bce4a6fe6a5be9c8de8beecc8e17.zip
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.h14
1 files changed, 13 insertions, 1 deletions
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;
};