diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-01-28 05:35:22 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-01-28 05:35:22 +0100 |
commit | 963b2c7ce219df6bf9c179fff2dd2386cf26edf9 (patch) | |
tree | e296dff9eff0eb17b8e317e64b2341449773fed0 /proto/bgp/bgp.h | |
parent | 75d01ecc2d32f3f673f82d90552f17b753e5e739 (diff) |
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.
Diffstat (limited to 'proto/bgp/bgp.h')
-rw-r--r-- | proto/bgp/bgp.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/bgp/bgp.h b/proto/bgp/bgp.h index db05b693..08e751e7 100644 --- a/proto/bgp/bgp.h +++ b/proto/bgp/bgp.h @@ -397,7 +397,7 @@ struct bgp_export_state { int mpls; u32 attrs_seen[1]; - uint err_withdraw; + uint err_reject; uint local_next_hop; }; |