- add proto_tree_add_text_valist
[obnox/wireshark/wip.git] / packet-rip.h
1 /* packet-rip.h (c) 1998 Hannes Boehm */
2
3 /* $Id: packet-rip.h,v 1.5 2000/04/14 06:17:23 guy Exp $ */
4
5 #define RIPv1   1
6 #define RIPv2   2
7
8 #define RIP_HEADER_LENGTH 4
9 #define RIP_ENTRY_LENGTH 20
10
11 typedef struct _e_riphdr {
12     guint8      command;
13     guint8      version;
14     guint16     domain;
15 } e_riphdr;
16
17 typedef struct _e_rip_vektor {
18     guint16     family;
19     guint16     tag;
20     guint32     ip;
21     guint32     mask;
22     guint32     next_hop;
23     guint32     metric;
24 } e_rip_vektor;
25
26 typedef struct _e_rip_authentication {
27     guint16     family;
28     guint16     authtype;
29     guint8      authentication[16];
30 } e_rip_authentication;
31
32 typedef union _e_rip_entry {
33     e_rip_vektor        vektor;
34     e_rip_authentication authentication;
35 } e_rip_entry;