mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Fixed reporting of unknown options.
This commit is contained in:
parent
7d6eebae3b
commit
9bc6ab4041
@ -226,10 +226,8 @@ bgp_rx_open(struct bgp_conn *conn, byte *pkt, int len)
|
|||||||
if (hold > 0 && hold < 3)
|
if (hold > 0 && hold < 3)
|
||||||
{ bgp_error(conn, 2, 6, hold, 0); return; }
|
{ bgp_error(conn, 2, 6, hold, 0); return; }
|
||||||
p->remote_id = id;
|
p->remote_id = id;
|
||||||
#if 0 /* FIXME */
|
|
||||||
if (pkt[28]) /* Currently we support no optional parameters */
|
if (pkt[28]) /* Currently we support no optional parameters */
|
||||||
{ bgp_error(conn, 2, 4, pkt[28], 0); return; }
|
{ bgp_error(conn, 2, 4, pkt[29], 0); return; }
|
||||||
#endif
|
|
||||||
if (!id || id == 0xffffffff || id == p->local_id)
|
if (!id || id == 0xffffffff || id == p->local_id)
|
||||||
{ bgp_error(conn, 2, 3, id, 0); return; }
|
{ bgp_error(conn, 2, 3, id, 0); return; }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user