MCPcopy Create free account

hub / github.com/Miyoshi-Ryota/mrbgpdv2 / functions

Functions74 in github.com/Miyoshi-Ryota/mrbgpdv2

↓ 14 callersMethodpush
(&mut self, as_path: AutonomousSystemNumber)
src/path_attribute.rs:235
↓ 11 callersMethodnext
(&mut self)
src/peer.rs:57
↓ 10 callersMethodinsert
(&mut self, entry: Arc<RibEntry>)
src/routing.rs:174
↓ 9 callersMethodenqueue
(&mut self, event: Event)
src/event_queue.rs:12
↓ 9 callersMethodstart
(&mut self)
src/peer.rs:51
↓ 4 callersMethodroutes
(&self)
src/routing.rs:184
↓ 3 callersMethodbytes_len
(&self)
src/routing.rs:75
↓ 3 callersMethoddoes_contain_new_route
(&self)
src/routing.rs:188
↓ 3 callersMethodsend
(&mut self, message: Message)
src/connection.rs:33
↓ 3 callersMethodupdate_to_all_unchanged
(&mut self)
src/routing.rs:178
↓ 2 callersMethoddoes_contain_as
(&self, as_number: AutonomousSystemNumber)
src/routing.rs:425
↓ 2 callersMethodinstall_from_loc_rib
LocRibから必要なルートをインストールする。 この時、Remote AS番号が含まれているルートはインストールしない。
src/routing.rs:328
↓ 1 callersMethodadd
(&mut self, as_number: AutonomousSystemNumber)
src/path_attribute.rs:281
↓ 1 callersMethodbytes_len
(&self)
src/path_attribute.rs:18
↓ 1 callersMethodcreate_update_messages
AdjRibOutからUpdateMessageに変換する。 PathAttributeごとにUpdateMessageが分かれるためVec<UpdateMessage>の戻り値にしている。
src/routing.rs:337
↓ 1 callersMethoddequeue
(&mut self)
src/event_queue.rs:16
↓ 1 callersMethoddoes_contain
(&self, as_path: AutonomousSystemNumber)
src/path_attribute.rs:228
↓ 1 callersMethodget_index_of_message_separator
self.bufferのうちどこまでが1つのbgp messageを表すbytesであるか返す。
src/connection.rs:60
↓ 1 callersMethodget_message
bgp messageを1つ以上受信していれば 最古に受信したMessageをSome<Message>として返す。 bgp messageのデータの受信中(半端に受信している)、 ないしは何も受信していない場合はNoneを返す。
src/connection.rs:42
↓ 1 callersMethodhandle_event
(&mut self, event: Event)
src/peer.rs:86
↓ 1 callersMethodhandle_message
(&mut self, message: Message)
src/peer.rs:71
↓ 1 callersMethodinstall_from_adj_rib_in
AdjRibInから必要なルートをインストールする。 この時、自ASが含まれているルートはインストールしない。 参考: 9.1.2. Phase 2: Route Selection in RFC4271.
src/routing.rs:271
↓ 1 callersMethodinstall_from_update
( &mut self, update: UpdateMessage, config: &Config, )
src/routing.rs:400
↓ 1 callersMethodread_data_from_tcp_connection
(&mut self)
src/connection.rs:71
↓ 1 callersMethodsplit_buffer_at_message_separator
self.bufferから1つのbgp messageを表すbyteを切り出す。
src/connection.rs:49
↓ 1 callersMethodwrite_to_kernel_routing_table
(&self)
src/routing.rs:281
Methodconnect
( config: &Config, )
src/connection.rs:20
Methodconnect_to_remote_peer
(config: &Config)
src/connection.rs:89
Functionconvert_bytes_to_header_and_header_to_bytes
()
src/packets/header.rs:81
Functionconvert_bytes_to_open_message_and_open_message_to_bytes
()
src/packets/open.rs:99
Functionconvert_bytes_to_update_message_and_update_message_to_bytes
()
src/packets/update.rs:185
Methoddefault
()
src/bgp_type.rs:36
Methoddefault
()
src/packets/keepalive.rs:41
Methodderef
(&self)
src/routing.rs:26
Methodderef_mut
(&mut self)
src/routing.rs:32
Methodfrom
(ip_network: ipnetwork::Ipv4Network)
src/routing.rs:38
Methodfrom
(as_number: AutonomousSystemNumber)
src/bgp_type.rs:9
Methodfrom
(p: &PathAttribute)
src/path_attribute.rs:85
Methodfrom
(keepalive: KeepaliveMessage)
src/packets/keepalive.rs:28
Methodfrom
(header: Header)
src/packets/header.rs:30
Methodfrom
(message: UpdateMessage)
src/packets/update.rs:71
Methodfrom
(message: OpenMessage)
src/packets/open.rs:79
Methodfrom
(message: Message)
src/packets/message.rs:51
Methodfrom_str
(s: &str)
src/config.rs:26
Methodfrom_str
(s: &str)
src/routing.rs:66
Methodfrom_u8_slice
本来、From Traitを実装するべきだと思うけれど、 Vec<..>に実装するのが、New Type Patternが必要になり 大変なので変な関連関数を追加することで対応した。
src/routing.rs:101
Methodfrom_u8_slice
( bytes: &[u8], )
src/path_attribute.rs:36
Functionloc_rib_to_adj_rib_out
()
src/routing.rs:455
Functionloclib_can_lookup_routing_table
()
src/routing.rs:441
Methodlookup_kernel_routing_table
( network_address: Ipv4Network, )
src/routing.rs:243
Functionmain
()
src/main.rs:12
Methodnew
(config: Config, loc_rib: Arc<Mutex<LocRib>>)
src/peer.rs:34
Methodnew
( addr: Ipv4Addr, prefix: u8, )
src/routing.rs:86
Methodnew
()
src/bgp_type.rs:42
Methodnew
()
src/event_queue.rs:8
Methodnew
()
src/packets/keepalive.rs:34
Methodnew
(length: u16, type_: MessageType)
src/packets/header.rs:13
Methodnew
( path_attributes: Arc<Vec<PathAttribute>>, network_layer_reachability_information: Vec<Ipv4Ne
src/packets/update.rs:31
Methodnew
( my_as_number: AutonomousSystemNumber, my_ip_addr: Ipv4Addr, )
src/packets/open.rs:23
Methodnew_keepalive
()
src/packets/message.rs:68
Methodnew_open
( my_as_number: AutonomousSystemNumber, my_ip_addr: Ipv4Addr, )
src/packets/message.rs:61
Functionpeer_can_transition_to_connect_state
()
src/peer.rs:227
Functionpeer_can_transition_to_established_state
()
src/peer.rs:330
Functionpeer_can_transition_to_open_confirm_state
()
src/peer.rs:287
Functionpeer_can_transition_to_open_sent_state
()
src/peer.rs:256
Methodtry_from
(v: u8)
src/bgp_type.rs:59
Methodtry_from
(value: u8)
src/path_attribute.rs:164
Methodtry_from
(bytes: BytesMut)
src/packets/keepalive.rs:15
Methodtry_from
(bytes: BytesMut)
src/packets/header.rs:21
Methodtry_from
(bytes: BytesMut)
src/packets/update.rs:96
Methodtry_from
(bytes: BytesMut)
src/packets/open.rs:43
Methodtry_from
(bytes: BytesMut)
src/packets/message.rs:24
Functionupdate_message_from_adj_rib_out
()
src/packets/update.rs:144
Methodwait_connection_from_remote_peer
( config: &Config, )
src/connection.rs:99