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