]> git.ipfire.org Git - thirdparty/bird.git/commit
BGP: Use proper class in attribute error messages
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 28 Jan 2022 04:35:22 +0000 (05:35 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 28 Jan 2022 04:35:22 +0000 (05:35 +0100)
commit963b2c7ce219df6bf9c179fff2dd2386cf26edf9
treee296dff9eff0eb17b8e317e64b2341449773fed0
parent75d01ecc2d32f3f673f82d90552f17b753e5e739
BGP: Use proper class in attribute error messages

Most error messages in attribute processing are in rx/decode step and
these use L_REMOTE log class. But there are few that are in tx/export
step and these should use L_ERR log class.

Use tx-specific macro (REJECT()) in tx/export code and rename field
err_withdraw to err_reject in struct bgp_export_state to ensure that
appropriate error reporting macros are called in proper contexts.
proto/bgp/attrs.c
proto/bgp/bgp.h
proto/bgp/packets.c