1998-09-16 02:39:15 +00:00
|
|
|
/* packet-rip.h (c) 1998 Hannes Boehm */
|
|
|
|
|
2000-04-14 06:17:23 +00:00
|
|
|
/* $Id: packet-rip.h,v 1.5 2000/04/14 06:17:23 guy Exp $ */
|
1999-10-06 03:33:48 +00:00
|
|
|
|
1998-09-16 02:39:15 +00:00
|
|
|
#define RIPv1 1
|
|
|
|
#define RIPv2 2
|
|
|
|
|
1998-11-20 09:24:42 +00:00
|
|
|
#define RIP_HEADER_LENGTH 4
|
|
|
|
#define RIP_ENTRY_LENGTH 20
|
1998-09-16 02:39:15 +00:00
|
|
|
|
|
|
|
typedef struct _e_riphdr {
|
|
|
|
guint8 command;
|
|
|
|
guint8 version;
|
|
|
|
guint16 domain;
|
|
|
|
} e_riphdr;
|
|
|
|
|
|
|
|
typedef struct _e_rip_vektor {
|
1998-11-20 09:24:42 +00:00
|
|
|
guint16 family;
|
|
|
|
guint16 tag;
|
1998-09-16 02:39:15 +00:00
|
|
|
guint32 ip;
|
|
|
|
guint32 mask;
|
|
|
|
guint32 next_hop;
|
|
|
|
guint32 metric;
|
|
|
|
} e_rip_vektor;
|
1998-11-20 09:24:42 +00:00
|
|
|
|
|
|
|
typedef struct _e_rip_authentication {
|
|
|
|
guint16 family;
|
|
|
|
guint16 authtype;
|
|
|
|
guint8 authentication[16];
|
|
|
|
} e_rip_authentication;
|
|
|
|
|
|
|
|
typedef union _e_rip_entry {
|
|
|
|
e_rip_vektor vektor;
|
|
|
|
e_rip_authentication authentication;
|
|
|
|
} e_rip_entry;
|