⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospf_prototypes.h

📁 vxworks下ospf协议栈
💻 H
📖 第 1 页 / 共 4 页
字号:
/* ospf_transmit_utilities.c *//*****************************/OSPF_HEADER *ospf_get_an_ospf_send_packet (ULONG size_of_packet);void ospf_free_an_ospf_send_packet (OSPF_HEADER *sptr_tx_packet);ULONG ospf_determine_packet_destination (OSPF_INTERFACE *sptr_interface,OSPF_NEIGHBOR *sptr_neighbor);ULONG ospf_determine_destination (OSPF_INTERFACE *sptr_interface,OSPF_NEIGHBOR *sptr_neighbor);/********************//* ospf_utilities.c *//********************/enum BOOLEAN ospf_check_if_addresses_match (ULONG address_1,ULONG address_2);enum BOOLEAN ospf_check_for_transit_areas (void);void ospf_generate_network_and_router_link_state_advertisements (OSPF_INTERFACE *sptr_interface);ULONG ospf_get_authentication_size (OSPF_INTERFACE *sptr_interface);ULONG ospf_get_interface_mtu (OSPF_INTERFACE *sptr_interface);enum BOOLEAN ospf_validate_interface(ULONG interface_address);enum BOOLEAN ospf_check_if_area_border_router (void);enum TEST ospf_check_if_more_recent (OSPF_LS_HEADER *sptr_new_ls_header,OSPF_LS_HEADER *sptr_current_ls_header,ULONG elapsed_time);enum TEST ospf_check_if_same_instance (OSPF_LS_HEADER *sptr_new_ls_header,OSPF_LS_HEADER *sptr_current_ls_header,ULONG elapsed_time);seq_t ospf_increment_sequence_number (seq_t sequence_number);void ospf_add_entry_to_interfaces_delayed_acknowledgement_list (OSPF_INTERFACE *sptr_interface,OSPF_LS_DATABASE_ENTRY *sptr_database_entry);enum TEST ospf_check_for_valid_ls_type (OSPF_INTERFACE *sptr_interface,OSPF_LS_HEADER *sptr_ls_header, enum OSPF_UNION_PACKET_TYPES packet_type);OSPF_HEADER *ospf_new_link_state_update (UNION_OSPF_ADVERTISEMENT_HEADER **ptr_to_uptr_acknowledgement_header,OSPF_INTERFACE *sptr_interface);enum TEST ospf_check_if_ip_destination_falls_into_address_range (ULONG destination_ip_address,ULONG destination_id,ULONG address_mask);void ospf_transfer_fields_from_ls_request_structure_to_ls_header_structure (OSPF_LS_REQUEST *sptr_ls_request,OSPF_LS_HEADER *sptr_ls_header);enum TEST ospf_parse_port_plain_text_or_md5_password (char *cptr_port_password_string);void ospf_process_export_route_queue (void);void ospf_process_export_route_queue_all (void);void ospf_notify_areas_for_abr_change( ulong_t area_id_to_skip );void ospf_flush_network_link_advertisement( OSPF_INTERFACE *sptr_interface );UINT ospf_get_system_elapsed_time_second ();/********************//* ospf_to_rtm.c    *//********************/enum TEST ospf_export_route_to_other_protocols (enum OSPF_ROUTING_TABLE_UPDATE_ACTION action, OSPF_ROUTING_TABLE_ENTRY *sptr_ospf_route_entry_to_export);#if defined (__RTM__)#if defined (__OSPF_ROUTER_STACK__)void ospf_ctlinput(unsigned long intf, unsigned short intf_index, int intf_flags);#else /*__OSPF_ROUTER_STACK__*/void ospf_ctlinput (int command, struct sockaddr *sa,register struct ip *ip);#endif /* __OSPF_ROUTER_STACK__ */enum TEST ospf_register_with_rtm (void);STATUS ospf_export_route_from_rtm (int rtm_operation, ROUTE_DESC *sptr_rtm_route);/* SPR 83418 -- Begin */enum TEST ospf_is_protocol_redistributed (IP_ROUTE_ENTRY *sptr_ip_route);/* SPR 83418 -- End */#endif/* __RTM__ */#if (_BYTE_ORDER == _BIG_ENDIAN )ULONG ospf_min ( ULONG arg1, ULONG arg2); /*#$-NOTE:note36-$#*/#endif /* _BYTE_ORDER == _BIG_ENDIAN *//********************//* ospf_init.c     *//********************/void ospf_register_with_ip (FP_OSPF_RECEIVE pospfReceive, FP_OSPF_SEND pospfSend);void ospf_deregister_with_ip (FP_OSPF_RECEIVE pospfReceive, FP_OSPF_SEND pospfSend);bool ospfPartMemInitialize ();STATUS ospf_startup( void );/*******************************//* ospf_opaque_lsa.c           *//*******************************//*opaque lsa prototypes for setting opaque lsa data jkw*/#if defined (__OPAQUE_LSA__)int ospfSetOrigOpaqueLsa(ULONG ip_address, ULONG netmask, BYTE lsa_type,    BYTE opaque_type);int ospfRemoveType9(ULONG opaque_lsid, ULONG opaque_advertising_router);int ospfRemoveType10(ULONG opaque_lsid, ULONG opaque_advertising_router);int ospfRemoveType11(ULONG opaque_lsid, ULONG opaque_advertising_router);int ospfRefreshOpaqueLsa(ULONG ip_address, ULONG netmask, BYTE lsa_type,    ULONG opaque_lsid, ULONG opaque_advertising_router);ULONG ospfRetrieveNumOpaqueLsa(BYTE lsa_flooding_type);OSPF_TYPE_9_LSA_LINK *ospfRetrieveType9(enum OSPF_SEARCH_TYPE key, ULONG key_value, ULONG area_id);OSPF_TYPE_10_LSA_LINK *ospfRetrieveType10(enum OSPF_SEARCH_TYPE key, ULONG key_value, ULONG area_id);OSPF_TYPE_11_LSA_LINK *ospfRetrieveType11(enum OSPF_SEARCH_TYPE key, ULONG key_value);int ospfRemoveAllType9();int ospfRemoveAllType10();int ospfRemoveAllType11();int ospfRemoveAllTypes();int ospfRegisterOpaqueCallback(BYTE lsa_type, BYTE opaque_type, int (* new_interface_hook)(struct OSPF_INTERFACE *interface),                                            int (* delete_interface_hook)(struct OSPF_INTERFACE *interface),                                            void (* interface_state_machine_change_hook)(enum OSPF_INTERFACE_EVENT event,enum OSPF_INTERFACE_STATE state,struct OSPF_INTERFACE *interface),                                            void (* neighbor_state_machine_change_hook)(enum OSPF_NEIGHBOR_EVENT event,enum OSPF_NEIGHBOR_STATE state,struct OSPF_INTERFACE *sptr_interface, struct OSPF_NEIGHBOR *neighbor),                                            int (* opaque_lsa_originate_hook)(void *arg, BYTE lsa_type, BYTE opaque_type, USHORT age),                                            void (* opaque_lsa_refresh_hook)(void *arg, BYTE lsa_type, ULONG opaque_lsid, USHORT age),                                            void (* opaque_lsa_received_hook)(UNION_OSPF_LINK_STATE_ADVERTISEMENT *sptr_advertisement));int ospfDeregisterOpaqueCallback(BYTE lsa_type, BYTE opaque_type);OSPF_OPAQUE_CALLBACK *ospfRetrieveOpaqueCallback(BYTE lsa_type, BYTE opaque_type);int ospfDeregAllOpqCallback();void ospf_opaque_stub();#endif /* __OPAQUE_LSA__ */OSPF_TE_PARAMETERS *ospfTeDecodeTlv(USHORT tlvlen, int TElsatype, struct OSPF_TE_TLV_DATA *pTLV);int ospfTeEncodeTlv (void *arg, OSPF_TE_PARAMETERS *pTLVparms,char **pOpaqueDataBody,USHORT *pOpaqueDataLen);void ospf_te_build_tlv_header (char **new_lsa, USHORT *length, OSPF_TE_TLV_HEADER *tlv_header);void ospf_te_build_tlv_link_header (char **new_lsa, USHORT *length, OSPF_TE_PARAMETERS *pTLVparms);/********************//* ospf_show_lsdb.c *//********************/void ospf_show_stub();STATUS ospfShowLsdb();STATUS ospfShowLsdbSummary();STATUS ospfShowRouterLsdb();STATUS ospfShowNetworkLsdb();STATUS ospfShowSummaryLsdb();STATUS ospfShowAsbrSummaryLsdb();STATUS ospfShowExternalLsdb();#if defined (__NSSA__)STATUS ospfShowType7Lsdb();#endif /* __NSSA__ */#if defined (__OPAQUE_LSA__)void ospf_print_type_9(OSPF_AREA_ENTRY *sptr_area,OSPF_LS_DATABASE_ENTRY *sptr_database_entry);void ospf_print_type_10(OSPF_AREA_ENTRY *sptr_area,OSPF_LS_DATABASE_ENTRY *sptr_database_entry);void ospf_print_type_11(OSPF_LS_DATABASE_ENTRY *sptr_database_entry);void ospfShowOpaqueLsdb(enum OSPF_SEARCH_TYPE key, ULONG key_value);#endif /* __OPAQUE_LSA__ *//********************//* ospf_show_lsdb.c *//********************/void ospf_show_routing_stub();STATUS ospfShowRoutingTable();/********************************************//* prototypes for ospf_dynamic_config.c     *//********************************************/enum BOOLEAN ospf_dynamic_validate_area( ULONG area_id );void ospf_dynamic_tear_down_neighbors(OSPF_INTERFACE *sptr_interface);void ospf_dynamic_destroy_neighbor( OSPF_INTERFACE *sptr_interface,                                    OSPF_NEIGHBOR *sptr_neighbor );STATUS ospf_dynamic_config_metric( OSPF_INTERFACE *sptr_interface );void ospf_dynamic_step_intfSm( enum OSPF_INTERFACE_EVENT event,                               enum OSPF_INTERFACE_STATE state,                               OSPF_INTERFACE *sptr_interface );STATUS ospf_dynamic_create_area( OSPF_AREA_ENTRY *sptr_area );STATUS ospf_dynamic_reinit_area( OSPF_AREA_ENTRY *sptr_area, enum BOOLEAN delete_stub );STATUS ospf_dynamic_destroy_area( OSPF_AREA_ENTRY *sptr_area );void ospf_dynamic_reset_interface( OSPF_INTERFACE *sptr_interface );STATUS ospf_dynamic_init_unnumbered_interface( OSPF_INTERFACE *sptr_interface );STATUS ospf_dynamic_reinit_interface( OSPF_AREA_ENTRY *sptr_new_area,                                      OSPF_INTERFACE *sptr_interface,                                      enum BOOLEAN  reset_interface );STATUS ospf_dynamic_create_interface( OSPF_INTERFACE *sptr_interface );STATUS ospf_dynamic_destroy_interface(OSPF_INTERFACE *sptr_interface,                                      OSPF_AREA_ENTRY  *sptr_area );STATUS ospf_dynamic_create_virtIf( OSPF_INTERFACE *sptr_interface,                                   OSPF_AREA_ENTRY *sptr_area );STATUS ospf_dynamic_destory_virtIf( OSPF_INTERFACE *sptr_interface );void ospf_dynamic_send_default_summary_lsa( OSPF_AREA_ENTRY *sptr_area,                                     enum BOOLEAN send_max_age );void ospf_dynamic_create_area_range( OSPF_AREA_ENTRY *sptr_area,                                     OSPF_ADDRESS_RANGE_LIST_ENTRY *addr_ranges );void ospf_dynamic_destroy_area_range( OSPF_AREA_ENTRY *sptr_area,                                      OSPF_ADDRESS_RANGE_LIST_ENTRY *addr_range );enum BOOLEAN ospf_dynamic_config_overflow( ULONG new_extLsdb_limit,                                           ULONG new_overflow_interval );void ospf_dynamic_flush_opaque_lsa( OSPF_AREA_ENTRY *sptr_area );void ospf_dynamic_flush_external_routes( ULONG route_protocol, enum BOOLEAN is_default_route );void ospf_dynamic_export_external_routes( void );/************************//* ospf_show_routines.c *//************************/STATUS ospfEnableDebug(char*);STATUS ospfDisableDebug(char*);STATUS ospfShowDebug();/* SPR 81808 */STATUS ospfShowMemPartition(int options);/* SPR 88613 */STATUS ospfShowAreaAddressRange();void ospf_show_routines_stub();/************************//* ospf_cfg_routines.c *//************************/STATUS ospfSetPassiveMode (char *commands);STATUS ospfSetPassivePort (char *cptr_ip_address_string, enum OSPF_MODE mode);STATUS ospfSetOpaqueEnable();STATUS ospfSetOpaqueDisable();STATUS ospfSetTotalAreaAddressRange(ULONG total_number_area_ranges);void ospf_cfg_routines_stub();/************************//* ospf_ky_driver.c *//************************/#if defined (__KY_DRIVER__)void ospf_ky_driver();void ospf_ky_stub();#endif /* __KY_DRIVER__ *//****************************//* __UNNUMBERED_LINK__      *//****************************/struct ifnet* dstaddr_to_ifp(struct in_addr addr);/************************//* ospf_sysctl.c *//************************/void ospf_sysctl_input( int rsock_message, ushort_t interface_index,                        void *sptr_ctl_data );STATUS ospf_sysctl_rtableWalk( enum BOOLEAN asCapable, enum BOOLEAN redistributeStatic,                               enum BOOLEAN redistributeRIP, enum BOOLEAN redistributeBGP,                               enum BOOLEAN redistributeDefault );enum BOOLEAN ospf_compare_sysctl_rtableWalk(IP_ROUTE_ENTRY *sptr_ip_route_entry);#endif /* _OSPF_PROTOTYPES_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -