|
|
If the route is modified, the user is responsible for retrieving the filtered message and deleting it.
BGPVarRW (const InternalMessage<A>& rtmsg, bool no_modify)
| BGPVarRW |
This varrw allows for routes to remain untouched even though they are filtered. This is useful in order to check if a route will be accepted or rejected, without caring about its modifications.
Parameters:
rtmsg | the message to filter and possibly modify. |
no_modify | if true, the route will not be modified. |
~BGPVarRW ()
| ~BGPVarRW |
InternalMessage<A>* filtered_message ()
| filtered_message |
Caller owns the message [responsible for delete]. Calling multiple times will always return the same message, not a copy.
Returns: the modified message. Null if no changes were made.
void start_read ()
| start_read |
Reimplemented from SingleVarRW.
void single_write (const string& id, const Element& e)
| single_write |
Reimplemented from SingleVarRW.
void end_write ()
| end_write |
Reimplemented from SingleVarRW.
bool modified ()
| modified |
If a route is modified, the caller may obtain it via the filtered_message call.
Returns: true if route was modified. False otherwise.