summaryrefslogtreecommitdiffstats
path: root/proto/bgp/packets.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-04-21 00:34:50 +0200
committerMartin Mares <mj@ucw.cz>2000-04-21 00:34:50 +0200
commit9bc6ab404190db53c9c9dbc183f6fc6fa3e704fb (patch)
treed4b79b7ca61bb340637eababd19e279e06a6552b /proto/bgp/packets.c
parent7d6eebae3b87cac2d09fd5201b603d4fd969fe06 (diff)
downloadbird-9bc6ab404190db53c9c9dbc183f6fc6fa3e704fb.tar
bird-9bc6ab404190db53c9c9dbc183f6fc6fa3e704fb.zip
Fixed reporting of unknown options.
Diffstat (limited to 'proto/bgp/packets.c')
-rw-r--r--proto/bgp/packets.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index 514e67a..91d0508 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -226,10 +226,8 @@ bgp_rx_open(struct bgp_conn *conn, byte *pkt, int len)
if (hold > 0 && hold < 3)
{ bgp_error(conn, 2, 6, hold, 0); return; }
p->remote_id = id;
-#if 0 /* FIXME */
if (pkt[28]) /* Currently we support no optional parameters */
- { bgp_error(conn, 2, 4, pkt[28], 0); return; }
-#endif
+ { bgp_error(conn, 2, 4, pkt[29], 0); return; }
if (!id || id == 0xffffffff || id == p->local_id)
{ bgp_error(conn, 2, 3, id, 0); return; }