aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rip.h
blob: 59606fc254811e2208f0421711542fc06f7333bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* packet-rip.h (c) 1998 Hannes Boehm */

#define	RIPv1	1
#define	RIPv2	2

#define RIP_HEADER_LENGTH 8
#define RIP_VEKTOR_LENGTH 16

typedef struct _e_riphdr {
    guint8	command;
    guint8	version;
    guint16	domain;
    guint16	family;
    guint16	tag;
} e_riphdr;


typedef struct _e_rip_vektor {
    guint32	ip;
    guint32	mask;
    guint32	next_hop;
    guint32	metric;
} e_rip_vektor;