Skip to content

Commit a877c33

Browse files
make a few more functions public
1 parent d514dcf commit a877c33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bgpsim/src/router/bgp_process.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ impl<P: Prefix> BgpProcess<P> {
760760
/// The entry is cloned and modified. This function will also modify the ORIGINATOR_ID and the
761761
/// CLUSTER_LIST if the route is "reflected". A route is reflected if the router forwards it
762762
/// from an internal router to another internal router.
763-
fn process_rib_out_route(
763+
pub fn process_rib_out_route(
764764
&self,
765765
mut entry: BgpRibEntry<P>,
766766
target_peer: RouterId,
@@ -819,7 +819,7 @@ impl<P: Prefix> BgpProcess<P> {
819819
/// returns a bool which tells to export the route to the target, which was advertised by the
820820
/// source.
821821
#[inline(always)]
822-
fn should_export_route(
822+
pub fn should_export_route(
823823
&self,
824824
from: RouterId,
825825
from_type: BgpSessionType,

0 commit comments

Comments
 (0)