📄 ospfv2_xif.cc
字号:
/* * Copyright (c) 2001-2007 International Computer Science Institute * See LICENSE file for licensing, conditions, and warranties on use. * * DO NOT EDIT THIS FILE - IT IS PROGRAMMATICALLY GENERATED * * Generated by 'clnt-gen'. */#ident "$XORP: xorp/xrl/interfaces/ospfv2_xif.cc,v 1.26 2007/02/16 22:47:40 pavlin Exp $"#include "ospfv2_xif.hh"boolXrlOspfv2V0p1Client::send_set_router_id( const char* dst_xrl_target_name, const IPv4& id, const SetRouterIdCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/set_router_id"); x.args().add("id", id); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_set_router_id, cb));}/* Unmarshall set_router_id */voidXrlOspfv2V0p1Client::unmarshall_set_router_id( const XrlError& e, XrlArgs* a, SetRouterIdCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_set_rfc1583_compatibility( const char* dst_xrl_target_name, const bool& compatibility, const SetRfc1583CompatibilityCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/set_rfc1583_compatibility"); x.args().add("compatibility", compatibility); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_set_rfc1583_compatibility, cb));}/* Unmarshall set_rfc1583_compatibility */voidXrlOspfv2V0p1Client::unmarshall_set_rfc1583_compatibility( const XrlError& e, XrlArgs* a, SetRfc1583CompatibilityCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_set_ip_router_alert( const char* dst_xrl_target_name, const bool& ip_router_alert, const SetIpRouterAlertCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/set_ip_router_alert"); x.args().add("ip_router_alert", ip_router_alert); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_set_ip_router_alert, cb));}/* Unmarshall set_ip_router_alert */voidXrlOspfv2V0p1Client::unmarshall_set_ip_router_alert( const XrlError& e, XrlArgs* a, SetIpRouterAlertCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_create_area_router( const char* dst_xrl_target_name, const IPv4& area, const string& type, const CreateAreaRouterCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/create_area_router"); x.args().add("area", area); x.args().add("type", type); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_create_area_router, cb));}/* Unmarshall create_area_router */voidXrlOspfv2V0p1Client::unmarshall_create_area_router( const XrlError& e, XrlArgs* a, CreateAreaRouterCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_change_area_router_type( const char* dst_xrl_target_name, const IPv4& area, const string& type, const ChangeAreaRouterTypeCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/change_area_router_type"); x.args().add("area", area); x.args().add("type", type); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_change_area_router_type, cb));}/* Unmarshall change_area_router_type */voidXrlOspfv2V0p1Client::unmarshall_change_area_router_type( const XrlError& e, XrlArgs* a, ChangeAreaRouterTypeCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_destroy_area_router( const char* dst_xrl_target_name, const IPv4& area, const DestroyAreaRouterCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/destroy_area_router"); x.args().add("area", area); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_destroy_area_router, cb));}/* Unmarshall destroy_area_router */voidXrlOspfv2V0p1Client::unmarshall_destroy_area_router( const XrlError& e, XrlArgs* a, DestroyAreaRouterCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_create_peer( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const IPv4& addr, const string& type, const IPv4& area, const CreatePeerCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/create_peer"); x.args().add("ifname", ifname); x.args().add("vifname", vifname); x.args().add("addr", addr); x.args().add("type", type); x.args().add("area", area); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_create_peer, cb));}/* Unmarshall create_peer */voidXrlOspfv2V0p1Client::unmarshall_create_peer( const XrlError& e, XrlArgs* a, CreatePeerCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_delete_peer( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const DeletePeerCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/delete_peer"); x.args().add("ifname", ifname); x.args().add("vifname", vifname); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_delete_peer, cb));}/* Unmarshall delete_peer */voidXrlOspfv2V0p1Client::unmarshall_delete_peer( const XrlError& e, XrlArgs* a, DeletePeerCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_set_peer_state( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const bool& enable, const SetPeerStateCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/set_peer_state"); x.args().add("ifname", ifname); x.args().add("vifname", vifname); x.args().add("enable", enable); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_set_peer_state, cb));}/* Unmarshall set_peer_state */voidXrlOspfv2V0p1Client::unmarshall_set_peer_state( const XrlError& e, XrlArgs* a, SetPeerStateCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_add_neighbour( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const IPv4& area, const IPv4& neighbour_address, const IPv4& neighbour_id, const AddNeighbourCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/add_neighbour"); x.args().add("ifname", ifname); x.args().add("vifname", vifname); x.args().add("area", area); x.args().add("neighbour_address", neighbour_address); x.args().add("neighbour_id", neighbour_id); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_add_neighbour, cb));}/* Unmarshall add_neighbour */voidXrlOspfv2V0p1Client::unmarshall_add_neighbour( const XrlError& e, XrlArgs* a, AddNeighbourCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_remove_neighbour( const char* dst_xrl_target_name, const string& ifname, const string& vifname, const IPv4& area, const IPv4& neighbour_address, const IPv4& neighbour_id, const RemoveNeighbourCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/remove_neighbour"); x.args().add("ifname", ifname); x.args().add("vifname", vifname); x.args().add("area", area); x.args().add("neighbour_address", neighbour_address); x.args().add("neighbour_id", neighbour_id); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_remove_neighbour, cb));}/* Unmarshall remove_neighbour */voidXrlOspfv2V0p1Client::unmarshall_remove_neighbour( const XrlError& e, XrlArgs* a, RemoveNeighbourCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_create_virtual_link( const char* dst_xrl_target_name, const IPv4& neighbour_id, const IPv4& area, const CreateVirtualLinkCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/create_virtual_link"); x.args().add("neighbour_id", neighbour_id); x.args().add("area", area); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_create_virtual_link, cb));}/* Unmarshall create_virtual_link */voidXrlOspfv2V0p1Client::unmarshall_create_virtual_link( const XrlError& e, XrlArgs* a, CreateVirtualLinkCB cb){ if (e != XrlError::OKAY()) { cb->dispatch(e); return; } else if (a && a->size() != 0) { XLOG_ERROR("Wrong number of arguments (%u != %u)", XORP_UINT_CAST(a->size()), XORP_UINT_CAST(0)); cb->dispatch(XrlError::BAD_ARGS()); return; } cb->dispatch(e);}boolXrlOspfv2V0p1Client::send_delete_virtual_link( const char* dst_xrl_target_name, const IPv4& neighbour_id, const DeleteVirtualLinkCB& cb){ Xrl x(dst_xrl_target_name, "ospfv2/0.1/delete_virtual_link"); x.args().add("neighbour_id", neighbour_id); return _sender->send(x, callback(this, &XrlOspfv2V0p1Client::unmarshall_delete_virtual_link, cb));}/* Unmarshall delete_virtual_link */voidXrlOspfv2V0p1Client::unmarshall_delete_virtual_link( const XrlError& e, XrlArgs* a,
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -