summaryrefslogtreecommitdiff
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-20 22:54:22 +0000
committerMartin Mares <mj@ucw.cz>2000-04-20 22:54:22 +0000
commit7787ace61ae41060e599ce52e8f0017750d350da (patch)
treee2a4f75bd202e775addc58849b45e059d1926284 /proto/bgp/packets.c
parent9bc6ab404190db53c9c9dbc183f6fc6fa3e704fb (diff)
Synced to draft-ietf-idr-bgp4-09.
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 91d05083..bec2e501 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -216,7 +216,7 @@ bgp_rx_open(struct bgp_conn *conn, byte *pkt, int len)
if (len < 29 || len != 29 + pkt[28])
{ bgp_error(conn, 1, 2, len, 2); return; }
if (pkt[19] != BGP_VERSION)
- { bgp_error(conn, 2, 1, pkt[19], 2); return; }
+ { bgp_error(conn, 2, 1, pkt[19], 1); return; } /* RFC 1771 says 16 bits, draft-09 tells to use 8 */
as = get_u16(pkt+20);
hold = get_u16(pkt+22);
id = get_u32(pkt+24);