diff options
| author | christos <christos@NetBSD.org> | 1996-11-04 21:29:46 +0000 |
|---|---|---|
| committer | christos <christos@NetBSD.org> | 1996-11-04 21:29:46 +0000 |
| commit | bd7bec20e37a5fd324133bb093baec25c3ae447f (patch) | |
| tree | ba35016e6f75d8b51027ad39a7bf2c1de1f1fb12 /include/protocols | |
| parent | bbd25d0c38def15e14b56fc97d3cb768f2917162 (diff) | |
Fix RIP-V1 netinfo structure to be sizeof(sockaddr) + sizeof(u_int32_t) by
adding the missing RIP-V2 fields. This structure *must* always be the correct
size, otherwise programs that parse rip packets will break! (e.g.
tcpdump -s 1024 -vv broadcast would not parse rip packets correctly and
would fail after the first entry).
Diffstat (limited to 'include/protocols')
| -rw-r--r-- | include/protocols/routed.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/protocols/routed.h b/include/protocols/routed.h index aa5ec8dbc41..32b9f1b784e 100644 --- a/include/protocols/routed.h +++ b/include/protocols/routed.h @@ -1,4 +1,4 @@ -/* $NetBSD: routed.h,v 1.8 1996/10/20 21:53:20 thorpej Exp $ */ +/* $NetBSD: routed.h,v 1.9 1996/11/04 21:29:46 christos Exp $ */ /*- * Copyright (c) 1983, 1989, 1993 @@ -62,10 +62,13 @@ extern "C" { #define RIP_PORT 520 #if RIPVERSION == 1 +/* We include the V2 fields to get the right size */ struct netinfo { u_int16_t rip_family; u_int16_t rip_tag; u_int32_t rip_dst; /* destination net/host */ + u_int32_t rip_dst_mask; /* destination mask (V2 only) */ + u_int32_t rip_router; /* next host (V2 only) */ u_int32_t rip_metric; /* cost of route */ }; #else |
