summaryrefslogtreecommitdiffstats
path: root/proto/rip/rip.h
diff options
context:
space:
mode:
authorPavel Machek <pavel@ucw.cz>1999-05-11 11:53:45 +0200
committerPavel Machek <pavel@ucw.cz>1999-05-11 11:53:45 +0200
commit1b16029c12a501752388523ebfe2981e7d7d7ed3 (patch)
tree7f35d3184049073ac0f6961ab8483defa76cba26 /proto/rip/rip.h
parentf7103dfcfe174d39c8aa10eb100550e3ec213981 (diff)
downloadbird-1b16029c12a501752388523ebfe2981e7d7d7ed3.tar
bird-1b16029c12a501752388523ebfe2981e7d7d7ed3.zip
Mensi updaty do ripu. Pridana passwd autentikace (netestovano).
Diffstat (limited to 'proto/rip/rip.h')
-rw-r--r--proto/rip/rip.h22
1 files changed, 17 insertions, 5 deletions
diff --git a/proto/rip/rip.h b/proto/rip/rip.h
index 9c66981..a413f71 100644
--- a/proto/rip/rip.h
+++ b/proto/rip/rip.h
@@ -69,10 +69,11 @@ struct rip_interface {
int metric; /* User configurable data */
int mode;
-#define IM_DEFAULT 0
-#define IM_QUIET 1
-#define IM_MULTICAST 2
-#define IM_BROADCAST 3
+#define IM_MULTICAST 1
+#define IM_BROADCAST 2
+#define IM_QUIET 4
+#define IM_NOLISTEN 8
+#define IM_VERSION1 16
};
struct rip_patt {
@@ -90,6 +91,12 @@ struct rip_proto_config {
int port;
int period;
int garbage_time;
+
+ char *password;
+ int authtype;
+#define AT_NONE 0
+#define AT_PLAINTEXT 2
+#define AT_MD5 1234 /* FIXME: get a real number for this one */
};
struct rip_proto {
@@ -108,4 +115,9 @@ struct rip_proto {
void rip_init_instance(struct proto *p);
void rip_init_config(struct rip_proto_config *c);
-struct rip_interface *new_iface(struct proto *p, struct iface *new, unsigned long flags);
+struct rip_interface *new_iface(struct proto *p, struct iface *new, unsigned long flags, struct iface_patt *patt);
+
+/* Authentication functions */
+
+int rip_incoming_authentication( struct proto *p, struct rip_block *block, struct rip_packet *packet, int num );
+void rip_outgoing_authentication( struct proto *p, struct rip_block *block, struct rip_packet *packet, int num );